Journal

Tool descriptions are part of your product

Names, parameters and error messages help an AI assistant use your software correctly. Small examples make the design choices clear.

A person opens a CRM and sees labels, filters, help text and confirmation screens. An AI assistant needs another way to understand what the product can do.

With the Model Context Protocol (MCP), much of that interface lives in the tool definitions: names, descriptions and input schemas. The assistant uses them to decide which tool to call and what to put in its arguments. The MCP tools specification defines those fields, along with structured results and tool errors.

A tool can call the right application code and still be difficult to use. If “active customer” has three meanings, a short description saying “returns active customers” leaves the assistant to guess which one applies.

Write for the task someone is trying to complete

Consider a fictional sales assistant helping a team find deals that need attention. A tool called get_data, described as “Returns deal data”, tells it very little.

A more useful name is list_deals_awaiting_follow_up. Its description might say:

Lists open deals the signed-in user can access. Includes deals with no recorded contact, or whose latest recorded contact is before last_contact_before. Returns one page, the total matching count and a cursor for the next page. Does not send messages or change deals.

That description explains what qualifies, who can see it and what the result contains. It also makes the boundary between reading and acting clear. These are details someone would need when using a screen, too.

Use the customer's vocabulary. Internal table names and implementation terms add little unless the caller genuinely needs them. When two tools appear to do the same job, explain the difference or consider combining them. Keep separate tools when the actions, permissions or expected inputs are meaningfully different. Tool count alone is a poor measure of quality.

Make valid arguments easy to produce

The description should agree with the schema. Here is an illustrative input schema for that sales tool, rather than a full MCP request:

{
  "type": "object",
  "properties": {
    "last_contact_before": {
      "type": "string",
      "format": "date-time",
      "description": "Contact cutoff as an RFC 3339 timestamp with an explicit timezone."
    },
    "cursor": {
      "type": "string",
      "description": "Continuation cursor returned by the previous page."
    }
  },
  "required": ["last_contact_before"],
  "additionalProperties": false
}

The server still needs to validate those arguments, including the timestamp and any cursor binding to the user's query. Publishing a schema is only one part of that work. The implementation must also enforce account boundaries and current permissions.

Avoid silent, consequential defaults. If a report uses the current month when dates are omitted, return the dates that were applied. If a caller passes a misspelt filter, reject it clearly instead of returning a broader dataset. A plausible answer from the wrong population can be harder to notice than an error.

The same care applies to output. Give important values stable names and explain units. State whether a list is complete. For reporting tools, include the calculation's definition and selected period. Keep large text fields and unrelated records out of the default response.

Help the assistant recover from a mistake

“The tool failed” leaves the caller with little to do. For a bad cutoff value, a useful error would say:

last_contact_before must include a date, time and timezone, for example 2026-10-01T09:00:00+01:00. The value last Thursday is not accepted.

Now the assistant has a route to a valid retry. The error should identify the argument and the accepted form without exposing a stack trace or private records. For an identifier the user cannot access, avoid revealing whether it exists in another account.

Some failures need a different response. If the CRM is unavailable, say that it is unavailable. If the user's permission has been removed, refuse the request. Neither situation should become an empty list that the assistant interprets as “no deals need attention”.

A successful result benefits from a little explanation too: the cutoff used, the number of matches, whether another page exists, and when the underlying data was last refreshed. Those fields help the assistant explain its answer without inventing context.

Check the behaviour with a small set of real questions

Keep a set of questions based on the work the tool is meant to support. Deals with no contact should be included; a recorded contact exactly at the cutoff should be excluded. Test several pages of results and records the user cannot access. Add a request to send follow-ups: a read tool should never quietly turn that into an action.

Record which tool was selected, the arguments it received and the result the assistant presented. A polished final answer can hide an incorrect filter or a missed page. Repeat useful cases across several runs, and keep the model, tool definitions and test data recorded so comparisons mean something.

When a description changes, rerun the same questions. Check whether the change fixes the intended problem and whether it makes another task harder. A couple of successful examples can justify further testing; they cannot establish a general success rate.

Treat these definitions as product text that deserves review whenever the behaviour changes. A renamed status, a new default or a different refresh schedule should reach the description and its tests in the same change.