Where the Agent Reads Your Text
When you create or edit a tool in Agents > Tools, three settings guide the agent:
Write them together: a description that says “use for every issue” and a prompt that says “only as a last resort” confuse the agent.
Write the Description
Say what the tool does, what data it touches, and the requests that should trigger it. Too vague:Write the Custom Prompt
Use the prompt for the details that don’t fit in the description:Define the Input Schema
Each parameter has atype and a description. Supported types include str, int, float, bool and their list forms such as str[]. Add enum for a fixed set of values and default for an optional value. AGO also accepts standard JSON Schema; see Tools.
Use descriptive names and say where the value comes from:
enum when only some values are valid:
Test the Tool
- Click Test agent on an agent that uses the tool and try requests that should call it, requests that shouldn’t, and requests with a missing value.
- In Agent Lab, add test cases with the Tool Call expected type: the Expected Tool Name and, if needed, the Expected Tool Arguments.
- Rerun the dataset after each change to the description, prompt or schema.
Checklist
- The description says what the tool does and when to use it
- The prompt lists when not to use it and how to handle errors
- Each parameter has a clear name, a description and a format
-
enumis used for constrained values - Test cases cover calls, non-calls and missing values
Related
- Tools — Tools overview and input schema reference
- Agent Best Practices — Design patterns
