Write the description for the model: what the tool does, when to use it, when not to, and what it returns; vague descriptions cause wrong tool choices.
Use clear names (verbs and domain terms), precise parameter types, enums for closed sets, required versus optional fields, and short examples of valid values.
Prefer a small number of well-scoped, high-level tools over many low-level ones; return concise, relevant results with identifiers the model can reuse in later calls.
Test the tools with real prompts and iterate on descriptions based on observed mistakes.
Loading…