Direct CRM access for agents is fast to ship. Dangerous to run.
Salesforce and HubSpot hold the most sensitive commercial data in most companies: pipeline, contacts, revenue history. Connecting an AI agent directly to either via an API key is a prototype move: no audit trail, no per-agent controls, over-provisioned credentials, and token costs that escalate as agents pull full records.
Agent Gateway for MCP puts a governed layer in between. Agents call managed MCP tools. Tray sets which tools an MCP server exposes, logs every invocation, and handles the multi-step orchestration so the agent doesn’t need raw CRM access to get the answer. To build the agents themselves, see AI agents for CRM and marketing. For MCP rules across every system, not only the CRM, see AI and MCP governance.
The token problem nobody talks about until the bill arrives.
Unmanaged MCP consumes ~75,000 tokens across 10 typical servers. A raw Salesforce MCP server exposes hundreds of API endpoints, most irrelevant to what the agent is trying to do. The agent burns tokens exploring the surface. Composite MCP tools fix this: one tool call, one result, one fraction of the context window.
Who asks the agent, and what it may touch
A sales rep asking for an account summary and a revenue operations lead asking an agent to update stages are different jobs. Each MCP server exposes only the tools its job needs, so the rep’s server has lookup tools and the RevOps server adds the update. Neither gets raw access to Salesforce or HubSpot objects, and a tool that isn’t on the list can’t be called.
Where a call should run as the person asking, set the tool’s authentication to user-provided, and it runs on their own CRM credentials. Where it should run as a service account, set that instead. The activity log shows which was used.
One tool for a whole CRM job
The fastest way to cut token cost is to stop handing the agent endpoints and give it jobs. “Prepare the renewal brief” can look up the account, pull open cases from Zendesk, check usage in Snowflake and return one short answer. J.W. Pepper took 500+ MCP tools down to about 20 governed workflows this way. Build each one visually in Tray iPaaS, then publish it as a tool through Agent Gateway for MCP.
To see the same tools used by agents that run inside the apps your teams build, see Tray Helix Agents.