The Concept of Tools
On this page7 items
In 10 seconds
Tools are the hands and feet you give Claude. Claude doesn’t run them itself;
it declares “I want to use this”, and a system outside it actually runs it.
An agent can “act” because it has tools to act with. These are called tools.
Claude doesn’t act on its own#
This is the most important point for understanding how it works. Claude is not touching your files directly.
The actual flow goes like this:
- You give it “a list of tools it may use”
- Claude declares “I want to use this tool with these arguments”
- A system outside it actually runs it
- The result is returned to Claude
- Claude looks at the result and decides what to do next
In other words, there is always an executor between Claude and the outside world. This structure leads into the discussion of permissions in No.21. It can’t use tools you haven’t given it.
There are two kinds of tools: ones that run on your side (reading and writing files, running commands) and ones that run on Anthropic’s side (web search, fetching web pages, running code). The difference visible to you is that the former touch your environment and the latter don’t.
What tools are there?#
They fall into four broad groups.
Read. Open files, fetch web pages, search. The safest tools. They never break anything.
Write. Create or rewrite files. This is where things start to become irreversible.
Execute. Run commands, run code. The widest range of what’s possible, and the greatest danger.
Interact with the outside. Send email, call APIs, register things in systems. Effects reach the outside world.
For the quotes job, two are enough: “read PDFs” and “write Excel files”. The basic rule is give it only the tools it needs.
When does it use a tool?#
Each time, Claude decides for itself whether to use a tool or answer directly. According to the official documentation, it calls a tool when the request matches that tool’s description and the answer isn’t already at hand.
So the tool’s description directly determines accuracy. “Reads a PDF at the given path and returns its text” narrows down when to use it far better than “reads files”.
When it doesn’t call a tool you want it to, you can nudge it with instructions. One line, “Look it up with the tool before answering”, changes things.
When arguments are missing, it may guess#
This behavior is stated explicitly in the official documentation, and not knowing about it leads to accidents.
When the instructions don’t include information a tool needs, Claude may guess a value and fill it in. Asked only “What’s the weather?” with no location, it might plug in some city and run.
The documentation also notes a tendency: the more deeply a model thinks, the more likely it is to ask back “that’s missing”, and the faster a model is, the more likely it is to guess.
Applied to the quotes job, this means it’s risky to have it write a file without specifying where to save it. Always state where to write and where to send explicitly.
💡 A fun fact
When you give it tools, the descriptions themselves consume tokens. The tool’s name, description and argument format go into the prompt every time. The official pricing page says that simply making tools available adds a few hundred tokens. In the sense that tools cost something just by owning them, they’re like a real toolbox too.
Try it: Write a tool description (5 minutes)
You don’t need to actually run anything. The goal is to get a feel for writing descriptions.
Prompt
I'm practicing writing tool descriptions to give to an AI. Write a description for a tool that "reads one PDF for a given company from the company's quotes folder". Then list three weak points: situations where that description might cause it to be called by mistake.Expected result: A description and its three weak points come back. You’ll see points like “it doesn’t say which to pick when the company name is ambiguous.”
If it doesn’t work: If no weak points come out, add “Assume someone is using it in bad faith.” Tool descriptions get better when you write them imagining the situations where they’re called by mistake rather than the ones where they’re used correctly.
Common pitfalls#
Thinking more tools make it smarter. The more options, the more it picks wrong. Tokens go up too. Give it only the tools that job needs.
Confusing what it can do with what it’s allowed to do. Once you give it a tool, Claude can use it. What it’s allowed to use has to be decided separately. That’s No.21.
Letting it move on without checking the result. Sometimes a tool fails and Claude carries on as if everything were fine. Design it so that it stops when an error occurs.
Summary#
- Claude only declares tool use. A system outside it actually runs the tool
- Tools come in four kinds: read, write, execute, interact with the outside. The later ones are more dangerous
- When arguments are missing, it may fill them in by guessing. Always state where to write and where to send
- Give it only the tools that job needs