Overview

The article describes best practices for designing, building, evaluating, and refining tools that large-language-model (LLM) agents use. Tools here mean deterministic software (APIs, SDKs, services) that agents can call. The piece emphasizes that tools must be designed for agents, rather than just wrapping APIs. It covers:

ChatGPT Image Sep 12, 2025, 11_15_34 AM

Context / Conceptual Background

Definitions and setting:

Step-by-Step Walkthrough of Building + Maintaining Agent Tools

Below are steps distilled from Anthropic’s procedure.

PhaseWhat to DoKey Tips
PrototypeBuild an early version of tools. Provide documentation/APIs/SDKs that tools will wrap. Use the local MCP server or the Desktop extensions for testing. Test in Claude Code / CLI. (Anthropic)Include LLM-friendly documentation. Try out tools on realistic workflows. Catch rough edges. (Anthropic)
EvaluationDefine evaluation tasks grounded in real-world use. Run agents with tools. Have verifiable metrics. Collect logs, reasoning chains. Use agents to help analyze performance. (Anthropic)Avoid trivial tasks. Include complexity (multiple tool calls, context). Measure accuracy, tool use, token usage, and errors. (Anthropic)
Agent CollaborationUtilize agents to assist in refactoring and improving tools. Use transcripts. Claude Code can assist. Use held-out test sets to prevent overfitting. (Anthropic)Treat agent feedback seriously (including what it omits). Align tool descriptions, behavior, and naming. (Anthropic)

Principles / Best Practices

From Anthropic’s experience:

  1. Choose tools carefully

    • Don’t build tools that are mere wrappers of APIs if they don’t help agent strategies.

    • Tools should reduce the burden on agents (e.g., limit context size, avoid returning irrelevant data).

    • Consolidate functionality: group operations into tools that match common workflows. (Anthropic)

  2. Namespacing

    • Tool names should make clear what domain or service they belong to (e.g. “asana_search”, “jira_search”).

    • Use consistent prefix/suffix systems.

    • Helps the agent pick the correct tool, avoid confusion. (Anthropic)

  3. Meaningful Responses

    • Return relevant, semantically useful data.

    • Avoid opaque identifiers; give names, labels, images, etc.

    • Optionally allow different verbosity/detail levels (concise vs detailed). (Anthropic)

  4. Token / Context Efficiency

    • Tools that return large blocks of data or full datasets waste agent context.

    • Use pagination, filtering, and range selection. Truncate judiciously.

    • Error messages should be actionable. (Anthropic)

  5. Prompt / Spec Engineering

    • Tool descriptions and specs matter: they live in agent context.

    • Be explicit: what inputs are expected, what outputs delivered. Parameter names should be unambiguous.

    • Data formats and schemas matter (JSON, Markdown, etc.) — agent performance may depend on these. (Anthropic)

Use-Cases / Scenarios

The practices apply in contexts such as:

Limitations / Considerations

Common Pitfalls & Fixes

PitfallFix / Mitigation
Tools returning too much dataAdd filtering, pagination, and concise modes.
Tool names are vague or overlappingUse good namespacing; pick clear prefixes/suffixes.
Unclear spec/parameter namesEnforce strict schemas; name inputs unambiguously.
Evaluations too simplisticUse realistic, multi-step, multi-tool tasks; held-out test sets.
Agents don’t call tools (or misuse them)Analyze reasoning logs; refine descriptions; provide examples.

Conclusion

Designing tools for LLM agents requires rethinking traditional API/SDK design. Success depends on:

If you build tools with these in mind, agents will use them better, more reliably, more efficiently.