Skip to main content
Glama

ChainGuard Web3 Security & DeFi MCP

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 or unlimited with X-API-Key). 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
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, yet the description still adds real value: "zero code execution," per-IP rate limits (5 free calls/hour, unlimited with X-API-Key), and the shape of the response. It does not cover edge cases such as very large inputs or what happens on truncated scans, so it falls just short of full disclosure.

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?

A single dense paragraph that front-loads what is scanned and what is returned, with no filler sentences. It is slightly overloaded with three distinct topics (detections, execution model/rate limits, return payload), but each clause carries information.

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?

For a one-parameter read-only scanner, the definition covers scope, detection classes, safety model, quota/auth, return fields, and sibling routing. With an output schema present, the brief verdict/risk_score/findings mention is more than sufficient.

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% and the single parameter is well documented, so the baseline is 3; the description goes further by enumerating the specific detection classes (U+200B..U+202E smuggling, injection directives, 64-byte Solana keypairs) that tell the agent what kinds of content belong in `text`.

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?

Specific verb ("Scan") plus concrete resources (untrusted runtime text, MCP tool descriptions, prompt payloads) and an explicit enumeration of what is detected: zero-width/bidirectional Unicode ranges, prompt-injection overrides, leaked keypairs. It also names the sibling `audit_solidity_or_mcp` and states the boundary, so an agent can separate 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?

The final sentence gives explicit routing: use this for runtime prompt and tool-description hygiene, use `audit_solidity_or_mcp` for full Solidity contract or JSON config audits. That is a stated when-to-use plus a named alternative with the selecting condition, leaving nothing to inference.

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.