Skip to content
anythingai.space
Tool Use & Computer Agentsintermediate13 min · 8 steps

Building Tool Agents

Design tool schemas a model can't misuse, serve them over MCP, validate every call, and test the agent like the production system it is.

{action: “find”?}Loose schema → guessed fields → hard tovalidateLLMcustomer_toolaction · data · optionsaction: anydata: object
tool callerrorresponserequestdata
1 / 8
ProblemStep 1 of 8

One tool that does everything confuses the model

A tempting shortcut: one customer_tool with an action string (“search”, “create”, “update”, “delete”), a free-form data object and options: any. The schema is too loose to validate, and the model has to guess which combination of fields each action needs.

The tool schema is the contract between the model and your system. A sloppy contract means hallucinated arguments, misuse and unreliable tool selection.

Lesson 5 of 7 in Tool Use & Computer Agents