Skip to main content
Glama

Agent Shield (MCP tool-poisoning and x402 payment scanner)

Scan a remote MCP server for tool poisoning, hidden instructions, risky capabilities and rug pulls before your agent connects

scan_mcp_server

Connects to a Streamable HTTP MCP server like a client would, lists its tools, prompts and resources, and checks every description and input schema for tool poisoning: hidden blocks, orders aimed at the model, requests to read secret files (SSH keys, .env, mcp.json), side-channel parameters that ask for private data, tool shadowing, secrecy from the user, invisible Unicode and encoded payloads. Lists sensitive capabilities (runs commands, changes files, moves money, sends messages) per tool. Returns a grade A-F, risk score, findings with exact locations, and a fingerprint of the tool definitions; re-scans report which tools changed (rug-pull detection). Not charged if the server cannot be reached or needs auth. Price 0.01 USDC per call; first 3 calls per day free.

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": {
      "url": "<url>"
    },
    "name": "scan_mcp_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesMCP server URL (Streamable HTTP), e.g. https://example.com/mcp
headersNoOptional auth header for your own server, e.g. {"authorization": "Bearer ..."} (used once, never stored)
paymentNoOptional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses that the tool makes an outbound connection and authenticates as a client, that headers are used once and never stored, that failed/unauthenticated scans are not charged, and the pricing model including free daily calls. It also describes the return payload (grade A-F, risk score, located findings, fingerprint, change detection) so the agent knows what a scan yields.

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 scope, and every clause adds a real capability or constraint. The first sentence is a long comma-chained enumeration of threat categories, which could be tightened into a structured list, but no sentence is genuinely filler.

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

Completeness4/5

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

No output schema exists, yet the description specifies the return shape well enough to interpret results. For a network-touching, paid tool with no annotations, it covers auth handling, failure billing, and cost; the only minor gap is that nothing explains what happens with prompts/resources beyond being listed.

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?

Schema coverage is 100%, with the url format example and headers/payment semantics already documented in the schema, so the baseline applies. The description adds only pricing context that bears on the optional payment parameter ('first 3 calls per day free', not charged on failure), not new meaning for url or headers.

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?

States a concrete verb (connect, list, check) and resource (a remote Streamable HTTP MCP server's tools, prompts, resources and schemas), plus the exact defect classes it hunts for. The 'before your agent connects' framing and the client-emulation detail clearly distinguish it from scan_text_for_injection and scan_tool_definitions, which operate on already-extracted text/definitions.

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?

Gives a clear when-to-use context (pre-connection vetting of a remote server) and implicitly covers re-scans via 're-scans report which tools changed', which tells the agent to call it repeatedly for rug-pull detection. It stops short of naming a sibling as the alternative or stating an explicit when-not-to-use case (e.g. local files or already-exported definitions).

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