Skip to main content
Glama

Check a change against adopted rules

archprint_check
Read-onlyIdempotent

Checks the current change, including uncommitted edits, against adopted repository architecture rules and reports only violations it introduces or fixes, plus exceptions and context-file rule gaps.

Instructions

Check the current change, including uncommitted edits, against the rules this repo adopted with archprint init or generate, and report only the violations the change introduces (file, line, rule, and the evidence for the rule), plus those it fixed and any exceptions allowed with a reason in .archprint/config.json. It also lists the sentences the change adds to context files (CLAUDE.md, AGENTS.md, .cursor/rules, ...) that apply to the app and that no adopted rule quotes, marking the ones that read like rules, and the adopted rules whose sentence is no longer in its file. Use it before finishing a change. Compares with base (a branch or commit, default origin/HEAD). Read-only: the files of the base commit are copied to a temporary folder outside the repo and deleted afterwards; it runs no git hooks and changes nothing in the repo. Returns status "skipped" with the reason when the repo has not adopted rules.

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

Input Schema

NameRequiredDescriptionDefault
baseNobranch or commit to compare against (default origin/HEAD)
pathNorepository directory where archprint was set up, on this machine (default ".")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.10.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare read-only/idempotent/non-destructive, and the description still adds real substance: the base commit's files are copied to a temp folder outside the repo and deleted afterwards, no git hooks run, and nothing in the repo changes. It also discloses the return shape (file, line, rule, evidence; fixed violations; reasoned exceptions; stale rules) and the 'skipped' status with its precondition, which the annotations cannot convey.

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?

Purpose and the read-only guarantee are front-loaded, and the length is justified because there is no output schema and the return categories must be enumerated. The middle sentence is a long run-on with nested clauses that is harder to parse than necessary, which keeps it from 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?

With no output schema, the description carries the return-value burden and does so: violations, fixes, exceptions, context-file additions, and stale rules are all listed, along with the 'skipped' outcome and its reason. Safety behavior is doubly covered by annotations and by the temp-folder explanation, leaving nothing an agent needs before calling it.

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 both parameters are already documented; the description only restates that `base` is a branch or commit defaulting to origin/HEAD. `path` gets no added meaning beyond the implicit 'this repo,' so the 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 and resource (check the current change, including uncommitted edits, against adopted rules) and narrows the output precisely: only newly introduced violations, fixed ones, allowed exceptions, and unquoted context-file sentences. The mention of rules adopted 'with archprint init or generate' plus the change-scoped focus clearly separates it from scan/explain/gap_report/recommend siblings.

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

Usage Guidelines4/5

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

Gives an explicit trigger: 'Use it before finishing a change,' which tells the agent where in the workflow this belongs. It does not name when-not to use it or route to a specific sibling for the adjacent cases (e.g., whole-repo scanning), so it stops short of full alternative guidance.

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