Skip to main content
An agent decides whether to call a tool, and with which values, from what you write in the tool’s settings. Vague text leads to tools that are never called, called at the wrong time, or called with wrong values.

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:
Specific:
When two tools are similar, state the difference in each description:

Write the Custom Prompt

Use the prompt for the details that don’t fit in the description:
Negative cases (“when not to use”) prevent most unwanted calls.

Define the Input Schema

Each parameter has a type 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:
State the expected format for dates, phone numbers or IDs:
Use enum when only some values are valid:

Test the Tool

  1. 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.
  2. In Agent Lab, add test cases with the Tool Call expected type: the Expected Tool Name and, if needed, the Expected Tool Arguments.
  3. 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
  • enum is used for constrained values
  • Test cases cover calls, non-calls and missing values