What is tool poisoning in MCP, and how do you defend against it?
Quick-fire answer from the Awesome Generative AI Guide (MIT)
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Tool poisoning is an attack where a malicious MCP server embeds hidden instructions in a tool's metadata (its name, description, or parameter docs), which the agent reads and treats as trusted, steering it into unsafe actions or leaking data, often without the user seeing the tainted description. It is a specific, dangerous form of indirect prompt injection because tool descriptions are loaded into context by design and are easy to overlook. Defenses include only connecting vetted and pinned MCP servers, reviewing tool descriptions rather than trusting them blindly, isolating and least-privileging each server, requiring approval for sensitive actions, and monitoring for unexpected tool behavior. Every connected server widens the trust boundary, so treat third-party MCP servers as untrusted code.
Full worked answer
Tool poisoning is an attack where a malicious MCP server embeds hidden instructions in a tool's metadata (its name, description, or parameter docs), which the agent reads and treats as trusted, steering it into unsafe actions or leaking data, often without the user seeing the tainted description. It is a specific, dangerous form of indirect prompt injection because tool descriptions are loaded into context by design and are easy to overlook. Defenses include only connecting vetted and pinned MCP servers, reviewing tool descriptions rather than trusting them blindly, isolating and least-privileging each server, requiring approval for sensitive actions, and monitoring for unexpected tool behavior. Every connected server widens the trust boundary, so treat third-party MCP servers as untrusted code.
Learn more: Securing agentic AI systems guide
What a good answer covers
- Tool poisoning is an attack where a malicious MCP server embeds hidden instructions in a tool's metadata…
- It is a specific, dangerous form of indirect prompt injection because tool descriptions are loaded into…
- Defenses include only connecting vetted and pinned MCP servers, reviewing tool descriptions rather than…
- Every connected server widens the trust boundary, so treat third-party MCP servers as untrusted code
Key terms: Learn more
In the glossary: Tool poisoning · MCP · Indirect prompt injection · Prompt injection · Tool description
Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep