Skip to content

< CollectionsArticle

Writing effective tools for agents.

Writing effective tools for agents, with agents

Anthropic · 2025

Read the article (opens in a new tab)

A tool is a contract between deterministic code and a non-deterministic agent. Design it for the agent.

5 sections · 7 problems · 1 project

0 of 8 done

Start Next: 01 Offer Only the Tools This Request Needs

Fig. 1. The schema is a lock. Arguments that fit open the tool; the rest jam, and the exact error goes back to the model.

Section 01

Choose the right tools

0 of 1

The article: More tools do not make a better agent. Build a few that match real tasks.

  1. 01Offer Only the Tools This Request Needsimplement · medium

Section 02

Describe them well

0 of 2

The article: Describe a tool the way you would to a new colleague; small changes to a description move results a lot.

  1. 02Turn a Function Into a Tool Specimplement · medium
  2. 03Rewrite the Descriptions Until Requests Route Rightdebug · medium

Section 03

Responses the agent can use

0 of 2

The article: Return what the agent needs next in a reply that fits its context, and errors that say how to fix the call.

  1. 04Return a Search Reply That Fits the Contextimplement · medium
  2. 05Return an Error the Model Can Fixdebug · medium

Section 04

Safe to call again

0 of 2

Beyond the article: An agent retries, so a tool that changes things has to survive being called twice.

  1. 06Make the Tool Safe to Call Twicedebug · medium
  2. 07Catch the Tool Call the Model Already Madeimplement · medium

Section 05

Build it

0 of 1

Beyond the article: The tools for a support desk, measured on a real model.

  1. 08desk-toolsproject
All collections