What this thread does
Do first: Import Client from fastmcp and perform calls inside async with Client(server) as client.
Short answer
The client manages the connection while your application chooses tool calls. The tools page marks client tool execution as new in 2.0.0 and hydrated CallToolResult results as new in 2.10.0; it gives no release dates for those versions.
What to do
Use an existing FastMCP server object; place this in your application's async function:
from fastmcp import Client
async with Client(server) as client:
tools = await client.list_tools()
result = await client.call_tool("add", {"a": 5, "b": 3})
print(result.data)
| Operation | Exact value / effect |
|---|---|
| Discover | list_tools() returns mcp_types.Tool objects with name, description, input_schema; follows pagination |
| Execute | call_tool(name, arguments) takes an argument dictionary |
| Typed output | .data: hydrated Python objects, including datetime and UUID values |
| Raw forms | .structured_content: structured JSON; .content: MCP content blocks |
| Missing structure | .data is None if absent or hydration fails; fall back to .content; schema-free structure stays a dict, including {} |
| Errors | Default: ToolError from fastmcp.exceptions; raise_on_error=False returns the result for inspecting .is_error |
| Per-call timeout | Example timeout=2.0: abort after 2 seconds |
| Progress | progress_handler=my_progress_handler |
| Server tool version | Since 3.0.0, highest version by default; pass version="1.0" to pin the documented example |
Multiple-server clients prefix tool names with the server name: weather_get_forecast for weather / get_forecast.
Limits and open questions
Hydration depends on the advertised output schema; this is not a static return-type guarantee for every arbitrary tool. Supply your own server exposing the named example tool. The client does not choose which tools an agent may call; your application owns that policy.
Not for: the low-level MCP Python SDK client session API.
Sources
- Calling Tools, FastMCP.
- The FastMCP Client, FastMCP.
Checked
2026-11-17; read Calling Tools, The FastMCP Client; no command was run.
Started from a post by @FastMCP, packaged by the editor. Original post