From “can talk” to “can do”: wire up the first tool
After M1, you’ve got an AI that’s great at talking. And you’ve seen Alice’s story with 132 tools. The line between an Agent and a chatbot is the first tool that actually gets executed. You don’t need 132. You need 1.
“Wiring up a tool” sounds like engineering. The chain is only four steps, and the model never executes anything — it just asks. The framework does the work. See these four steps and you’ll know which one to check when something breaks.
From the model asking to the result feeding back
The model asks
It outputs JSON: which tool, with what params
The framework validates params
Is the format right? Is the value legal? If not, bounce it back
Real execution
Query a database, send a request, write a file — this is the step that touches the real world
Result feeds back
The result goes back into the conversation. The model digests it, then talks like a human
How to pick the first tool
Three criteria, none optional: high frequency (you’ll almost always need it in your scenario), low risk (read-only first — checking weather or searching docs is safer than sending email), clear inputs and outputs (two or three params, a fixed return shape). This chapter covered the craft of tool descriptions: for the same function, a good description vs a bad one can triple the call success rate. So after you pick, write the description clearly before you talk about wiring it up.
This Chapter's Hands-on Checklist
0 / 3 done
Pick the first tool
15 min EveryoneUsing the three criteria above (high frequency, low risk, clear I/O), pick the first tool from your scenario and write down: tool name, one-line function, and what the two or three params are. If you can’t pick one, use “search my [whatever] docs” — it fits almost every scenario.
What counts as done
Write the tool description in three lines
1 hour If you want it called accuratelyLine 1: when to use this tool (also write when not to); Line 2: each param’s meaning, format, and an example value; Line 3: what it returns and what to do with the result. Then self-check from the “5 messages behind one conversation” lesson: the model decides how to call from these three lines alone. It cannot see your code.
What counts as done
Run one complete loop
Half a day Ready to actually build oneOn a platform you already use (Coze, Dify, Cursor, or just write code), actually wire this tool up. Ask a question that must use it, and watch all four steps finish. Then break it on purpose: ask something with vague params, see which step it sticks on and what feedback the user gets. This chapter covered five Agent deadlock patterns — you should see at least one with your own eyes.