r/mcp • u/AdventurousKeys • 12d ago
discussion What should an MCP client do when a server changes a tool you already accepted?
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:
- Description edits. Ask, or take and log? If you ask, how do you keep people from rubber-stamping?
- Does a diff help? Is showing the old and new text useful to users, or only to developers?
- The "safer label" rule. Is keeping the old rating until accepted overkill?
- Server authors: how often do you change descriptions after release? Would a client holding them annoy your users?
- 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
2
u/kanagu_dev 11d ago
One gap in the table: "new optional parameter = harmless" only holds for the schema shape. Every property in
inputSchemacan carry its owndescription, 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
instructionsstring in the initialize result, plus prompt and resource descriptions if you surface those to the model.instructionscan't change mid-session, but it can change between connects, and it's arguably the most prompt-like text a server sends.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/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