r/mcp • • 12d ago

discussion What should an MCP client do when a server changes a tool you already accepted?

Post image

I first heard about tool drift in this sub, when I posted the MCP client I'd built for the LocalLM SDK. Many thanks to u/Street_Inevitable_77!

I think I finally have a handle on it in version 3 of the SDK. The app I built to show off v3 is ChatAgain, (yet another) macOS chat app, now waiting for Mac App Store review. Most chat apps are a chat UI on top of an LLM; ChatAgain has a full MCP client (spec revision 2026-07-28). Apple has been signaling concern about AI running amok on your Mac, so privacy and security were a goal from the start. That meant dealing with drift.

The problem: you connect a server and accept its tools. Later the server changes them, and if the server declares the listChanged capability, your client hears about it straight away. The spec (2026-07-28) tells clients to treat tool annotations as untrusted and to keep a human in the loop for calls, but says nothing about a tool you already accepted coming back with a different description. Most clients I've used just take the new list. But a tool description is text the model reads. A server that behaves until it's trusted and then rewrites a description is injecting instructions. At the same time, most changes are harmless, and a client that asks about every one teaches people to click Accept.

Here's how v3 handles it. Two principles first:

Compare against what the user accepted, not what you last saw. Otherwise a change nobody reviewed becomes the baseline on the next connect.

Classify by kind of change, not size. A one-line description edit can be an injection. A new optional parameter is a big diff and harmless.

Change Default
Description or title text changed (text the model reads) Ask before the next turn that needs the server
A tool now writes where it used to only read Ask
A new tool, a tool that shadows another server's name, or a parameter that accepts more values Hold that tool until accepted; the rest of the server keeps working
A tool relabeled as safer (writes → read-only) Take it, but keep rating calls by the accepted, riskier label until the user accepts
The server reports a different name Block the whole server until reviewed
Changes that can only break calls (removed tool, new required parameter, type change) Take and log

There's also a strict policy (ask about almost everything) and a permissive one for servers the app itself vouches for. The policy can be set per server.

A real case (see the screenshot). In testing, DeepWiki edited the descriptions of three of its tools. The client held them and showed the card.

Nothing was wrong with the edit. The user was asked anyway, because a rewritten description is exactly where a hostile server would hide instructions. That's the trade-off I'm least sure of: legitimate servers edit descriptions all the time.

What I'd like to know:

  1. Description edits. Ask, or take and log? If you ask, how do you keep people from rubber-stamping?
  2. Does a diff help? Is showing the old and new text useful to users, or only to developers?
  3. The "safer label" rule. Is keeping the old rating until accepted overkill?
  4. Server authors: how often do you change descriptions after release? Would a client holding them annoy your users?
  5. Clients: what does yours do today?

The full table, with the reasoning behind each rule: https://github.com/ancientcomputing/locallm/blob/3.0.0-GA/docs/security-guide-for-hosts.md#4-servers-trust-approval-and-drift

1 Upvotes

13 comments sorted by

2

u/kanagu_dev 11d ago

One gap in the table: "new optional parameter = harmless" only holds for the schema shape. Every property in inputSchema can carry its own description, and the model reads those just like the tool description. So a new optional param with an instruction in its description is the same injection, it just lands in a spot most diffing ignores. I'd fingerprint the full canonicalized tool object (description, every nested schema description, outputSchema, annotations) and route any text change through your "description changed" path, whatever the diff size.

Same for the instructions string in the initialize result, plus prompt and resource descriptions if you surface those to the model. instructions can't change mid-session, but it can change between connects, and it's arguably the most prompt-like text a server sends.

1

u/AdventurousKeys 10d ago

This is a real gap, thank you. I checked the code: a new optional parameter is classified by shape and taken, and its description is never read. Nested descriptions inside an object parameter only count as a type change, and default, title and examples aren't compared at all. Fixing it the way you describe: every bit of text the model can read, at any depth, compared as text, and any change to it asks, including text that arrives in a new parameter. instructions from initialize is stored but isn't sent to the model today, so it's not exposed yet, but it goes in the same check if that changes.

1

u/robertovg 11d ago

Good catch, and the same goes for enum values and defaults, the model sees those too. I'd diff the whole inputSchema as text the model reads, not as a type shape. Any change to a description, enum or default counts as a description change and goes through the same approval. Only a purely structural change with no new text is safe to accept silently.

1

u/AdventurousKeys 10d ago

Agreed. Enums were already covered (new values hold the tool), but defaults weren't, and that's going in with the fix above.

1

u/robertovg 9d ago

Nice. One detail for defaults: compare what the model ends up reading, not only the default key. A default that moves from the schema into the description text, or the other way round, tells the model the same thing but shows up as two changes in a diff, and a real change can hide in that noise.

1

u/Kind-Atmosphere9655 12d ago

on 3, we stopped letting the server's label rate a call at all.. each server we proxy has its own pinned list of tool names, and auto-approval for reads keys on that name, not on readOnlyHint

a tool the vendor adds later just isn't served until someone re-pins from a fresh snapshot. so a relabel or a new tool changes nothing by itself

1

u/AdventurousKeys 10d ago

Close to where I ended up. An untrusted server's hints aren't believed at all, so anything that might change data asks. The hint only counts for a server the user has marked trusted, and even then a safer label waits for review. Pinning by name for auto-approval is a nice tightening on top of that.

1

u/semilla1lab 11d ago

The rule I would not drop is comparing against what the user originally accepted, not whatever the client last cached. A rewritten description is text the model will follow on the next call, so asking once, with a short old/new diff, seems fair. To keep people from rubber-stamping, I would only prompt when the change is visible to the model or when a tool gains write access, and leave the rest of the server usable. Silent-and-log for purely breaking changes (removed tool, new required parameter) also looks right to me.

1

u/Future_AGI 11d ago

ranking the edit before you show it could cut the rubber-stamping. A typo fix and a new sentence that tells the model to do something are different events, and if semilla1lab's short diff highlights only the imperative sentences, people get one line to read.

0

u/[deleted] 12d ago

[removed] — view removed comment

1

u/AdventurousKeys 10d ago

I like this as a way to make the prompt rarer: a mid-session list_changed edit with no new version is the suspicious case. The version is self-reported, though, so I'd use it to choose between a hard prompt and a lighter "here's what changed in 1.4" note at connect, not to skip review.