Skip to main content
Glama

agents_md_check

Lint agent instruction files to find non-binding, weak, duplicate, contradictory, or oversized rules, and run diff gates to flag weakened rules or missing Human-Reviewed-By trailers.

Instructions

Lint an agent instruction file (AGENTS.md, CLAUDE.md, .cursorrules, copilot-instructions.md) for rules that are not binding: missing normative keywords, weak wording, duplicated rules, contradictions, oversized files. With 'repo' + 'rev'/'base'/'staged' it runs the real diff gate instead and reports whether a commit weakens a rule or lacks the Human-Reviewed-By trailer.

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": "agents_md_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
revNogit range, e.g. HEAD~1..HEAD
baseNobase ref, default origin/main
pathNoinstruction file to lint
repoNorepository for diff mode
textNoinline file content instead of a path
stagedNocheck staged changes only
allow_unapprovedNoreport but do not block

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses that diff mode gates commits and flags a missing Human-Reviewed-By trailer, hinting at blocking behavior, but never states that this is a read-only lint, how results are returned (report text vs exit status), or how the non-blocking override interacts with the gate.

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?

Two sentences, front-loaded with the primary lint purpose before the alternative mode. The parenthetical file-type and defect lists are information-dense but justified; slight run-on packing of the parameter names reduces scannability a little.

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?

For a seven-parameter, dual-mode tool with no output schema, the definition covers the two modes but omits what happens with zero required parameters supplied, how 'path' and 'text' are mutually exclusive, and how the blocking gate reports failure. Adequate but leaves real ambiguity for the mode-selection case.

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 100%, so baseline applies. The description adds genuine cross-parameter meaning by explaining that 'repo' combined with 'rev'/'base'/'staged' switches the tool into a different operational mode rather than merely parameterizing the lint. However, it leaves the zero-parameter case and the path-vs-text precedence unexplained.

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 ('Lint an agent instruction file' with named file types) and enumerates the exact defect classes checked: missing normative keywords, weak wording, duplicated rules, contradictions, oversized files. It also names a second distinct mode (diff gate), so an agent can tell what this does versus fix-oriented siblings without opening the schema.

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?

The mode switch is conditionally described: 'With repo + rev/base/staged it runs the real diff gate instead.' That tells the agent how to trigger diff mode, but there is no guidance on when to lint a file versus run the gate, and no mention of the sibling fix-suggestions path when a violation is found.

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