Learn how to call MCP tools directly without using an LLM
call_tool
method returns a CallToolResult
object with the following attributes:
content
: A list of ContentBlock
objects containing the tool’s outputstructuredContent
: A dictionary with the structured result (for non-sampling tools)isError
: Boolean indicating if the tool call encountered an error