Tool Poisoning

Tool Poisoning is an attack in which malicious instructions are embedded in the metadata of a tool that an AI agent can call, such as an MCP tool's description, parameter names, or input schema. The agent reads this metadata to understand the tool, and may follow the hidden instructions.

What is Tool Poisoning?

AI agents rely on tool descriptions to decide which tool to call and how to call it. These descriptions are passed to the model as context but are rarely shown in full to the user. An attacker who controls or compromises a tool can use this channel to instruct the agent to read files, reveal credentials, send data to an external destination, or misuse other connected tools. Because the instructions sit in tool metadata rather than in a user prompt or a retrieved document, tool poisoning is a form of indirect prompt injection that targets the agent's tool layer.

Why is Tool Poisoning Important?

A poisoned tool can affect every user and every agent that connects to it, not just a single conversation. The agent may carry out harmful actions while the visible tool behaviour appears normal, which makes the attack difficult to notice through ordinary use. Common safeguards include approving tools before they can be used, reviewing full tool definitions, restricting which tools each agent can access, inspecting tool arguments and outputs, and logging every tool call.

Common use cases

Tool poisoning is particularly relevant to AI agents, MCP-based environments, AI coding assistants and IDE integrations, third-party or community-built MCP servers, and enterprise workflows in which agents can access email, code repositories, databases, or cloud services.