Skip to main content
Glama

check_mcp_poisoning

Read-onlyIdempotent

Scan untrusted runtime text, MCP tool descriptions, or prompt payloads for invisible zero-width/bidirectional Unicode smuggling (U+200B..U+202E), prompt-injection override directives, and exposed 64-byte Solana keypairs or private keys. Purely read-only static text inspection with zero code execution (5 free calls/hour per IP; paid API keys use the plan's remaining quota). Returns JSON with verdict (ALLOW, WARN, BLOCK), risk_score (0-100), and matched findings. Use this tool for runtime prompt and tool-description hygiene; use audit_solidity_or_mcp for full Solidity smart contract or JSON config file audits.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "check_mcp_poisoning"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesRaw untrusted text, MCP tool description, or prompt string to scan for invisible Unicode characters, prompt injection, and leaked secrets.

Output Schema

NameRequiredDescriptionDefault
verdictYes
risk_scoreYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / text / description
      Added value: +"Raw untrusted text, MCP tool description, or prompt string to scan for invisible Unicode characters, prompt injection, and leaked secrets."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "risk_score": {
      +      "type": "integer"
      +    },
      +    "verdict": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "verdict",
      +    "risk_score"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, and the description adds substantial context beyond them: zero code execution on the payload, IP-based rate limit (5 free calls/hour) with paid-key quota behavior, the full detection surface, and the verdict scale returned. That is exactly the extra operational detail annotations cannot express.

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

Conciseness4/5

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

Front-loaded with the action and detection targets, then behavior, then quota, then guidance — a sensible ordering with no filler sentences. It is dense to the point of being one long block, and the return-value clause partially duplicates the existing output schema, but nothing is genuinely wasted.

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

Completeness5/5

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

Covers detection scope, execution safety, quota constraints, verdict semantics, and sibling routing — everything needed to decide and invoke correctly. Return shape is also summarized even though an output schema exists, which is mildly redundant but not harmful.

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

Parameters3/5

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

The single `text` parameter is already fully documented at 100% schema coverage, and the description largely restates the same categories ('raw untrusted text, MCP tool description, or prompt string'). It adds no format, size, or encoding constraints beyond what the schema says, so the baseline 3 applies.

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?

Names a specific verb (scan) and precise resources (untrusted runtime text, MCP tool descriptions, prompt payloads), and enumerates the exact detection classes: zero-width/bidirectional Unicode in U+200B..U+202E, prompt-injection override directives, and leaked Solana keypairs. It also explicitly excludes the sibling `audit_solidity_or_mcp` scope, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

States the selection condition ('runtime prompt and tool-description hygiene') and names the alternative with its own condition ('full Solidity smart contract or JSON config file audits'). Both the when and the when-not are explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources