Call Tool • AI Agent SDK
call_tool: Call an MCP tool and wait for the result.
call_tool
Method
</div>
This is a method of the MCPToolRunner class in the mcp module.
Call an MCP tool and wait for the result.
Signature
def call_tool(tool_name: Any, arguments: Any) -> AnyParameters
ParamField
AnyNo description available.
ParamField
AnyNo description available.
Returns
ResponseField
AnyThe result of the operation.
Uses
get_telemetryis_setwaittelemetry.track_tool_usagetime.timequeue.Queuethreading.Eventputlogging.debug
Source
View on GitHubpraisonaiagents/mcp/mcp.py at line 307