Skip to main content
Glama

MCPGuard Remote MCP

audit_mcp_config

Audit an MCP JSON/JSONC config (mcpServers/servers) for hardcoded vendor keys, high-entropy literals, plaintext HTTP, URL query tokens, unpinned npx/uvx/docker packages, dangerous shell/container flags, and broad/sensitive filesystem scopes.

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
sarifNoIf true, return SARIF 2.1.0 JSON alongside summary.
configYesParsed MCP config object OR raw JSON/JSONC string.
sourceNameNoOptional filename label for the report (default: mcp.json).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. 'Audit' plus 'report' language implies a read-only inspection, but the definition never explicitly says the config is not modified, whether anything is executed or fetched, or how findings are reported. It does hint at output shape by mentioning SARIF alongside a summary, which is a useful behavioral detail.

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?

A single front-loaded sentence where each clause names a concrete check class, so nothing is padding. It is dense to the point of being a run-on list, but the density is all signal rather than filler.

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 three-parameter audit tool with a fully documented schema and no output schema, the description gives an unusually complete picture of what is checked. The remaining gap is that the read-only, non-mutating nature and the report's shape are only implied rather than stated.

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 all three parameters are already documented in the schema, and the description adds no new meaning beyond noting that configs may be JSON or JSONC (which the schema already covers via 'raw JSON/JSONC string'). Baseline 3 is appropriate.

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 ('Audit') and a specific resource ('MCP JSON/JSONC config (mcpServers/servers)'), then enumerates the exact classes of findings it looks for. That enumeration makes it clearly distinguishable from a remediation-oriented sibling like sanitize_mcp_config without needing to name it.

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 only implied: 'audit' suggests an inspection step performed before sanitizing or deploying a config, but the description never states when to pick this over sanitize_mcp_config or audit_repo_bundle. No exclusions or prerequisites are given.

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