MCP rug pulls: how to detect when an MCP server changes its tools A new guide details how "MCP rug pulls" work — an MCP server serves a benign tool definition until a user approves it, then alters that definition to carry instructions telling the model to read a private file, pass a secret as an argument, or send data elsewhere — and presents a roughly 100-line dependency-free JavaScript detector that pins the approved definition, compares every new `tools/list` response against it, and quarantines changes until a person reviews them. The pattern was first described publicly by Invariant Labs in April 2025, whose WhatsApp demonstration used a malicious "random fact of the day" tool that switched its description to manipulate a separate trusted WhatsApp MCP server into leaking message history, and the OWASP MCP Top 10 now groups rug pulls with tool poisoning and shadowing under MCP03, Tool Poisoning. The guide warns that watching only `description` misses most attacks, since changes can also land in new parameters, parameter metadata, requiredness and annotations such as `readOnlyHint` and `destructiveHint`. An MCP rug pull is when an MCP server serves an innocent tool definition until you approve it, then changes that definition to carry instructions for the model: read a private file, pass a secret as an argument, send data somewhere. The defence is to pin the definition you approved, compare every new tools/list against it, and quarantine any change until a person has reviewed it . This article shows how the attack works, builds a working detector in about 100 lines of dependency-free JavaScript, with real output, and is explicit about what that kind of detector cannot see. It is part of our guide to MCP gateways https://axium-lab.com/blog/mcp-gateway , where change control is one of six core capabilities. Why the attack works Three properties of MCP combine to make rug pulls possible. The model treats tool definitions as instructions. When a client connects to an MCP server it calls tools/list and passes every tool's name, description and input schema to the model, so the model knows what it can call and how. Those descriptions are written by whoever runs the server, and the model reads them with roughly the authority of the system prompt. A description that says "before calling this tool, do X" is, as far as the model is concerned, guidance on how to use the tool correctly. Definitions can change at any time. Nothing in the protocol freezes a tool's definition. A server that declares the tools.listChanged capability can send notifications/tools/list changed to tell clients to fetch the list again. A server that does not declare it can still return something different on the next tools/list , for example at the next session start. Approval happens once, and the user rarely sees the full text. Clients typically ask the user to trust a server, or a tool, when it is first added. Most clients do not display the complete description at that moment, and few re-prompt or show what changed when it changes later. The user approved a sentence they did not fully read; the model follows a sentence the user never saw. The pattern was first described publicly by Invariant Labs in April 2025. In their WhatsApp demonstration https://invariantlabs.ai/blog/whatsapp-mcp-exploited , a malicious server posed as a harmless "random fact of the day" tool, then switched to a description that manipulated a different , trusted WhatsApp MCP server in the same agent to leak the user's message history. The rug pull got the malicious text in after approval; tool shadowing made it act on another server's tools. The OWASP MCP Top 10 https://owasp.org/www-project-mcp-top-10/ now groups rug pulls with tool poisoning and shadowing under MCP03, Tool Poisoning . Anatomy of a rug pull: what can change "The description changed" is the textbook case, but it is only one of several places an attacker can put text the model will read, or change behaviour the client relies on. A detector that only watches description misses most of them. | What changes | Example | Why it matters | |---|---|---| | Tool description | An