Skip to main content
Glama

The Clearing — The Lantern & Consensual Agent Lab

audit_mcp_and_agent_config

Read-onlyIdempotent

Lint MCP tools/list, mcp.json, or AGENTS.md for token bloat, missing outputSchema/annotations, & poisoning.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "audit_mcp_and_agent_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
contentNo

Output Schema

NameRequiredDescriptionDefault
fixesYes
gradeYes
scoreYes
findingsYes
est_tokensNo
cursor_40_tool_okNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered by structured data. The description usefully adds what is actually inspected (token bloat, missing outputSchema/annotations, poisoning) but says nothing about how content is interpreted, whether findings are advisory vs blocking, or how 'auto' kind resolution behaves.

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 densely packed sentence with the resources front-loaded before the defect classes, no filler or repetition. The ampersand-list style is compact but slightly telegraphic, which is the only cost.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and annotations cover the safety profile. However, for a tool whose core input is a polymorphic 'content' field with zero documented parameter semantics and an ambiguous 'auto' mode, the description leaves real gaps an agent must guess at before calling it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden for both parameters and largely fails to. It never explains that 'content' accepts raw file text, a parsed object, or an array and how each form is handled, nor what 'auto' means relative to the explicit kind values. The list of lint targets loosely maps to the kind enum but adds no semantics beyond the enum literals themselves.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ("Lint") and enumerates the exact resources it operates on (MCP tools/list, mcp.json, AGENTS.md), plus the defect classes it checks (token bloat, missing outputSchema/annotations, poisoning). It is clearly a static-analysis/audit tool, distinguishable from verification siblings like verify_mcp_registry_manifest. It stops short of naming a sibling to contrast against, keeping it at 4.

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 implied by the enumerated targets — you call it when you have a tools/list payload, an mcp.json, or an AGENTS.md to check. There is no explicit when-not-to-use, no statement of prerequisites, and no pointer to which sibling handles adjacent concerns such as registry manifests or transport compatibility. The 'auto' enum value hints at automatic kind detection but the description never explains when to rely on it versus naming a kind explicitly.

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