Skip to content

Glossary

MCP tool poisoning

The short answer

An attack where instructions hidden in an MCP tool's description, or in what the tool returns, steer an AI agent into doing something its user never asked for.

What is MCP tool poisoning?

MCP tool poisoning is an attack where instructions hidden in an MCP tool’s description, or in what the tool returns, steer an AI agent into doing something its user never asked for. An agent reads every tool description to decide what to call, so text in that description reaches the model the same way the user’s request does.

How does MCP tool poisoning work?

A Model Context Protocol server tells an agent which tools it offers, with a name, a description and the inputs each one takes. The model reads those descriptions as part of its context. An attacker who controls a server, or can change one, uses that channel:

  • Hidden instructions in a description. A tool that claims to “look up a customer” also tells the model to read a file or send data somewhere else.
  • A description that changes after approval. The server looks harmless when someone reviews it, then changes what its tools say or do later.
  • Instructions in tool results. A tool returns content, such as a ticket or a web page, with instructions written into it. This is prompt injection through a tool.
  • Name collisions. A poisoned tool uses the same name as a trusted one on another server, so the agent calls the wrong one.

Why is it hard to spot?

The user never sees most tool descriptions, and the model treats them as trusted context. The agent can act with real credentials, so a poisoned step reaches real systems. And the more unvetted servers a team connects, the more descriptions nobody has read.

How do you prevent MCP tool poisoning?

  • Connect tools you control. Publish tools from a governed source instead of connecting any server someone found online.
  • Allowlist tools per server. Agents call only the tools you approved, not everything a server offers.
  • Keep credentials away from the agent. A gateway holds the login and makes the call, so a steered agent can’t take the key with it.
  • Ask a person before actions that can’t be undone. See human in the loop.
  • Log every call. Record which tool ran, for whom, with what inputs, so a strange call shows up and can be shut off.

MCP tool poisoning and Tray.ai

With Agent Gateway for MCP, the tools your agents call are workflows your team built in Tray, published as MCP tools on a governed path, so you write every tool’s description yourself. Each server has a tool allowlist, Tray holds the credentials and makes the call, and every call is logged with its inputs and result. That covers the same ground as the checklist above, from one place. For the wider set of risks, read MCP security risks for the enterprise.

Last updated November 2026.

All glossary terms

See how MCP tool poisoning works at Tray.ai

A tailored demo against your real systems.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.