# How to write MCP tool descriptions a model can act on

> Auditing 47 MCP tools found a field that did not exist, a trash called irreversible and a device list with no phones. A description is the model's contract.

Source: https://mosaicbrowser.com/blog/tool-description-is-the-contract

## Three MCP tool descriptions that told a model something untrue

Auditing 47 MCP tools found a field that did not exist, a trash called irreversible and a device list with no phones. A description is the model's contract.

![The description is the whole contract, beside a screenshot: the Mosaic MCP server: let an AI assistant manage profiles, proxies and launches](https://mosaicbrowser.com/covers/tool-description-is-the-contract.webp)

Write an MCP tool description as if it were the only documentation that exists, because for the model it is. Say what the tool changes, whether that can be undone, which fields it really accepts, and what to call next. When we audited all 47 of Mosaic's tools against the code, three descriptions were wrong in exactly those places, and each one sent a model somewhere it should not have gone.

## What a model gets to read

The [MCP specification](https://modelcontextprotocol.io/specification/2025-06-18/server/tools) gives a tool a `name`, an optional `title`, a `description` ("Human-readable description of functionality"), an `inputSchema` ("JSON Schema defining expected parameters"), an optional `outputSchema` and optional `annotations`. That is all a client sees before it calls. It cannot open the handler, read the store, or ask what a field was meant to do.

Our REST API had checks that every route is documented and that every route refuses a bad request by name. Nothing checked the MCP side. A route with wrong docs still has an HTTP status that tells a person something went wrong. A tool with a wrong description just gets called as described.

## The field that did not exist

`update_profile` offered `archived: bool`, described as "Archive or restore". There was no such field: not in the `Profile` type, not in the store, not in the interface. The handler spread its arguments into `updateProfile`, which spread them into the record, so a model that archived a profile got back a success and a profile exactly as it was.

The rule this breaks is one we already held for the REST API: an unknown key is an error, not something to drop. A misspelt field and a stored one are byte-identical from outside. On a tool surface it is worse, because the caller is a model that did what it was told and has no reason to doubt the answer.

The repair had two halves. The field came out of the schema, and handlers stopped spreading. Writing a handler field by field also caught the next one before it shipped: a new `warm_up_profile` was drafted with a `minutes` option, which is not how a warm-up is described (it is a number of sites and a dwell range), and it compiled, because a spread into a `Partial<WarmupOptions>` skips TypeScript's excess-property check. Written as named assignments, it did not compile, and the same rewrite caught `acceptCookies` three lines away where the option is `acceptCookieBanners`.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: MCP server](https://mosaicbrowser.com/features/mcp-server)

## The trash that was described as irreversible

`delete_profile` said "Irreversible — stop it first if running". The store's `deleteProfile` has always moved a profile to the trash, where it keeps its cookies, logins and browser data until the retention window runs out.

A description that overstates the danger is not a cautious one. A model that reads "irreversible" and is asked to tidy up a test profile can refuse the safe call and reach for something worse. The description now says what happens: the profile moves to the trash, `restore_from_trash` brings it back whole, the browser is closed first if it is running, and the calls that actually destroy are `empty_trash` and `purge_from_trash`. Naming the dangerous neighbours is half the value, because they are the calls the model should think twice about.

## The device list with no phones

`list_devices` said its platform was "windows, macos or linux", and `create_profile` said the same. So through MCP a model could not make an Android profile at all, on a product whose Mobile library has its own place in the sidebar.

This one was not a typo in a sentence. The REST route had the same gap: `GET /fingerprints/devices` returned every desktop machine and no phones, because the device list only ever read the desktop catalogue. The description was faithfully describing a bug. The fix went into the code, and the schema now says "windows, macos, linux or android".

## How to write MCP tool descriptions: our rules now

These came out of that audit and the checks that followed it:

1. Lead with the effect. "Move a profile to the trash", not "Delete profile".
2. Say whether it can be undone, and by which tool.
3. Name the field exactly as the validator spells it. `update_proxy` once offered `label` where the field is `name`, so a model doing what it was told got a `400` naming a field it had been told to send.
4. Say when a call refuses, and that the refusal names the field.
5. Point to the next tool: an `id` from `list_devices` goes to `preview_fingerprint` or the create call.
6. Never describe a field the handler drops. If it reaches no code, delete it.

A description can be long. Ours for `list_devices` is three paragraphs, because what a model needs to choose a device (which machines this computer can stand behind, and why) does not fit in a line. The client puts the whole description in front of the model, so a missing fact costs more than a long paragraph.

## Test the schema, not your memory of it

The check that holds this now, `check:mcp-reach`, calls every tool's handler and asserts it has the effect it describes. Its first version missed the `label` field, because it sent a hand-written list of field names, which tested the validator against our expectations rather than against what the tool advertised. The field names now come from each tool's `inputSchema.properties`, which is the thing under test. If the schema offers a field the validator refuses, the build fails.

A second check maps every REST route to the tool that does the same job. It once passed a mapping from moving profiles between projects to `bulk_update_profiles`, because a tool of that name existed. That tool refused a `projectId` by name, so a model could not move a profile between projects at all, behind a green check. A name proves a tool is there. Only calling it proves what it does.

The audit was 47 tools. The server has more than 150 now, and the count in the app is read off the running server rather than from a sentence, for the same reason. What a model can do with them is on [the MCP server](https://mosaicbrowser.com/features/mcp-server), and how an agent drives a page through them is in [an MCP server for browser automation](https://mosaicbrowser.com/guides/mcp-server-for-browser-automation). When MCP is worth it over the REST API is a separate question, answered in [do you need MCP if you have an API](https://mosaicbrowser.com/blog/do-you-need-mcp-if-you-have-an-api).

## Sources

1. [Model Context Protocol specification: Tools](https://modelcontextprotocol.io/specification/2025-06-18/server/tools), read November 3, 2026

## Questions

### How long should an MCP tool description be?

As long as it takes to say what the tool changes, what it cannot undo and what to call next. Ours run from one sentence to several paragraphs. The client hands the model the whole description, so length is cheaper than a missing fact.

### Should an MCP tool description mention what the tool cannot do?

Yes, when a model would otherwise guess. Our delete tool says it moves a profile to the trash and names the calls that really destroy, because a model told the opposite refused the safe call.

### How do I test that an MCP tool's schema matches its handler?

Build the test from the schema the server advertises, not from a list you typed. We read every field name from each tool's inputSchema.properties and send it to the handler; a field the validator refuses is a failure.

### What should a tool do with a field it does not know?

Refuse the call and name the field. A dropped field and a stored one look the same from outside, and a model that is told a call worked has no way to find out it did nothing.

## Related

[An anti-detect browser MCP server for your AI assistant](https://mosaicbrowser.com/features/mcp-server): Mosaic's anti-detect browser MCP server lets Claude or any MCP client create, launch and drive your profiles. 150+ tools, off by default, key-gated.

[MCP server for browser automation: what it is and which to use](https://mosaicbrowser.com/guides/mcp-server-for-browser-automation): An MCP server for browser automation turns page actions into tools an AI assistant can call. Playwright MCP, Chrome DevTools MCP and Mosaic compared.

[We have a REST API and an MCP server, and they do different jobs](https://mosaicbrowser.com/blog/do-you-need-mcp-if-you-have-an-api): Use REST when your code decides the next call and MCP when a model does. On MCP the tool description is the whole contract, so it has to be exactly true.

[How to let Claude control a browser](https://mosaicbrowser.com/guides/let-claude-control-a-browser): Let Claude control a browser with the Claude in Chrome extension, or with an MCP server in Claude Desktop or Claude Code. Which to pick, and how to set each up.









[Letting an AI assistant run browser profiles over MCP](https://mosaicbrowser.com/blog/ai-assistant-runs-profiles): Mosaic's MCP server lets Claude or any MCP client create, start and drive browser profiles. Three faults we found when a model was the caller.

[A sleep is a guess with a number on it](https://mosaicbrowser.com/blog/wait-for-condition-not-sleep): Three detector rows slept for a time measured once; AmIUnique loaded in 31.7s once and under 10s the next. Polling for the value we read fixed all three.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
