# 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.

9 steps. Checked 2026-12-06. Page for people: https://app.makeaguide.guides.hopperlabs.ai/guides/design-tools

You start with: What people ask your product to do; Your product's API or functions.

You end up with: A few named tools (one for each request); A description for each (what it does and when to use it); Inputs that are hard to get wrong; Outputs the next call can use; A clean check (no findings).

## Steps

### 1. Start from what people ask

Write 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`.

### 2. Keep the list short

Offer 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_request` tool with a `method` input.

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.

### 3. Name each tool plainly

Give 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_notes` or `add_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_search` and `notes_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 `title` is the name people see, written as ordinary words, such as "Search notes". Where there is no title, people see the `name` instead.

From `connector/src/tools/shared.ts`:

```typescript
export const listGuides = tool({
  name: 'list_guides',
  title: 'List the guides',
```

### 4. Describe it for a newcomer

Say 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.

From `connector/src/tools/check-guide-folder.ts`:

```typescript
  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.',
```

### 5. Make wrong input hard

Name 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`, not `user`. 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 `inputSchema` must be a valid schema and never null. For a tool with no inputs it recommends this form:

```json
{ "type": "object", "additionalProperties": false }
```

From `connector/src/tools/shared.ts`:

```typescript
    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.'),
```

### 6. Return what comes next

Return 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 `search` returns an `id` and a `title` for each match. Its description says which tool takes the `id` next.

#### 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.

From `connector/src/tools/shared.ts`:

```typescript
  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() }),
```

### 7. Make errors say what to do

Send 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 `search` returns an empty list with a note: "Nothing matched. Try fewer or plainer words, or call list_guides to see every guide."

From `connector/src/tools/shared.ts`:

```typescript
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.`);
```

### 8. Say what each tool changes

Mark 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`, `idempotentHint` and `openWorldHint`. Claude's connector directory asks for `readOnlyHint: true` on tools that only read, and `destructiveHint: true` on tools that change or delete data.

`idempotentHint` means that calling again with the same input changes nothing more. `openWorldHint` means 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.

From `connector/src/hub.ts`:

```typescript
      annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
```

### 9. Check the list

Send your list to the check and fix every finding it returns.

#### How do I check my tools?

Give the list to `check_tools` on this site's connector. Send each tool as it is: `name`, `title`, `description`, `inputSchema`, `outputSchema` and `annotations`. It returns findings. Each finding names the tool, the rule and what to change. The list is ready when `ready` is 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 `id` or `data`;
- no hint;
- a catch-all tool, or more than 20 tools.

A missing `outputSchema` is 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](https://app.makeaguide.guides.hopperlabs.ai/guides/test-agents.md)

## 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

## 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 agents](https://www.anthropic.com/research/writing-tools-for-agents), read 2026-12-06, sha256 6299c1baa75efaa605f8f13480941da26eff309c6343e2d891e23f245b51c962
- [Define tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-tools.md), read 2026-12-06, sha256 589657c0ed125f3f3a21f2a12d4d3ed65cd774c065e6595bd045d2f43f6f90b8
- [Connector pre-submission checklist](https://claude.com/docs/connectors/building/review-criteria.md), read 2026-12-06, sha256 613f3e371eea3d1cb8bee974955950bcbcf4d7f560792270dae50d82073b086a
- [Tools](https://modelcontextprotocol.io/specification/2026-07-28/server/tools.md), read 2026-12-06, sha256 e4fcffe263254cb7cc6b95854436091a541e77ea88cd53431ab26f9e2429f9b7
- [Schema Reference](https://modelcontextprotocol.io/specification/2026-07-28/schema.md), read 2026-12-06, sha256 df0480d13643610b23d5b13d5df4d4996630d947b7674f97ee472ce7294da226
- [Function calling](https://developers.openai.com/api/docs/guides/function-calling.md), read 2026-12-06, sha256 1c742df62507ff46982b348430c65aa766027a190e711be99b01c6c72d703c9f
- [Define tools](https://developers.openai.com/plugins/plan/tools.md), read 2026-12-06, sha256 c0cb4c691004aeddd3c624d508ee858278e3616fbac878d8ce80f45d45f0557a
- [Connect Claude Code to tools via MCP](https://code.claude.com/docs/en/mcp.md), read 2026-12-06, sha256 6c49c6d48f5e5e07051968231c9526958f75428cca8d217b4a4fb5279d90ae1f
- [Model Context Protocol](https://learn.chatgpt.com/docs/extend/mcp.md?surface=cli), read 2026-12-06, sha256 12266629489c323c218c3b360db305144863b901b80b4e70b53924825ecc56e4

Written from the primary pages listed as sources, read 2026-12-06, and from this site's own files. No outside reviewer.

## For agents

- Connector for this guide: https://app.makeaguide.guides.hopperlabs.ai/api/mcp/design-tools (tools: list_guides, search, get_guide, fetch, define_word, check_tools)
- Connector for every guide: https://app.guides.hopperlabs.ai/api/mcp
- Skill: https://app.makeaguide.guides.hopperlabs.ai/skills/hopper-design-tools/SKILL.md
- Tests written: 6. What agents did with them: https://app.makeaguide.guides.hopperlabs.ai/results
- Next guide: [Give your product a connector](https://app.makeaguide.guides.hopperlabs.ai/guides/add-a-connector.md)
