Skip to main content
Glama

scan_config

Statically scans MCP client configs for plaintext secrets, unpinned packages, broad filesystem access, and plain-HTTP remotes; returns a grade, score, and findings without sending data.

Instructions

Statically scan an MCP client config (Claude Desktop, Claude Code .mcp.json, Cursor or VS Code JSON) for risky settings such as plaintext secrets, unpinned packages, broad filesystem access and plain-HTTP remotes. Returns grade, score and findings. Runs locally: the config is not sent anywhere and no server is launched.

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": "<config>"
    },
    "name": "scan_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYesThe config file contents as a JSON string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description must carry the full burden, and it does well: it discloses that analysis is static/local, the config is not transmitted anywhere, and no server process is launched — the key side-effect and privacy facts. It omits edge-case behavior, such as what happens with malformed JSON or unusually large 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?

Three tight sentences: purpose and scope first, return values second, safety guarantees last. Nothing is redundant and the most decision-relevant information is front-loaded.

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, read-only scanner with no output schema, the description covers what it does, what it returns (grade, score, findings), and its sandboxed nature. The only shortfall is not characterizing the grade/score scale or error handling, which are minor since the output itself will reveal them.

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?

The single parameter is fully documented in the schema, so the baseline would be 3. The description adds real meaning by naming the config dialects whose content is accepted as the JSON string, which helps the agent know what to pass rather than guessing at an arbitrary blob.

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 ('statically scan') and resource ('an MCP client config'), then enumerates the exact dialects supported (Claude Desktop, Claude Code .mcp.json, Cursor, VS Code JSON) and the classes of risk detected. The word 'statically' plus 'no server is launched' also implicitly separates it from the check_server/check_drift siblings, which implies live interaction.

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?

The description makes the input context clear (a config file's contents) and lists what it looks for, so the general use case is inferable. It never says when to reach for this versus check_server or check_drift, and gives no preconditions (e.g. 'use before trusting or installing a server config').

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