Skip to main content
Glama
second-desk-trust

second-desk-trust

Official

mcp_config_audit

Audit an MCP client JSON config before trusting it: flag unresolved commands, missing paths, plain-text secrets, shell entries, and whole-drive/home-folder access without running anything.

Instructions

Audit an MCP client config file before you rely on it. Give the path to the JSON config. For every server entry the report flags: a command that does not resolve on this machine, argument paths that do not exist, env values that look like secrets stored as plain text (the key is named, the value is never shown), entries that start through a shell, and arguments that hand a server the whole drive or the whole home folder. Nothing named in the config is run.

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": {
      "path": "<path>"
    },
    "name": "mcp_config_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: 'Nothing named in the config is run' rules out side effects, and 'the key is named, the value is never shown' discloses secret-redaction behavior the agent could not otherwise predict. It stops short of saying whether the config file itself is read-only or whether findings are ordered/severity-ranked.

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?

The purpose sentence is front-loaded and the enumeration of flagged conditions is compact, one clause per check. The run-on list is dense but every clause adds a distinct check, so no sentence is wasted.

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?

There is no output schema, but the description compensates by describing the report's contents per server entry, which is what an agent needs to decide whether to call it. Remaining gaps are minor: output format (text vs. structured) and behavior on an invalid path are unspecified.

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 coverage is 0% for the single 'path' parameter, so the description must compensate and it does partially by specifying 'the path to the JSON config'. It does not clarify relative vs. absolute paths, whether the file must already exist, or what happens on a malformed config, leaving a meaningful gap.

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 and resource ('Audit an MCP client config file') and immediately enumerates the exact classes of findings the report produces. An agent can tell this apart from package_audit or capsule_inspect without opening the schema, because the object of the audit (an MCP client JSON config) 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?

'before you rely on it' implies the timing of use, and 'Give the path to the JSON config' tells the agent what input is expected. However, there is no explicit statement of when NOT to use it and no routing to alternatives, so the agent must infer that this is not a runtime validator or a general security scanner.

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