MCP servers: connect a server's tools to your agent
Connect a remote MCP server to a Ladoo agent and pick which of its tools the agent may call during a call: transport, auth, caching, limits and what the server sees.
By the Ladoo team · Updated
Connect a remote MCP server to an agent and pick which of its tools the agent may use. Picked tools behave like custom tools: the agent can call them on any conversational step, they share the same limits, and every call is on the call record.
You can also connect servers in the dashboard, on the agent's Tools tab: add the server, tick the tools the agent may use, and turn on Ask the caller first for any that change things. To limit a tool to some steps, pick it in the step's tools in the workflow editor, as for custom tools.
What's supported
- Transport: Streamable HTTP. Ladoo POSTs JSON-RPC to the server's one URL and reads the answer as JSON or as an event stream. The older HTTP+SSE transport (a separate event-stream endpoint) isn't supported.
- Auth: headers. Send an
Authorizationheader (or any other) with your key. Header values are encrypted and never returned. A value can instead name a workspace secret, such asBearer {{secrets.SHOP_MCP_KEY}}: Ladoo fills it in only for a server whose host the secret allows, and shows the reference, never the value. OAuth isn't supported yet. - Tools only. Resources and prompts aren't used.
Connect a server
curl -X POST https://api.tryladoo.com/v1/agents/$AGENT_ID/mcp-servers \
-H "Authorization: Bearer $LADOO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "shop",
"url": "https://mcp.example.com/mcp",
"headers": [{ "name": "Authorization", "value": "Bearer mcp_live_..." }],
"tools": [{ "name": "get_order" }, { "name": "create_return", "confirm": true }]
}'
Ladoo reads the server's tool list before saving. If it can't, the request fails with 422 mcp_unreachable and nothing is saved. The response lists every tool the server has, which ones are picked, and the name the model uses for each: the server's name and the tool's name, such as shop_get_order.
name: a short name for the server, up to 20 lowercase letters, digits and underscores.url: the server's endpoint, https on a public host.headers: sent with every request to the server.timeout_ms: 1,000 to 10,000 for each tool call, handshake included. The default is 8,000.tools: the tools the agent may use, by the server's names. A tool you don't pick can't be called.confirm: truehas the agent check with the caller before calling it, for tools that change things.
PATCH /v1/agents/{id}/mcp-servers/{server_id} changes the picks or the server, and DELETE disconnects it. Reading needs agents:read. Connecting, changing, refreshing and disconnecting need agents:write and webhooks:write, since the agent sends arguments to the server. Each change is in the audit log as agent.updated.
An agent can have up to 5 servers and 20 picked MCP tools. A picked tool's model name can't be the same as one of the agent's custom tools.
Tool lists are cached
Ladoo reads the server's tools when you connect it and when you refresh: POST /v1/agents/{id}/mcp-servers/{server_id}/refresh. Calls use each picked tool's description and input schema as they were then. A change on the server, such as a new required parameter or a reworded description, doesn't reach live calls until you refresh. The refresh response lists the picked tools that changed, and the ones the server dropped, which are unpicked.
MCP servers aren't part of a published version, like custom tools: rolling back a version doesn't bring back a server or a pick.
What the server sees
Only what a tool call needs: your headers, the tool's name and the arguments the model gave it. Ladoo never sends the transcript, the caller's number or anything else about the call. Before anything is sent, the arguments are checked against the tool's stored input schema: types, required properties, enums and array items. A property the schema doesn't list is refused.
Ladoo offers a tool only if its input schema is an object of standard JSON types (object, array, string, number, integer, boolean, null), nested at most five levels deep and under 8,000 characters. Others show a problem and can't be picked.
What the agent reads back
The text parts of the tool's result, up to 2,000 characters, or its structured content as JSON when there's no text. Images, audio and embedded resources aren't passed on. The agent treats the result as data from your system, never as instructions.
Limits and failures
- MCP tools and custom tools share their limits: 10 runs per call, 2,000 per workspace a day, and 3 per caller turn.
- Requests go only to https on port 443 of a public address. Private, loopback and cloud metadata addresses are refused at connect time, and redirects aren't followed. Replies are capped at 256 KB.
- A server that's down, slow, answers with an error, or reports a tool error never ends the call. The agent tells the caller it couldn't do that just now and carries on.
Related guides: Custom tools: HTTP actions your agent can call, Pre-call webhook: look up the caller before the agent answers and The .lassi-workflow.json file format.
Still stuck?
Ask our support agent (it runs on Ladoo), or email the team.