Skip to main content
Glama

scan_mcp_tools_locally

Audit an MCP tools/list JSON array locally for hidden prompt injection, credential exfiltration, and Unicode smuggling, then compute a SHA-256 Rug-Pull pin hash.

Instructions

Free instant local security audit: scans any MCP tools/list JSON array for hidden prompt injection, credential exfiltration, Unicode smuggling, and computes a SHA-256 Rug-Pull pin hash.

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_mcp_tools_locally"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolsYesList of MCP tool objects ({name, description, inputSchema})

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden. It usefully discloses that the audit runs locally, is free and instant, and produces a SHA-256 rug-pull pin hash, which implies no network calls and no mutation. It does not describe the result structure, severity levels, or what happens with malformed input, leaving meaningful gaps for a security scanner.

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?

One front-loaded sentence that packs the value proposition, input type, and detection coverage with no filler. The marketing adjectives ("Free instant") are minor padding but do convey relevant operational traits.

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

Completeness3/5

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

For a one-parameter scanner with no output schema, the definition explains what is scanned and partially what is produced. It omits the shape of the findings report and any limits or error behavior, which an agent would need to interpret results correctly.

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 single parameter is fully documented in the schema (100% coverage), so the baseline is 3. The description adds mild value by clarifying the expected shape is specifically a `tools/list` array rather than an arbitrary tool list, but nothing about element validation or required fields.

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 uses a specific verb and resource: it scans an MCP `tools/list` JSON array and names the threat classes it detects (prompt injection, credential exfiltration, Unicode smuggling) plus a SHA-256 pin hash output. That is enough to tell it apart from a server-listing or endpoint-trust tool, though it never explicitly contrasts itself with the named siblings.

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

Usage Guidelines3/5

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

Usage is implied by the input: use it when you have a `tools/list` JSON array to audit. There is no explicit when-not guidance, no mention of prerequisites (e.g. where to obtain the array, size limits), and no named alternative for related trust checks.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.