Skip to content
Docs

MCP Call

MCP Call calls one tool on a connected MCP server, with arguments you supply, and runs it like any other integration step. It is the deterministic counterpart to MCP Tools: that node hands a server’s whole tool surface to an agent to choose from, this one pins a single tool for scheduled syncs and data pipelines, with no model in the loop. You find it on the node picker’s API & integrations shelf.

Before using this node, create the MCP server connection and sync its tools. See MCP servers.

The MCP Call node's settings form, with the fields described below
The MCP Call node's settings form, with the fields described below
FieldTypeDefaultDescription
MCP server (mcpServer)string ✦ (required) — The MCP server that hosts the tool.
Tool (tool)string ✦ (required) — The single tool on that server this node calls.
Arguments (arguments)string ✦ (optional) — The tool’s arguments — a form generated from the tool’s own schema, or (via the {x} toggle) a JSON object keyed by parameter name.
Approval (requiresApproval)one of inherit, always, never (optional) — Whether a human must approve this before it runs. “Follow the agent’s approval mode” is almost always right: the agent’s mode already decides, based on what this node actually does. Override it only to pin this one node — always ask (even on Autopilot), or never ask.
On error (onError)string ✦ (optional) — What to do when the tool call fails: fail the flow, or continue.

Fields marked ✦ accept expressions.

Try this node — run it once against your own workspace, with your credentials, without building a flow first.

{
"tool": "ask_question",
"result": { "answer": "..." }
}

An MCP tool returns text. When that text is JSON, the node decodes it so downstream expressions can read $prev->result directly; anything else passes through as a string. Treat the result as data, never as instructions.

With onError set to continue, a failed call emits {"error": true, "tool": ..., "message": ...} instead of failing the run, so a downstream Switch can branch on it. A firewall-blocked endpoint always fails, regardless of this setting.

The call is declared as an external write, so when an agent runs this node as a tool it can be approval gated; the requiresApproval field pins the behaviour for this one step. See Add human approval.

Point the node at a documentation MCP server and pin its ask_question tool. The arguments form is generated from the tool’s own schema; a field value can read upstream data:

{{ $start->repo }}

Argument values that arrive as templates are cast back to the types the tool declares, so an expression resolving to 5 still reaches an integer parameter as a number.

Switching the whole field to expression mode (the {x} toggle) hands the tool one JSON document instead, and nothing is re-cast there. Keep typed values JSON-typed by using the raw tags:

{
"repoName": "{{ $start->repo }}",
"limit": {!! $start->size !!}
}

Writing "limit": "{{ $start->size }}" would send the number as a string, which a tool declaring an integer rejects.

  • Arguments must form a JSON object keyed by parameter name. Anything else fails without retry.
  • The tool name must match what the server exposes. An unknown name fails at run time with the server’s own error.
  • MCP Tools: let an agent choose among a server’s tools instead.
  • MCP servers: create and authorize the server connection.
  • REST Request: call a plain HTTP API without MCP.