MCP tool input schema validation has two halves: the schema a model reads, and whatever checks the call behind it. The schema is the only description of the tool a model ever sees, so the two have to agree. Ours did not. update_proxy advertised a field called label, and the validator behind it refused label by name with a 400. A model doing exactly what the tool told it to do got an error for doing it. We found it with a check that takes its field names from inputSchema.properties, and only on the check's second version.

How the call failed

A saved proxy in Mosaic has a name. The REST route that edits one runs the body through proxyBody, which refuses any key it does not know, because a misspelt field and a stored one look the same from outside. Its message is the usual one:

Unknown proxy field `label`. Valid fields are: city, countryCode, host, name, ...

That is the right refusal for a person who typed label by mistake. It is the wrong one for a caller who read label in the tool's own schema. There was no way for that caller to be right: the schema said send label, the validator said label does not exist, and the model has nobody to ask which one meant it.

We count this as worse than a silent no-op. A caller who hits a no-op could, in principle, have sent something else; a caller who hits this has no correct move at all. It also hides well, because a 400 for following the documentation looks like the model's mistake, and anyone reading the transcript blames the model.

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

MCP tool input schema validation, starting from none

The label bug sat on top of an older one. Mosaic's MCP server first shipped with no argument checking. Every tool declared an inputSchema, the schema went to the model in tools/list, and then tools/call passed the arguments to the handler without looking at them again.

On 17 September 2026 we measured what that meant. get_project takes id. Called with { "projectId": "…" }, it answered No project with id undefined. The misspelt key was dropped, the handler ran on nothing, and the caller was told the project did not exist.

Since then one gate, src/main/api/mcp-args.ts, runs before every handler, with the same rules as the REST validator:

  • An unknown argument is refused, and the message lists the ones that exist: `projectId` is not an argument of get_project. It takes: id.
  • A missing required argument is refused by name before the handler sees undefined.
  • A wrong type is refused rather than coerced. "3" is not quietly turned into 3, because then the stored type would depend on who called.
  • null on an optional field counts as absent, because models fill every field of a schema and write null for the ones they do not want.

Only the top level is checked there. A nested object such as run_warmup's options goes on to the handler, which validates its own shape. Writing those rules a second time in the gate would give one fact two descriptions, and the second copy is the one that drifts.

Settings › MCP in Mosaic: the server switch, port 39218 and the stdio client config
Settings › MCP: the server is off until you turn it on

Why the gate did not catch label

The gate checks a call against the schema. If the schema itself is wrong, a call that matches it passes the gate and then hits the REST validator underneath, which has its own list. Two lists of field names for one object, and they disagreed.

Our first check for this sent each tool a hand-written set of field names and asserted that none came back as unknown. It passed. Of course it passed: we had written the names from the proxy object, so we had tested the validator against itself, and never once read what the schema offered.

The second version takes the names from the thing under test. For every tool, check:mcp-reach walks inputSchema.properties, builds a plausible value per declared type (a string x, the number 1, the first enum value), calls the handler with that one field, and fails only on a refusal shaped like Unknown … field. A value the field legitimately rejects, such as a two-letter country code that is not x, is the check's sample being wrong and is allowed. The schema and the validator disagreeing is the fault. On its first run it found update_proxy.

The fix was one word in the schema. The comment above that line in mcp.ts now says why it is name and not label, and the check holds it.

What carries over to any MCP server

  1. Validate every call against the schema you published, before the handler runs, and name the field in the refusal.
  2. If a lower layer has its own list of fields, test the schema against that layer, with names read from the schema.
  3. Treat null as absent on optional fields, because that is what models send.
  4. Put the arguments the tool does take into the error. A model fixes a misspelling in one retry when the right word is in front of it.

How the rest of Mosaic's MCP server behaves with a model as the caller, including the list tools that once returned every row, is in letting an AI assistant run browser profiles. The same rules from the protocol's side are on Model Context Protocol, and a worked set-up with a client is in the MCP server guide. The server ships with Pro; what it can reach is on the MCP server page.