The model asks, your code acts
How a model uses tools it can't touch.
A model can't run anything. It can only ask: it replies with a tool name and arguments, and stops. Your code runs the tool and sends back the result.
- model calls
- 1
- tool calls
- 0
- tokens in
- 170
- tokens out
- 21
- time
- 1.9s
Task My order A123 hasn't arrived yet. Where is it?
Model call 1. It read 170 tokens and wrote 21. It asked for a tool, so it isn't done.
get_order({"order_id":"A123"})
stop_reason: tool_use
Context window
170 tokens sent
- Your messages12
- Tool definitions124
- System prompt34
0.02% of the 10,48,576-token window. Every call sends all of it again.
Context window170 tokens sent
- System prompt34
- Tool definitions124
- Your messages12
Now you're the model. Same context, same tools. What do you ask for?
You are gemini-3-flash-preview. This is all you know: 170 tokens.
System prompt
You are QuickCart's support agent. Use the tools to look up real order data before answering. Never guess dates. Be brief and kind.
Your tools
- get_order Look up an order by its id. Returns status, tracking id and the promised delivery date.
- track_shipment Where a shipment is right now, by tracking id. Returns status, location and the latest delivery estimate.
User
My order A123 hasn't arrived yet. Where is it?
Your move?