Tool Design
The practice area in agent engineering concerned with which tools an agent can call and how their interfaces are designed. It is one of the key elements for the success of production-grade agents.
Core Facts
The quality of a tool's description directly determines whether the model can select the correct tool; vague descriptions cause the model to call the wrong tool or pass incorrect parameters.
Agent teams that achieve results focus on three things: whether the tool design is clean, whether failure handling is adequate, and whether observability can trace the decision path.
Engineering complexity migrates upward rather than being eliminated; after tools handle lower-level complexity, developers must face complexity at a higher level.
Timeline (last 90 days)
Tool developers tend to return as much information as possible, but redundant information dilutes attention and accelerates context exhaustion; tools should provide only the information needed for the current step.
Tool returns must have limits; for example, when a search hits 5,000 lines of logs, return only the first 100 lines and report the total count and the next offset; when a tool call fails, the error should be caught and a short error string returned rather than throwing an unhandled exception.
Giving the model 30 general-purpose tools consumes thousands of schema tokens per round and makes it easier for small models or open-weight models to choose the wrong tool; 3 to 5 sharp, domain-specific small tools work better.
Custom tool design should follow the single-responsibility principle: one tool does only one thing, parameters are kept as narrow as possible, and returned results remain structurally stable.
Getting the maximum intelligence out of an agent is not about a magic prompt template, but the result of context engineering, tool design, and evaluation iteration working together.
Agent teams that achieve results focus on three things: whether the tool design is clean, whether failure handling is adequate, and whether observability can trace the decision path.
Before modifying the Prompt again, first read several complete records of Agent failures; usually you will find the root cause lies in tool design (misreading tools, being flooded by output, repeatedly retrying on errors it cannot understand), rather than in the Prompt itself.
Validation of parameter legality should be done inside the tool itself, rather than trusting that the model will pass in reasonable values.
Each additional tool increases the model's decision difficulty, and a large number of tools drives up the probability of functional overlap.
Destructive operations (such as delete_user) should be separate standalone tools so they can be described clearly and require approval, rather than hidden inside a tool with an action field.
All Facts (12)
The quality of a tool's description directly determines whether the model can select the correct tool; vague descriptions cause the model to call the wrong tool or pass incorrect parameters.
80%VerifiedAgent teams that achieve results focus on three things: whether the tool design is clean, whether failure handling is adequate, and whether observability can trace the decision path.
65%VerifiedEngineering complexity migrates upward rather than being eliminated; after tools handle lower-level complexity, developers must face complexity at a higher level.
65%UnverifiedCustom tool design should follow the single-responsibility principle: one tool does only one thing, parameters are kept as narrow as possible, and returned results remain structurally stable.
60%UnverifiedTool developers tend to return as much information as possible, but redundant information dilutes attention and accelerates context exhaustion; tools should provide only the information needed for the current step.
50%UnverifiedTool returns must have limits; for example, when a search hits 5,000 lines of logs, return only the first 100 lines and report the total count and the next offset; when a tool call fails, the error should be caught and a short error string returned rather than throwing an unhandled exception.
50%UnverifiedGiving the model 30 general-purpose tools consumes thousands of schema tokens per round and makes it easier for small models or open-weight models to choose the wrong tool; 3 to 5 sharp, domain-specific small tools work better.
50%UnverifiedGetting the maximum intelligence out of an agent is not about a magic prompt template, but the result of context engineering, tool design, and evaluation iteration working together.
50%UnverifiedBefore modifying the Prompt again, first read several complete records of Agent failures; usually you will find the root cause lies in tool design (misreading tools, being flooded by output, repeatedly retrying on errors it cannot understand), rather than in the Prompt itself.
50%UnverifiedValidation of parameter legality should be done inside the tool itself, rather than trusting that the model will pass in reasonable values.
50%UnverifiedEach additional tool increases the model's decision difficulty, and a large number of tools drives up the probability of functional overlap.
50%UnverifiedDestructive operations (such as delete_user) should be separate standalone tools so they can be described clearly and require approval, rather than hidden inside a tool with an action field.
50%