Skip to main content
Glama

External MCP Server Manifest & Tool-Poisoning Security Auditor

audit_mcp_server_manifest
Read-onlyIdempotent

Scans an external MCP server's tools/list manifest to detect tool-name shadowing and hidden prompt-injection directives before mounting a third-party server into an agent session.

Instructions

Scans an external MCP server's initial tools/list manifest to detect tool-name shadowing (read_file, bash) and hidden prompt-injection directives in descriptions. Use when vetting a newly discovered third-party MCP server before mounting it into an agent session; for comparing a previously pinned MCP baseline against a live mid-session tools/list response, use detect_mcp_schema_rugpull instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'manifest_json' ('audit_profile' defaults to 'strict'), supports '?demo=true' or L402 (25 sats), and returns HTTP 400 if invalid.

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": {
      "manifest_json": "<manifest_json>"
    },
    "name": "audit_mcp_server_manifest"
  }
}

Input Schema

NameRequiredDescriptionDefault
audit_profileNoSensitivity level for flagging system-tool name shadowing; defaults to 'strict' when omitted.
manifest_jsonYesJSON string or object containing the external MCP server's tools array to audit.

Output Schema

NameRequiredDescriptionDefault
manifest_safeYesTrue if zero shadowed tools or description injections are found.
security_gradeYesOverall manifest safety grade ('A+', 'C', or 'F').
shadowed_toolsYesTool names attempting to shadow host privileges (e.g. 'bash', 'read_file').
suspicious_toolsYesTools containing covert prompt-injection or exfiltration instructions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.3

TDQS

A4.8/5.0
Behavior5/5

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

Beyond readOnly/idempotent/non-destructive annotations it discloses statelessness, a 32 KB payload cap, 60 RPM rate limit, payment options (demo=true or L402 at 25 sats), and the HTTP 400 failure mode for invalid input. These are operational traits the annotations cannot express and materially affect how an agent calls it.

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-loads purpose, then routing, then operational constraints — a sensible order with no filler sentences. The final clause is dense (size, rate, auth, error all in one line), which slightly hurts scannability but every element earns its place.

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

Completeness5/5

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

For a 2-param read-only audit tool with an output schema, the description covers purpose, alternative routing, payload limits, auth/payment, and error behavior — everything needed to invoke it correctly. Nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the audit_profile enum is fully documented, so the schema carries most weight. The description still adds value by noting manifest_json accepts a JSON string or object form and that audit_profile 'defaults to strict', reinforcing default behavior beyond the enum list.

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 (Scans) and resource (external MCP server's initial tools/list manifest), and names the exact threat classes detected (tool-name shadowing, hidden prompt-injection directives). It explicitly distinguishes itself from the closest sibling detect_mcp_schema_rugpull, so an agent can route without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use condition (vetting a newly discovered third-party MCP server before mounting) and an explicit when-to-use-the-other condition (comparing a pinned baseline against a live mid-session tools/list → detect_mcp_schema_rugpull). Alternatives and exclusions are both named.

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

Deploy Server

Other Tools