CrabTalk
Blog

How to name MCP tools: names, titles and descriptions agents pick correctly

An MCP tool has a name for code, a title for people and a description for the model. How to write each so agents pick the right tool.

CrabTalk Team

An agent chooses a tool by reading text. When a tool goes unused, or the agent calls the wrong one, the cause is usually in three short fields, not in the code. This post covers what each field is for, the rules we follow for them, and before-and-after examples.

Three fields, three readers

The MCP specification gives every tool these fields:

Field Read by What it's for
name Code The identifier in tools/call, unique on the server
title People An optional display name for the client's UI
description The model What the tool does, which the model reads to decide whether to call it

Each one has a different reader, so write each for its reader. A name full of spaces, a title written as a paragraph, or a description that only restates the title all leave one reader without what they need.

Names: short, stable, prefixed

  • Use a verb and an object: send_email, search_web, get_issue. A name the model has to guess the meaning of is a name it won't pick.
  • Keep to letters, digits, _, - and .. SEP-986 specifies the allowed format; spaces belong in the title.
  • Prefix by service when a client mixes servers: github_create_issue, linear_create_issue. Two servers can each define create_issue, and tool search matches a prefix: Anthropic's tool search docs recommend namespacing so one search finds the whole group.
  • Never rename a published tool. Agents and prompts refer to it by name, so a rename breaks them. Add a new tool and deprecate the old one instead.

Titles: what a person scans

A title is the label in a tool picker, a permission prompt or a catalog. Our rules:

  1. Name the action, verb first, in a few words. "Send email", "Scrape a page", "Count daily site views".
  2. At most 60 characters. Long enough for a specific action, short enough for one line in a picker. All 602 tool titles in our public services fit.
  3. Leave out the service's name. The client already shows which server a tool comes from, so "Firecrawl: scrape a page" says "Firecrawl" twice.
  4. No filler. "This tool allows you to", "Helper for", "Utility that".
  5. No final period. It's a label, not a sentence.
Before After
This tool lets you send an email message using Resend. Send email
Firecrawl Scrape Endpoint Scrape a page
Get data Count daily site views
search Search the web

Descriptions: what the model decides with

The description is the only field the model reads in full. A good one answers four questions, in this order:

  1. What does it do? One sentence, more specific than the title.
  2. When should it be used, and when not? Especially if a neighbouring tool does something similar.
  3. What does it need? Inputs that aren't obvious from their names, their formats and their limits.
  4. What happens? What it returns, plus side effects and costs: "sends an email", "charges the caller's credit", "can't be undone".
Before: Scrapes a URL.

After:  Fetch one web page and return its main content as Markdown, without
        navigation or ads. Use it for a page whose URL you already have; use
        Search the web to find pages. Follows up to 5 redirects. Each call
        uses one Firecrawl credit.

Write the words people use for the task. A person asks to "check a site's traffic", not to "aggregate pageview events", and tool search matches the words in the description, so a description that uses theirs is one that gets found.

Where the text comes from

Keep all three next to the code that implements the tool, so they change together. A doc comment holds them naturally, the way rustdoc already splits one: the first line as the title, and the rest as the description.

/// Send email
///
/// Sends one email through Resend from a verified sender domain. Returns the
/// email's ID. Repeating a call with the same idempotency key within 24 hours
/// doesn't send it again.
pub fn send(email: Email) -> Result<Sent> { … }

When the tools come from an OpenAPI document, the operation's summary is the title and its description is the description. Review them before exposing them to agents: a third-party spec's summaries are often written for a reference page, not for a model choosing between tools.

Checklist

  • Name: verb and object, letters, digits, _, -, ., prefixed by service, never renamed.
  • Title: verb first, 60 characters at most, no service name, no filler, no period.
  • Description: what, when (and when not), inputs, and effects, using the user's words.
  • Keep all three in the code, beside the implementation.