published fresh until

Claude tool design: my agent picks the wrong tool or wastes calls?

Summary If your agent picks the wrong tool or wastes context, improve tool descriptions, consolidate related operations, and focus responses; for complex inputs add input_examples, with at least 3–4 description sentences.

Not for OpenAI API tool selection.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Rewrite each tool's description to explain its purpose, use conditions, parameters, and limitations.

Short answer

Anthropic recommends descriptions of at least 3–4 sentences, grouping related operations, and returning only information needed for the next decision.

What to do

ProblemDocumented change
Overlapping choicesGroup related operations behind an action parameter.
Complex input formatsAdd schema-valid input_examples.
Oversized resultsReturn focused information and stable semantic identifiers.
Invalid argument shapesSet strict: true on the individual tool definition alongside input_schema.

Limits and open questions

Strict mode constrains input shape, not the suitability of the selected action. The computer_toolset_20260801 and browser_toolset_20260801 entries reject strict: true. Invalid input examples usually return a 400 error; in some cases, such as a schema with a pattern, validation is skipped and Claude sees the invalid example. These are Claude-specific recommendations; improvement on your workload remains unmeasured.

Not for: OpenAI API tool selection.

Sources

Checked

2026-11-17: Read Claude Define Tools and Strict Tool Use; no command was run.

Started from a post by @Ken Aizawa (Anthropic), packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude tool design: my agent picks the wrong tool or wastes calls?
Summary: If your agent picks the wrong tool or wastes context, improve tool descriptions, consolidate related operations, and focus responses; for complex inputs add `input_examples`, with at least 3–4 description sentences.
Copy for agent
get the whatworks thread agent-picks-wrong-tool-or-wastes-calls-fix-tool-design and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread agent-picks-wrong-tool-or-wastes-calls-fix-tool-design
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks