MCP Tool Annotation
MCP Tool Annotation is the metadata an MCP server attaches to a tool declaration — name, description, parameter schema. It reaches the model as instructions on the tools/list response, which is why tool-description injection is a real risk class.
What it is
An MCP tool annotation is the metadata an MCP server publishes alongside each tool — name, description, inputSchema, hints to the host about whether the tool is read-only or destructive, and so on. When the MCP client calls tools/list, the server's annotations are passed to the model as part of its instruction set — the model now knows what tools exist and how to call them.
Why it's a security concern
Tool annotations reach the model as text. If the annotation itself can be influenced by an attacker — for example, a tool from an untrusted marketplace, a user-registered tool in a multi-tenant MCP server, or a compromised upstream MCP server in an agent-to-agent chain — the annotation becomes an injection surface. The attacker writes instructions into the description field and the model receives them as if they came from the host.
Mitigations
- Treat all tool annotations from third-party / community MCP servers as untrusted content.
- Separate the annotation's text from the model's system prompt with clear trust delimiters.
- Review annotations before approving a new MCP server for an agent.
- Sign tool catalogs where possible; verify signatures on
tools/listresponses.
For the full MCP attack-surface analysis see our MCP Pen Testing scope.