Skip to main content

call_tool

Method
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) -> Any

Parameters

tool_name
Any
required
No description available.
arguments
Any
required
No description available.

Returns

Returns
Any
The result of the operation.

Uses

  • get_telemetry
  • is_set
  • wait
  • telemetry.track_tool_usage
  • time.time
  • put
  • logging.debug

Source

View on GitHub

praisonaiagents/mcp/mcp.py at line 85