call
Invoke any registered tool on an MCP server by name. Supports shapeshifted warm pools or ad-hoc transient calls, with stats recording and output truncation for long responses.
Instructions
Invoke a tool on an MCP server. Returns the tool's response as text.
Routes through the warm pooled transport when a server is shapeshifted; otherwise spins up a transient transport for the given server_id. Records the call in session stats. Long responses (HTML, large outputs) are truncated with a continuation note.
Use when: the tool name and target server are known. Avoid when: discovery is needed — auto() does search → pick → call in one step.
call('get_current_time', arguments={'timezone': 'UTC'}) # after shapeshift call('list_directory', '@mcp/server-fs', {'path': '/tmp'}) # ad-hoc one-shot
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool_name | Yes | ||
| server_id | No | Defaults to the currently shapeshifted form when omitted | |
| arguments | No | Tool arguments matching its inputSchema (default {}) | |
| config | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |