Agent Tool Schema Writer

Tool schemas with descriptions precise enough for a model to route on reliably.

Advanced · Works with ChatGPT, Claude, Gemini, Copilot

The prompt

Write tool schemas for these functions so an agent can route between them reliably.

Functions and what they do internally:
{{FUNCTIONS}}

Cases where two tools could plausibly both apply:
{{AMBIGUOUS_CASES}}

For each function, write a name, parameter schema, and a description that specifically distinguishes it from the others — not a generic restatement of the function name. Address each ambiguous case by name and say which tool should win and why.

Why this prompt works

Naming the ambiguous cases up front forces descriptions that actually disambiguate, instead of generic text a model can't route on.

How to customize it

  • Give real function signatures, not simplified names
  • Include at least one pair of tools that overlap in purpose

Common mistakes

  • Writing descriptions that just restate the function name
  • Leaving parameter types and required fields implicit

Example

Input

Functions: search_orders(query): full-text search; get_order(id): exact lookup by ID

What a good answer looks like

One schema per function, each description ending with what it's not for.

Make this prompt fit your work

ModelCoach.ai scores your version, shows what to improve and explains why, right inside ChatGPT, Claude, Gemini and Copilot.

Related prompts