Skip to main content
Glama

CLAUDE.md lint

claude-md-lint
Read-only

Lints a CLAUDE.md: size, structure, @imports, and secrets, passwords or email addresses that should not be there. Returns { ok, stats { characters, lines, approxTokens, headings, imports }, findings[{ severity: error|warning|info, code, path, message }] and counts { error, warning, info } }. Paths are line numbers. Price: 2 credits (1 credit = 1 US cent) per successful call; input that does not match the schema is rejected before billing.

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": {
      "text": "<text>"
    },
    "name": "claude-md-lint"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe CLAUDE.md text, up to 60,000 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint=false; the description goes well beyond that by disclosing the return structure (ok, stats, findings, counts), the meaning of 'path' (line numbers), and billing behavior including that schema-invalid input is rejected before credits are charged. That billing detail is operationally important for an agent deciding whether to call it repeatedly.

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 checks are front-loaded, followed by the return shape and pricing. It is dense and information-rich but slightly run-on, packing the return structure and billing terms into a single flowing block rather than clearly separated clauses.

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?

With no output schema, the description correctly compensates by spelling out the full response envelope including finding severities and count fields. Combined with the billing terms and rejection behavior, an agent has everything needed to call this correctly and predict the result.

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?

There is a single parameter and schema description coverage is 100%, including the 60,000-character limit, so the schema already carries parameter meaning. The description reinforces that the input is whole-file text via 'Lints a CLAUDE.md' but adds no further semantics beyond that, which is the expected baseline here.

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 ('Lints a CLAUDE.md') and enumerates the exact checks performed: size, structure, @imports, and embedded secrets/passwords/emails. Naming CLAUDE.md specifically distinguishes it from sibling linters like openapi-lint and prompt-lint without needing to mention them.

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 context is implied by the named artifact (a CLAUDE.md file), so an agent can infer when this applies. However, there is no explicit when-to-use framing, no statement of prerequisites, and no routing to alternatives such as prompt-lint or openapi-lint for other document types.

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