Skip to main content
Glama

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

Check tool definitions you already have (MCP tools/list, OpenAI or Anthropic function schemas) for poisoning and risky capabilities

scan_tool_definitions

For local (stdio) MCP servers or any tool list your agent already loaded. Send the tools array; get the same poisoning, capability and fingerprint analysis as /scan-mcp. Accepts MCP tools ({name, description, inputSchema}), OpenAI function tools ({type:"function", function:{...}}) and Anthropic tools ({name, description, input_schema}). Price 0.003 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": {
      "tools": "<tools>"
    },
    "name": "scan_tool_definitions"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolsYesArray of tool definitions
paymentNoOptional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts.
instructionsNoOptional server instructions text to scan too

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description does useful work by disclosing the price (0.003 USDC per call), the free daily quota, and that the payment field is optional under the free tier. It does not disclose that tool definitions are sent to an external service, nor describe what the result contains or whether scanning is read-only.

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?

Three tight sentences: applicability first, then input/output, then pricing. No redundant restatement of the title, and every sentence carries information.

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?

For a three-parameter analysis tool with no output schema, the definition covers scope, accepted input formats, and payment behavior adequately. The main gap is the shape of the analysis result and any data-handling caveat.

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 per-parameter documentation is already present. The description adds real value by enumerating accepted input shapes (MCP, OpenAI function, Anthropic tool), which the schema only weakly conveys as 'array of strings', but it does not explain the optional 'instructions' parameter beyond the schema.

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

Purpose4/5

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

States a concrete verb and resource ('send the tools array; get poisoning, capability and fingerprint analysis') and scopes it to local stdio servers or already-loaded tool lists. The link to '/scan-mcp' gives an anchor for what the analysis is, though the sibling scan_mcp_server is only referenced indirectly.

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 opening clause sets clear applicability: use this when the tool list is already loaded or the server is local, implicitly versus scanning a live server. It does not state an explicit exclusion or name the alternative sibling, so it stops short of a full routing rule.

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