Explain an architecture rule
archprint_explainExplains one architecture rule from a scan by ID, label, or ESLint name, including status, adoption, violating files, and fixes so agents can verify compliance before coding.
Instructions
Explain one rule from archprint_scan in depth, by its id, label or ESLint name (e.g. AP-002, env-access, no-lib-to-app, "lib !-> app" or archprint/no-lib-to-app): its statement, gate status, adoption (enforce, review, or report-only, as in archprint_scan), observed conformance and confidence floor, and every file that breaks it (scan lists only a few). For the forbidden-import rules (AP-001, AP-002) it also returns each confidence-gate condition with its value and threshold, how to fix a violation, and when not to adopt the rule. A rule the team stated in CLAUDE.md or AGENTS.md and adopted (its id starts with doc-) comes back with the sentence the team wrote, its source line, what it enforces in plain words, its evidence and its exceptions. Read-only.
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": {
"id": "<id>"
},
"name": "archprint_explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | rule id, label or ESLint name from archprint_scan, e.g. AP-002, no-lib-to-app or "lib !-> app", or a declared rule id such as doc-no-fetch-in-components | |
| path | No | app or monorepo-root directory on this machine (default "."), not a URL |