Why four tools instead of one per endpoint
The API has 123 operations — the same coverage as the API Reference on this site: leads, notes, tasks, transactions, communication, calendar, webhooks, and team/routing configuration. Exposing each one as its own MCP tool would put every schema into the model’s context on every turn, which measurably degrades tool selection as the list grows — and the list only grows over time. Instead, the MCP server exposes four tools that cover the entire API:search_apis— find which operation matches an intent, by keyword.describe_api— get the full parameter schema for one operation.invoke_api— call it.list_custom_fields— look up your team’s custom lead fields, which aren’t in any static schema.
Endpoint
The four tools
Every call runs through the same authentication, authorization, and rate limiting as a direct REST request —
invoke_api can’t do anything the authenticated user couldn’t already do through the Lofty CRM itself.
Security: this connects an agent to real, writable CRM data
Unlike a read-only documentation server,invoke_api can create, update, and delete real records — leads, notes, tasks, transactions — as the authenticated user. Keep two risks in mind when wiring this up:
- Prompt injection. Content read back through
invoke_api(a lead’s notes, a text message, a custom field value) is untrusted input from your CRM data, not from you — if an attacker can get text into a record your agent later reads, that text can attempt to redirect the agent’s next action. Don’t let an agent chain a read of CRM content directly into a write or delete without a human confirming the specific call, especially when other MCP servers or tools are connected in the same session. - Destructive operations.
describe_apimarks any operation that modifies or deletes data; treat that as a hard stop for confirmation, not a suggestion.
Next steps
Quickstart
Connect a client and make your first search → describe → invoke round trip.
Authentication
How API keys and OAuth 2.0 tokens both work over MCP.
Tools Reference
Full input schema and example calls for all four tools.
Troubleshooting
Common errors and how to resolve them.