Skip to main content
Glama

scan_mcp_server

Security-audit a target MCP server for prompt-injection / tool-poisoning. Fetches the server's advertised tools and statically analyzes each for hidden instructions, data-exfiltration hints, dangerous capabilities, cross-tool shadowing, and invisible-unicode payloads (OWASP LLM01/LLM08). Returns findings + a 0-100 risk score + verdict (clear/review/block). Cost: $0.005 USDC per scan via x402 (GET /scan/mcp HTTP variant is $0.10).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesTarget MCP server endpoint URL to audit

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

No annotations are present, so the description carries the full burden. It discloses the method (fetches advertised tools, statically analyzes), the output (findings + 0-100 risk score + verdict), and importantly the cost ($0.005 USDC per scan via x402) and HTTP variant pricing. This goes well beyond a minimal description, though it does not explicitly state side effects like whether it makes external network requests (implied by 'fetches') or 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?

The description is four sentences and dense with information, but every sentence contributes value: purpose, method, outputs, and cost. It is not verbose or repetitive, yet it is longer than the ideal two-sentence format. No waste, but not maximally concise.

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 one-parameter tool with no output schema, the description is quite complete: it describes the analysis scope, the return format (findings + risk score + verdict), and the cost. It lacks explicit error-handling or timeout information, but those are not critical for this tool's complexity. The presence of the preview sibling suggests a few details about when to use the full server scan vs preview could enhance completeness, but overall it is sufficient.

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 input schema already has 100% coverage for the single 'url' parameter with a clear description ('Target MCP server endpoint URL to audit'). The description adds minimal additional semantic value beyond restating the URL target, so the baseline score of 3 is appropriate.

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?

The description clearly states the verb 'Security-audit' and the resource 'target MCP server', with specific focus areas (prompt-injection/tool-poisoning) and deliverables (findings, risk score, verdict). It is specific and differentiates from other non-scan tools, but it does not explicitly contrast with the sibling 'scan_mcp_preview', so it misses the full sibling differentiation criterion.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives like scan_mcp_preview. The description implies its use for a full security audit but does not state exclusions, prerequisites, or when a preview would suffice, leaving the agent without clear decision criteria.

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.

TDQS

A3.7/5.0
Disambiguation4/5

The tools are organized into clear families (chain, crypto, defi, pm, enrich, scan) and each targets a distinct data type. The preview tools are explicitly labeled as free samples, reducing but not eliminating confusion with their paid counterparts. Some overlap exists between chain_wallet and chain_balance, and between enrich_domain and enrich_tech_risk, but descriptions clarify the difference.

Naming Consistency5/5

All tools follow a consistent resource_action pattern using snake_case (chain_balance, crypto_funding, enrich_domain). Preview tools consistently append '_preview' to their paid counterpart. The only minor variation is abbreviations like 'tx', 'pm', 'defi', but these are uniform.

Tool Count3/5

At 22 tools, the server is on the heavy side. The eight preview tools duplicate the functionality of their paid versions and inflate the count, though they serve a legitimate 'try before pay' purpose. The remaining 14 paid tools cover a wide range of risk data, making the count borderline appropriate.

Completeness4/5

The set covers on-chain balances, token security, DeFi yields, crypto prices, funding rates, prediction markets, domain enrichment, tech-risk CVE scanning, and MCP server auditing, which is a comprehensive risk toolkit. Minor gaps exist (e.g., no historical data, no address reputation, no token price by address), but the core workflows are well covered.

Resources