Skip to main content
Glama

Moltline Agent Governance

Audit Mcp Config

audit_mcp_config
Read-onlyIdempotent

Audit an MCP server config for risk-ranked posture findings. FREE.

Flags exposed machine credentials in the config, required inputs that aren't gated/optional, unpinned versions, over-broad env access, and dangerous auto-run flags. It never echoes any matched secret value back. Typical input {"config": "<mcpize.yaml, mcp.json, or a Claude/Cursor servers block>"} returns {"posture_score": 0-100, "verdict": "...", "findings": [{"line": N, "severity": 1-5, "issue": "...", "fix": "..."}], "note": "..."}.

Use on a server configuration document. Not for a skill or instruction file (audit_skill_file) and not for untrusted content an agent is about to read (injection_scan). Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""}. Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

NameRequiredDescriptionDefault
configYesThe MCP config to audit, pasted as text or JSON (mcpize.yaml, mcp.json, or a Claude/Cursor servers block).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / config / description
      Previous value: -"The MCP config to audit, pasted as text or JSON —\nmcpize.yaml, mcp.json, or a Claude/Cursor servers block."New value: +"The MCP config to audit, pasted as text or JSON\n(mcpize.yaml, mcp.json, or a Claude/Cursor servers block)."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, but the description adds genuinely new behavior: it never echoes matched secret values, it never raises a protocol error on bad input and instead returns an {"error": ...} object, and retry after correction is safe. That non-disclosure guarantee and error contract are exactly what an agent needs and are not derivable from the annotations; only return-value enumeration overlaps with the existing output schema.

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 and detection list are front-loaded, and each later sentence carries distinct information (non-disclosure, error contract, sibling routing). Slight bloat from the redundant inline return-value enumeration and the stray 'FREE.' marker keeps it off a 5.

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 audit tool, the definition covers purpose, detection scope, secret-handling guarantees, error behavior, retry safety, and sibling disambiguation. Return values are already covered by the output schema, so the inline restatement is redundant but not a gap.

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% and the single parameter already documents the accepted formats (mcpize.yaml, mcp.json, Claude/Cursor servers block). The description's 'Typical input' example restates those formats and the example return shape rather than adding syntax or edge-case rules, so the baseline 3 applies.

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 server config') plus the output nature ('risk-ranked posture findings') and enumerates exactly what it detects. It explicitly names the siblings it is not: audit_skill_file and injection_scan, so an agent can route without opening any schema.

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

Usage Guidelines5/5

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

'Use on a server configuration document' sets the positive case, and the two explicit exclusions route skill files to audit_skill_file and untrusted content to injection_scan. No alternatives are left to inference.

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.