Guides9 stepschecked 6 December 2026
Design tools an agent uses well
End up with a short list of tools, each with a name, a description, inputs and outputs, that an agent picks correctly and fills in correctly.
- What people ask your product to do
- Your product's API or functions
- A few named toolsone for each request
- A description for eachwhat it does and when to use it
- Inputs that are hard to get wrong
- Outputs the next call can use
- A clean checkno findings
Steps
Step 1: Start from what people askWrite down what people ask your product to do, and make a tool for each request.
Where does a tool list start?
With what people ask your product to do, in their words. Write the requests down before you open your code. "Find the note about the launch." "Add a note." Each tool you make should finish one of these.
Starting from your code gives one tool for every function you already have. Anthropic's article calls that a common error. OpenAI's page says to think about how people will ask before you mirror what your product has inside.
How does a request become a tool?
Ask what the agent must do to finish the request, start to end. If that takes three of your functions in a row, make one tool that does all three. OpenAI's guide says to combine functions that are always called in sequence.
For a notes product:
- "Find the note about the launch" becomes
search_notes. - "Add a note" becomes
add_note.
- "Find the note about the launch" becomes
Step 2: Keep the list shortOffer as few tools as finish those requests, and leave out any tool that can do anything.
How many tools should I offer?
As few as finish the requests you wrote down. Anthropic's article says more tools do not always lead to better outcomes. OpenAI suggests fewer than 20 available at the start of a turn, and calls that a soft suggestion.
Every tool is one more thing the agent has to choose between. This site's connector has five shared tools, and each guide adds one of its own.
What should I leave out?
A tool that can do anything. Claude's connector directory says not to ship a catch-all
api_requesttool with amethodinput.Leave out a tool that only wraps one of your functions when no request needs it.
Can two tools become one?
Yes, when they do parts of the same job. Claude's documentation says to consolidate related operations into fewer tools.
Step 3: Name each tool plainlyGive each tool a verb and a thing for a name, 64 characters or fewer, and a title people can read.
What makes a good name?
A verb and the thing it acts on, such as
search_notesoradd_note. Use only letters, digits, underscore, hyphen and dot. No spaces and no commas. Keep it to 64 characters or fewer.The specification allows names up to 128 characters. Claude's connector directory allows 64. Write to 64 and both are met.
What if I have many tools?
Start related tools with the same word, such as
notes_searchandnotes_add. Anthropic's article says grouping related tools under a common prefix helps mark the boundaries between them.A name only has to be unique inside your own connector. An agent that uses several connectors adds its own prefix to tell them apart.
Does a tool need a title?
Yes. The
titleis the name people see, written as ordinary words, such as "Search notes". Where there is no title, people see thenameinstead.connector/src/tools/shared.ts export const listGuides = tool({ name: 'list_guides', title: 'List the guides',Step 4: Describe it for a newcomerSay what the tool does and when to use it, in three to four sentences or more.
What goes in a tool description?
What the tool does, when to use it and what comes back. Write it the way you would explain the tool to a new colleague. Claude's documentation says to aim for at least three to four sentences, more if the tool is complex, and calls detailed descriptions the most important factor in how well a tool works.
How long can it be?
As long as it needs, with what matters most first. For a tool it loads at the start, Claude Code keeps 4,096 characters of the description.
A connector can also send one note about all its tools, called
instructions. Claude Code keeps 4,096 characters of that too. Codex's page says to keep its first 512 characters complete in themselves.What should it leave out?
Orders to the agent. Claude's connector directory says to describe what the tool does, and not to tell Claude how to behave.
connector/src/tools/check-guide-folder.ts name: 'check_guide_folder', title: 'Check a guide folder', description: 'Check a guide folder and list what is missing, file by file, using the same rules these guides are held to. Send every file in the folder. Returns ready (true only when nothing is missing), the findings, and what to fix first. It reads only what you send and keeps nothing.',Step 5: Make wrong input hardName each input for what it holds, describe it, and let the schema refuse values that cannot be right.
How do I name and describe an input?
Name it for exactly what it holds, and give it one sentence that says what to put in, with an example. Anthropic's example: use
user_id, notuser. An input with no description leaves the agent to guess.How do I stop values that cannot be right?
Let the schema refuse them. Where only a few values are allowed, list them with
enum. Set limits and a default. Mark what is required. OpenAI's guide says to use enums and object structure to prevent invalid states.Do not ask for a fact you already know. OpenAI's guide says not to make the model fill arguments you already know.
What if the tool takes nothing?
It still needs a schema. The specification says
inputSchemamust be a valid schema and never null. For a tool with no inputs it recommends this form:{ "type": "object", "additionalProperties": false }connector/src/tools/shared.ts detail: z.enum(['outline', 'full']).default('outline').describe('"outline" gives each step\'s title and one sentence. "full" adds each step\'s explanation, example and command.'),Step 6: Return what comes nextReturn names a person would know and the identifier the next call needs, and keep the result small.
What should a tool return?
Only what the agent can use: words a person would recognise, and the identifier the next call needs. Give every identifier a readable name beside it. OpenAI's page says to return stable identifiers and enough information for follow-up calls.
This site's
searchreturns anidand atitlefor each match. Its description says which tool takes theidnext.How much should it return?
A bounded amount. Anthropic's article suggests pages, ranges, filters or cutting long results short, each with a sensible default. By default, Claude Code saves a tool output over 25,000 tokens to a file.
Should I declare the output?
Yes, with
outputSchema. It is optional. Once you declare it, the tool must return a result that matches it, and should return the same result as text too.connector/src/tools/shared.ts output: z.strictObject({ items: z.array(z.strictObject({ id: z.string(), kind: z.enum(['guide', 'step', 'question', 'word']), guide_id: z.string().nullable(), title: z.string(), url: z.string(), snippet: z.string() })), note: z.string().optional() }),Step 7: Make errors say what to doSend back a message that says what went wrong and what to try next.
What should an error say?
What went wrong and what to try next, in plain words. Anthropic's article asks for specific and actionable improvements, not opaque error codes.
This site's error for an unknown guide repeats the id it was given, lists the guides that exist and names the tool that describes them. The agent can fix the call without asking anyone.
How is an error sent back?
As a normal result marked
isError: true. The specification keeps this for mistakes the agent can fix, such as a wrong input. The agent reads the message and tries again with better input.What if nothing was found?
Say so, and say what to try. An empty answer is not an error. This site's
searchreturns an empty list with a note: "Nothing matched. Try fewer or plainer words, or call list_guides to see every guide."connector/src/tools/shared.ts const unknownGuide = (id: string, ids: readonly string[]) => new Problem(`There is no guide "${id}". The guides are: ${ids.join(', ')}. Call list_guides to see what each is for.`);Step 8: Say what each tool changesMark each tool as one that only reads or one that changes things.
What is a hint?
A true-or-false field on a tool that says what a call can change. There are four:
readOnlyHint,destructiveHint,idempotentHintandopenWorldHint. Claude's connector directory asks forreadOnlyHint: trueon tools that only read, anddestructiveHint: trueon tools that change or delete data.idempotentHintmeans that calling again with the same input changes nothing more.openWorldHintmeans the tool may reach things outside your product.What if I leave the hints out?
The defaults assume the worst: the tool is taken to change things, and to be destructive. So a tool that only reads should say so. Claude Code runs a read-only call in parallel with other read-only calls.
Does a hint make a tool safe?
No. A hint is not a promise. The specification says an agent's app should never decide whether to use a tool from the hints of a connector it does not trust. Make the tool itself refuse what it must not do.
Keep reading and changing in separate tools, so one hint is true for the whole tool.
connector/src/hub.ts annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },Step 9: Check the listSend your list to the check and fix every finding it returns.
How do I check my tools?
Give the list to
check_toolson this site's connector. Send each tool as it is:name,title,description,inputSchema,outputSchemaandannotations. It returns findings. Each finding names the tool, the rule and what to change. The list is ready whenreadyis true.What does it look for?
The mistakes the steps before this one warn about, in names, titles, descriptions, inputs, hints and the size of the list. It reports:
- a name over 64 characters, with other characters, or used twice;
- no title, or a description under three sentences;
- an input with no description, or a vague name such as
idordata; - no hint;
- a catch-all tool, or more than 20 tools.
A missing
outputSchemais reported as advice. It does not stop the list being ready.Is a clean check enough?
No. The check reads your list. It cannot watch an agent use it. Give real requests to real agents, then read what each one did.
This step in full: Test which agent does best
What you keep
- A short list of tools, each one for a request people really make
- A name, a title and a description an agent can choose by
- Inputs and outputs written as schemas, with hints on every tool
- A check you can run again whenever the list changes
Did agents get it right?
| Agent | Connector added | The guide's own connector | Only the address |
|---|---|---|---|
| Claude Codeclaude-sonnet-5-5 | 15 of 18 | 14 of 18 | 0 of 18 |
| Codexgpt-6.2-sol | 8 of 18 | 15 of 18 | 0 of 18 |
Run 6 December 2026. How the tests are run, and every result
Words used here
- Agent
- A program that uses an AI model to do a job for someone, reading pages and calling tools as it goes. Claude, ChatGPT, Codex and Gemini are agents.
- Connector
- An address an agent connects to that offers tools, using the Model Context Protocol (MCP). Often called an MCP server.
- Finding
- One thing a check found wrong, with where it is, the rule it breaks and what to change.
- Hint
- A true-or-false field on a tool that says what a call can change, such as whether it only reads, which an agent's app may use but cannot rely on.
- Identifier
- A short code that names exactly one thing, such as one note, which a later call uses to point at that thing.
- Input
- One fact a tool needs from the agent to do its work, with a name, a type and a sentence that says what to put in it.
- Output
- What a tool gives back after a call, as named fields the agent can read and pass to the next call.
- Schema
- A description of the shape of some data that lists each field, its type and whether it is required, written in a format called JSON Schema.
- Token
- The unit an AI model counts text in, so a longer text is more tokens.
- Tool
- One named thing an agent can ask a connector to do, with the facts it needs described well enough for the agent to supply them.
- Tool description
- The few sentences attached to a tool that tell an agent what it does and when to use it, which the agent reads to choose between tools.
Questions
Should I make one tool for each function my product has?
No. Anthropic's article calls tools that only wrap existing functions a common error. Start from what people ask, and make a few tools that each finish a request, even when that takes several of your functions.
How many tools is too many?
There is no hard limit. OpenAI suggests fewer than 20 available at the start of a turn, and calls that a soft suggestion. Anthropic's article says more tools do not always lead to better outcomes. Offer as few as finish the requests people make.
How long can a tool name be?
The Model Context Protocol specification says 1 to 128 characters. Claude's connector directory allows 64 or fewer. Write to 64 and you meet both. Use only letters, digits, underscore, hyphen and dot.
How long should a tool description be?
Claude's documentation says at least three to four sentences, more if the tool is complex. Put what matters most first. For a tool it loads at the start, Claude Code keeps 4,096 characters of the description.
Should a tool return identifiers?
Yes, the ones the next call needs, each with a readable name beside it. Anthropic's article warns against low-level identifiers on their own. Claude's documentation and OpenAI's page both say to return stable identifiers for follow-up calls.
Do hints make a tool safe?
No. A hint tells an agent's app what a call can change, and the specification says not to rely on hints from a connector you do not trust. With no hints, a tool is taken to change things and to be destructive. Set them, and make the tool itself refuse what it must not do.
Sources
- Writing effective tools for AI agentsanthropic.com · read 6 December 2026
6299c1baa75e - Define toolsplatform.claude.com · read 6 December 2026
589657c0ed12 - Connector pre-submission checklistclaude.com · read 6 December 2026
613f3e371eea - Toolsmodelcontextprotocol.io · read 6 December 2026
e4fcffe26325 - Schema Referencemodelcontextprotocol.io · read 6 December 2026
df0480d13643 - Function callingdevelopers.openai.com · read 6 December 2026
1c742df62507 - Define toolsdevelopers.openai.com · read 6 December 2026
c0cb4c691004 - Connect Claude Code to tools via MCPcode.claude.com · read 6 December 2026
6c49c6d48f5e - Model Context Protocollearn.chatgpt.com · read 6 December 2026
12266629489c
Written from the primary pages listed as sources, read 2026-12-06, and from this site's own files. No outside reviewer.