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

An AI assistant can make, start and drive your profilesIn Mosaic: MCP server. Let an AI assistant create, launch and drive profiles. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

How it works: 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, and how an agent drives a page through them is in an 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.

Sources

  1. Model Context Protocol specification: Tools, read November 3, 2026