Back to full roadmap
topiccore
Tool Schema Design
Good schema = few params + clear descriptions + strong enums + examples. Model decisions improve 2×.
2 hours1 resources1 prereqs
Golden rules:
- Single responsibility — one tool, one job.
search_and_summarize→ split intosearch+summarize. - Description = micro-tutorial — include "What it does, when to call, when NOT to call".
- Enums beat strings —
difficulty: "easy" | "medium" | "hard"constrains the model. - Description per param — don't leave blank. The model reads them.
- Examples (outside input_schema) — for complex tools, add 1-2 example calls in the system prompt.
- Required minimum — make anything optional that can be, reduces model overhead.
- Predictable output format — model interprets results; consistent format mandatory.