Tool description

Updated November 24, 2026

A tool description is the plain-language text in a tool definition that tells a language model what the tool does, when to use it and what its inputs mean. The model reads it next to the tool's name and input schema when it decides which tool to call, so the wording shapes both the tool it picks and the arguments it sends.

In short: A tool description is the human-readable text in a tool definition, read by the model with the name and input schema, that explains what a tool does and when to call it.

How a tool description works

A tool calling request sends the model a list of tools. In the Model Context Protocol specification, each MCP tool entry has a unique name, an optional display title, a description of what the tool does and an inputSchema written in JSON Schema 1. The client gets that list from a tools/list request and passes it to the model 1.

The model never sees the code behind a tool. It sees the name, the description and the parameter schema, and it picks a tool and fills in the arguments from those alone. OpenAI says function definitions are injected into the system message in a syntax the model has been trained on 2.

Descriptions work at two levels. The tool description explains the job as a whole, and each property in the input schema can carry its own description. The weather example in the MCP specification describes the tool as getting current weather information for a location and describes its one parameter as a city name or zip code 1.

OpenAI's guide gives detailed advice on writing them 2. Describe the purpose of the function and of each parameter, including its format, and say what the output represents 2. Use the system prompt to say when and when not to use each function, and add examples and edge cases to fix recurring failures 2. The guide also proposes an intern test, which asks whether a person could use the function correctly given nothing but what the model was given 2.

Long descriptions cost tokens. Definitions count against the model's context limit and are billed as input tokens, and the guide suggests shorter descriptions, fewer tools loaded up front or tool search when limits get tight 2. It also suggests aiming for fewer than 20 functions at the start of a turn, as a soft target 2.

Descriptions can also carry rules the schema cannot express. For tools that create server-side state, the MCP specification says the retention policy should be stated in the creation tool's description, such as baskets that expire after 24 hours of inactivity, so the model sees it when deciding to create state 1.

What a good tool description contains

A useful description usually covers the same few points.

What the tool does. One sentence with a specific verb and object, such as finding a verified work email from a full name and a company domain. A vague line such as finds emails leaves the model to guess the inputs.

When to use it. OpenAI places when-to-use guidance in the system prompt 2. A short line in the description still helps when two tools overlap, such as one search tool for a CRM and another for a support ticketing system, a case the guide handles with namespaces 2.

Input formats. State the format of each argument in its own property description, since the guide asks for each parameter and its format to be described 2.

What comes back. Say what the output represents, including what an empty result looks like 2.

Cost and side effects. For a paid API, say whether a call costs anything when it finds nothing. On RichAPI, waterfall endpoints such as email_finder cost zero credits on a miss, while endpoints such as enrich_profile bill on any 2xx response 3.

Descriptions also carry security risk. The server writes the text and the model treats it as guidance, so a careless or hostile server can push the model toward the wrong call. The MCP specification tells clients to treat tool annotations as untrusted unless they come from trusted servers, to show tool inputs to the user before calling the server and to ask for confirmation on sensitive operations 1.

Example of a tool description

A GTM engineer wraps RichAPI's email finder as a LangChain tool for an AI agent that builds contact lists. The first version has a one-line description.

python
@tool
def find_email(name: str, domain: str) -> dict:
    """Finds emails."""

The model treats domain as free text and passes whatever it has. RichAPI's LangChain guide notes that models hand APIs addresses such as https://www.acme.com/about constantly 3.

The second version follows the guide's own tool 3.

python
@tool
def find_work_email(full_name: str, company_domain: str) -> EmailResult:
    """Find a verified work email. company_domain must be a bare
    domain such as acme.com. No scheme, no www, no path."""

The guide calls the sentence about bare domains load-bearing 3. On email_finder a malformed domain costs nothing, because the waterfall soft-fails free, but on enrich_profile, which bills on any 2xx, the same mistake costs a credit 3.

The rewrite also renames the arguments. With full_name and company_domain, the model no longer has to guess what name and domain mean.

The engineer then adds one line about misses, saying that a miss returns found as false with the list of sources tried. The return type in the guide is a typed result with a found flag, so the next step branches on found instead of reading a string 3. The agent can now tell an empty result from a bad input, and it has less reason to retry the same arguments after a miss.

Tool description vs system prompt

Both are text the model reads before it acts. OpenAI's guide puts the purpose of each function and its parameters in the function definition and the guidance on when and when not to use each function in the system prompt 2.

Tool descriptionSystem prompt
What it answersWhat does this tool do and take?How should the model behave in this app?
InputPurpose, parameter formats, output meaningRole, rules and when to use which tool
OutputA tool choice and filled argumentsBehavior across the whole conversation
Cost driverTokens for every tool on every requestTokens for the prompt on every request
Main riskVague wording that triggers the wrong callRules that conflict with tool descriptions
Use it whenGuidance belongs to one tool wherever it runsGuidance depends on the app, user or task
Read the reference →

Frequently asked questions

What is a tool description in MCP?

It is the description field in an MCP tool definition, next to the name, an optional title and the inputSchema 1. The client passes it to the model with the rest of the tool list, and the model uses it to decide whether the tool fits the request and how to fill the arguments.

How long should a tool description be?

Long enough to state the purpose, the input formats and what the output means. Tool definitions count against the context limit and are billed as input tokens, so OpenAI suggests shortening descriptions when limits get tight 2. Put app-wide rules in the system prompt instead of repeating them in every tool.

What is the difference between a tool description and a parameter description?

The tool description explains the whole tool. A parameter description sits inside the input schema and explains one argument, such as its format or allowed values. The weather example in the MCP specification uses both, with one line for the tool and one for its location parameter 1.

Can a tool description be malicious?

Yes. The server writes the text and the model treats it as guidance. The MCP specification tells clients to treat tool annotations as untrusted unless they come from trusted servers, to show tool inputs to the user before a call and to confirm sensitive operations 1. Connect only servers you trust.

The bottom line

A tool description is the text a model reads to decide whether and how to call a tool, and it sits next to the name and input schema in every tool definition 1. Write it for a reader with no context. State the purpose, the format of each input, what the output means and what a call costs, and keep it short, because every definition is billed as input tokens 2.

Sources

  1. Tools (specification, version 2026-07-28), Model Context Protocol
  2. Function calling, OpenAI
  3. LangChain integration guide, RichAPI
  4. RichAPI MCP server, RichAPI

More terms