Skip to main content
Glama

Audit an MCP client config

audit_mcp_config
Read-onlyIdempotent

Checks an MCP client config (claude_desktop_config.json, .mcp.json, .cursor/mcp.json, .vscode/mcp.json...) for risky servers: secrets written in the file, unpinned npx/uvx packages, unknown publishers, plain HTTP, broad filesystem access, shell wrappers, too many servers. Returns a grade (A to F) and each finding with why it matters and how to fix it. Works without an API token. The config is checked in memory and not stored or logged, and the result never repeats a value from it; you may still replace secret values with placeholders such as "${API_KEY}" before sending (then check yourself that no secret is written in the file).

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": "audit_mcp_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYesThe config: a JSON object, or its text (comments and trailing commas are fine)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), yet the description still adds real behavioral context: the config is checked in memory and not stored or logged, the result never echoes a value from it, no API token is required, and users may pre-substitute placeholders. Those are exactly the trust and data-handling details an agent needs before sending config content, and none of it is derivable from the annotations.

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?

Purpose and detection scope are front-loaded in one dense sentence, followed by return value and data-handling notes. Every clause carries information; the trailing placeholder caveat is slightly convoluted ('then check yourself that no secret is written in the file') but is not filler.

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 one-parameter, read-only tool with no output schema, the description covers what it accepts, what it returns (an A–F grade plus per-finding rationale and fix), and the privacy posture. Nothing an agent needs in order to call it correctly 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 schema already states that JSON text with comments or trailing commas is accepted, so the baseline is 3. The description adds meaning beyond it by naming the actual config files this parameter will typically hold and by discussing secret redaction before submission, which shapes how an agent should populate the argument.

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?

Specific verb and resource ('Checks an MCP client config') plus an enumerated list of what it looks for (secrets in file, unpinned npx/uvx, unknown publishers, plain HTTP, shell wrappers, server count). This is instantly distinguishable from the sibling tools, which deal with packages, licences, lockfiles, and repositories rather than MCP client configs.

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

Usage Guidelines4/5

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

Names the concrete artifacts it applies to (claude_desktop_config.json, .mcp.json, .cursor/mcp.json, .vscode/mcp.json), which tells an agent when this tool is the right one, and notes 'Works without an API token' as a prerequisite. It stops short of explicit when-not-to-use or alternative routing, but the sibling set is a different domain so there is little ambiguity.

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.

Resources