Skip to main content
Glama

scan_tool_poisoning

Scan MCP tool definitions for hidden instructions, unicode tricks, and obfuscated payloads. Detect poisoning indicators like prompt injection and homoglyph attacks.

Instructions

Scan MCP tool definitions for hidden instructions, unicode tricks, obfuscated payloads, and manipulation patterns. Use this to check if a server's tools contain poisoning indicators (prompt injection in descriptions, zero-width characters, cross-tool manipulation, homoglyph attacks). Provide tool definitions directly OR a source_url to extract them from code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tool_definitionsNoArray of tool definition objects to scan. Each object should have: name (string), description (string), inputSchema (object, optional).
source_urlNoGit repository URL. If provided (and no tool_definitions), will clone the repo and attempt to statically extract tool definitions from source code.
server_nameNoName of the MCP server being scanned (for reporting purposes).
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It discloses what it scans for and input methods, but lacks details about side effects (e.g., whether source_url clones a repo, output format, or if it is read-only). It adds context but is not fully exhaustive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences: first states purpose, second covers usage and input options. No wasted words, front-loaded with critical information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite good input guidance, the description omits output information (what returns, format, status codes). With no output schema, this is a significant gap for an agent to understand the tool's behavior fully.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description adds meaningful context by explaining the structure of tool_definitions objects and the conditional usage of source_url. This goes beyond the schema's descriptions, which only list properties.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses specific verbs and resources: 'Scan MCP tool definitions for hidden instructions, unicode tricks, obfuscated payloads, and manipulation patterns.' It clearly distinguishes from sibling tools that deal with packages or servers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use it ('check if a server's tools contain poisoning indicators') and provides input options (tool_definitions or source_url). However, it does not mention when not to use it or alternatives among siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/agentaudit-dev/agentaudit-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server