Skip to main content
Glama

Agent Toolkit (all-in-one)

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

scan_mcp_server

[Agent Shield] 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.1/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does so well: it discloses the connection model, the read/enumerate behavior, exactly what constitutes a finding, the return payload (grade A-F, risk score, findings with locations, fingerprint), rug-pull re-scan semantics, and billing behavior on unreachable/auth-required servers. Gaps remain on execution safety (whether any listed tool is ever invoked), timeouts/latency, and any rate limits.

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 core action and well-ordered from connect to enumerate to verdict to pricing. It is a single dense, comma-spliced paragraph of ~130 words that would scan faster as bullets, but almost every clause carries real information rather than 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?

There is no output schema, and the description correctly compensates by naming the return artifacts (grade, risk score, located findings, fingerprint). Combined with the disclosed auth/payment behavior it is sufficient to call correctly; only execution-safety and timing details are absent.

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%, so all three parameters are already documented, including that headers are used once and never stored. The description adds only billing/payment context ('0.01 USDC per call; first 3 calls per day free', 'not charged if unreachable') which is marginal since the schema already explains when payment is needed. 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?

States a specific verb and resource ('Connects to a Streamable HTTP MCP server like a client would, lists its tools, prompts and resources') and enumerates exactly what it inspects (tool poisoning, hidden <IMPORTANT> blocks, invisible Unicode, capability classes, rug-pull diffs). The scope is distinct enough that an agent can separate it from siblings like scan_tool_definitions or scan_text_for_injection without opening a schema.

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 intent is unmistakable — run it before letting an agent connect to an untrusted remote MCP server, and re-scan to detect changed tool definitions. However, no alternative is named explicitly and no exclusion is stated (e.g., 'for local/static definitions use scan_tool_definitions'), so the routing is left implicit.

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.