Skip to content

Your agent, real MCP tools

Where the model, your agent and the server each do their part.

An agent using MCP does two jobs: give the model the tools from tools/list, and turn each tool request into a tools/call. A real run against a real server:

Before the first call, the agent asked the server tools/list and handed those 3 tools to the model. The model never talks to the server; your agent does.

An error the model can usegemini-3-flash-previewRecorded real run
model calls
1
tool calls
0
tokens in
191
tokens out
20
time
1.1s

Task Where is my order A12?

You
task
Model1.1s
get_order
find_orders
track_shipment

Model call 1. It read 191 tokens and wrote 20. It asked for a tool, so it isn't done.

get_order({"order_id":"A12"})

stop_reason: tool_use

Context window191 tokens sent

  • System prompt28
  • Tool definitions157
  • Your messages6
step 1 of 9

Who sends tools/call to the MCP server?