Skip to main content
Glama

scan_mcp_config

Read-onlyIdempotent

Audits MCP configs for plaintext secrets, prompt-injection markers, insecure non-localhost HTTP endpoints, hidden Unicode, and unpinned npx packages with static checks.

Instructions

Audit an mcp.json or MCP client configuration string for plaintext API keys/secrets, prompt-injection markers in tool metadata, insecure non-localhost HTTP endpoints, hidden Unicode tags, and unpinned npx packages. Purely static and stateless.

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": {
      "config_json": "<config_json>"
    },
    "name": "scan_mcp_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
sarifNoWhen true, includes a SARIF 2.1.0 report block for CI security gates.
config_jsonYesRaw JSON string of an mcp.json or Claude/Cursor/VS Code/Zed MCP configuration.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real value by stating 'Purely static and stateless,' confirming no live connections are made while scanning endpoints, which is exactly the kind of claim an agent needs before pointing it at production configs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence front-loads the action and target, enumerates the checks compactly, and closes with the stateless guarantee. Nothing is redundant and no sentence could be removed without losing information.

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?

With no output schema, the description carries the burden of explaining what comes back, and it never says whether results are a findings list, severities, or pass/fail. It is otherwise complete for a 2-parameter static scanner, but the missing return-shape description is a real gap for an audit tool.

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 description coverage is 100%, so both config_json and sarif are fully documented in the schema itself, making 3 the baseline. The description adds no extra parameter meaning — notably it never mentions the SARIF/CI-reporting flag, which is arguably worth calling out in prose.

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 opens with a specific verb and resource: 'Audit an mcp.json or MCP client configuration string,' then enumerates exactly what it looks for (secrets, prompt-injection markers, insecure non-localhost endpoints, hidden Unicode tags, unpinned npx packages). That enumeration clearly separates it from scan_prompt_text and scan_web_snippet by input type, though no sibling is named explicitly.

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 resource it accepts — an agent can infer it should call this when auditing an MCP config rather than a prompt or web snippet. However, there is no explicit when-to-use/when-not guidance, no mention of prerequisites, and no statement about what to do instead for adjacent cases.

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