When you connect an AI agent to an MCP server, you usually look at its tools once and approve them. After that, the server can change those tools. Most of the time the change is an ordinary update. Sometimes it is not.
Security researchers call the bad case a “rug pull”: a server that looked harmless when you approved it, and changed afterwards. A closely related attack is “tool poisoning”, where the instructions hidden in a tool’s description are the attack.
This post explains both in plain terms, how to tell them apart from a normal update, and what you can do about them today. I build Stackduke, which works in this area. Near the end I say what its free tools do, and how Stackduke governs the calls themselves.
What a tool definition is
The Model Context Protocol (MCP) is an open standard for connecting AI agents to outside systems. An MCP server offers tools. The application the agent runs in, the client, asks the server for its tools with a tools/list request, and later calls one with tools/call.
Each tool in the list is a small piece of JSON, its definition. Here is a made-up example:
{ "name": "create_refund", "description": "Refund a payment. Amount is in the currency's smallest unit.", "inputSchema": { "type": "object", "properties": { "payment_id": { "type": "string" }, "amount": { "type": "integer" } }, "required": ["payment_id", "amount"] }, "annotations": { "destructiveHint": false }}The MCP specification lists the fields: a name, a description, an inputSchema for the arguments, and optionally a title, an outputSchema and annotations. Annotations are hints about behaviour, such as readOnlyHint and destructiveHint.
Why the model trusts it
The model cannot read the server’s code. It only knows what a tool does from the definition. So it reads the description to decide when to call the tool and how to fill in the arguments. To the model, that text is part of its instructions.
The person using the agent usually never sees the full description. Trail of Bits put the consequence plainly in April 2025: “MCP servers can manipulate model behavior without ever being invoked” (Trail of Bits). The server’s text reaches the model as soon as the client lists the tools, before any tool is called.
The specification is careful about this. It says clients “MUST consider tool annotations to be untrusted unless they come from trusted servers” (MCP tools). The same caution applies to descriptions: they are text from someone else.
How a server can change after you approve it
A tool definition is not a file you installed. The client asks for it again each time it lists tools, and gets whatever the server says now.
- A remote server is run by its operator, who can deploy a new version at any time.
- A local server started with a command such as
npx some-packagecan pick up a newer package version the next time it starts, unless you pinned the version.
The protocol has a way to announce a change. A server that declared the listChanged capability “SHOULD” send notifications/tools/list_changed, and the client then lists the tools again (MCP tools). The tools section of the specification does not require the client to ask you to approve the new list. Whether you are asked again depends on your client.
Invariant Labs named the attack in April 2025: “a malicious server can change the tool description after the client has already approved it” (Invariant Labs).
The same shape has appeared in a real product, one level up. In Cursor, CVE-2025-54136, which Check Point called “MCPoison”, tied trust to the name of an MCP configuration entry rather than to its command, so a later change to the command was not checked again. Cursor 1.3 fixed it, and Check Point found that the update requires approval for any change to an MCP configuration (Check Point Research, August 2025).
How often tools change
Often, and mostly for ordinary reasons.
- A survey of 13,015 public MCP endpoints on 9,397 hostnames, posted to the MCP specification’s discussions in August 2026, found that 8% of hostnames changed their tool list between two looks days apart. It never called a tool and saw only what an anonymous caller sees (discussion #3303).
- When we compared the tool definitions GitHub’s MCP server publishes at release v1.14.0 and at v2.0.0, 123 of 131 had changed. 75 of those only gained an output schema, and the other 48 also had their input schema rewritten. No description was rewritten. The server GitHub hosts matched neither release exactly: of 45 live tools found in the files, one was identical to its v2.0.0 file and seven to their v1.14.0 files (our notes). That is normal development, not a vulnerability. It does mean a project’s published files are not a reliable record of what its server serves, so you have to watch the server itself.
Tool poisoning, and how it differs from a normal update
Invariant Labs defines a tool poisoning attack as one where “malicious instructions are embedded within MCP tool descriptions” that users do not see but models do (Invariant Labs). Their example was a simple adding tool whose description also told the model to read private files and pass their contents along in an extra argument.
A poisoned description can be there from the first day. A rug pull is the version that arrives later, after you approved a clean one. It can also be quieter than hidden instructions: a tool that used to read can start to delete, with the same name.
Most changes are not attacks. Over its first days, the changes Radar saw on official vendor servers looked like ordinary product work: reworded descriptions, a changed input schema, and a new tool that sends messages. So “changed” does not mean “rug pull”. It means “look again”.
Here is how I would sort a change when I look again.
| Usually an ordinary update | Worth a closer look |
|---|---|
| Clearer wording that says the same thing | Text addressed to the model: “ignore”, “before any other tool”, “do not tell the user” |
| A new optional argument that fits the tool’s job | Mentions of files, keys or credentials the tool has no reason to touch |
| An output schema added | A request to send data to an address or argument that does not fit the tool |
| A new tool that fits the product | Invisible or unusual characters in the text |
| A change the vendor announced | A tool that can now do more: read becomes write or delete, or a send or payment tool appears |
The right-hand column is not proof of an attack, and a careful attacker can avoid all of it. A tool that can now do more may be a perfectly good feature. It still deserves a fresh decision, because what you approved was something smaller.
How to defend against it
No single step covers everything. Together, these make a change visible and limit what it can do.
- Pin or snapshot what you approved. Invariant Labs recommends that “clients should pin the version of the MCP server and its tools to prevent unauthorized changes”. For a local server, pin the package version instead of running whatever is newest. You cannot pin a remote server, so save a snapshot of what
tools/listreturned when you approved it. - Diff on change. Compare each new tool list with your snapshot: tools added, tools removed, and which fields of each tool changed. Do it on a schedule as well as on notification, because the notification is a “SHOULD” and not every client acts on it.
- Re-review before you rely on the change. Read a changed description in full, as text, outside the agent. Treat it as untrusted data, not as instructions to follow.
- Use least privilege. Give the agent the narrowest credentials that do the job, read-only where you can, and switch off tools it does not need. The specification’s security guidance recommends a “progressive, least-privilege scope model” (MCP security best practices). Whatever a description says, the agent cannot do more than its credentials allow.
- Watch official servers too. A big vendor’s server is less likely to be hostile, but it changes like any other. The GitHub example above is an official server.
- Keep a person on the risky calls. The specification says “there SHOULD always be a human in the loop with the ability to deny tool invocations” (MCP tools).
These steps watch the definitions. They do not see what a server’s code does. In September 2025, Snyk reported an unofficial postmark-mcp package on npm that, from around version 1.0.16, quietly added a blind copy of each email to an outside address (Snyk). That change was in the code, so watching tool definitions alone would not necessarily have caught it. Instructions hidden in the data a tool returns, rather than in its definition, are also outside what definition watching sees.
Free tools from Stackduke
These are free, and you can use them now. None of them sits between an agent and a server: they make changes visible, and they do not stop a call.
- Radar, the public tracker. Once a day it lists the tools of official vendor MCP servers that need no sign-in, including Google Cloud’s, Microsoft Learn’s and Hugging Face’s, the way any MCP client would, with no account. It never runs a tool. It reports what changed, and the full history is in the scanner repository’s public
databranch. A change made and undone between two daily checks is not seen. - The open-source scanner (MIT licence). It saves a snapshot of a server’s
tools/list, compares two snapshots field by field, and labels what each tool can do. It also runs text checks for likely poisoning patterns: instructions aimed at the model, invisible characters, pointers to credential stores and requests to send data elsewhere. Those checks are heuristics. On 353 real tools none of the poisoning rules fired, so they are so far proven only against written examples in the scanner’s tests. “Nothing matched” does not mean “safe”. - A pre-deploy check for teams that build MCP servers. It keeps the approved tool list in the server’s repository as a lockfile, and fails a pull request that changes a tool until a person approves it. It runs in your own CI and sends nothing to Stackduke. See Check MCP tools in CI.
- A watch for teams whose agents use other people’s servers. A scheduled job compares each server’s tools with the list you approved, and fails or opens an issue when one changes. It is an alert, not a block.
How Stackduke governs the calls
Stackduke sits between your agents and their MCP servers. Each governed call is checked against your rules before it runs, the risky ones are held for a person to approve, and a record is kept of what was decided.
When a server’s tools change, Stackduke flags the change for review. That is the default, and on its own it does not stop anything. For a connection you trust less, you can choose to hold changed tools instead: a changed tool does not run until someone accepts its new definition, so an approval given to yesterday’s tool does not carry over to today’s.
Check your own servers
To see official servers without installing anything, open Radar.
To check a server yourself, you need Node 22.18 or later. The scanner sends no credential, so a server that needs a sign-in says so and stops. Replace the address with your server’s:
# Save a snapshot of the server's tools nownpx @stackduke/mcp-scanner scan https://huggingface.co/mcp --save
# Later, save another, then compare the twonpx @stackduke/mcp-scanner scan https://huggingface.co/mcp --savenpx @stackduke/mcp-scanner diff data/snapshots/<server>/<before>.json data/snapshots/<server>/<after>.jsonTo be told when a server your agents use changes, approve its current tools once, then run the watch on a schedule:
npx @stackduke/mcp-scanner watch --update --add=https://mcp.stripe.com/npx @stackduke/mcp-scanner watchIf you build an MCP server, the pre-deploy check guide shows how to add the lockfile to your CI. The scanner’s README has every command and its limits.
Sources
- Invariant Labs, MCP Security Notification: Tool Poisoning Attacks, April 2025
- Trail of Bits, Jumping the line: how MCP servers can attack you before you ever use them, April 2025
- Model Context Protocol specification (2025-11-25), Tools and Security best practices
- Check Point Research, MCPoison: CVE-2025-54136 in Cursor, August 2025
- Snyk, Malicious MCP server on npm, postmark-mcp, September 2025
- MCP specification discussions, #3303, a survey of 13,000 public MCP endpoints, August 2026
- Stackduke, what the scanner’s first look found, October 2026