Skip to main content
Glama

Scan architecture rules

archprint_scan
Read-onlyIdempotent

Scan a TypeScript repo to list architecture rules it already follows, with evidence, adoption status, violating files, confidence, and dead-code suggestions to review.

Instructions

List the architecture rules this TypeScript repo already follows, with the evidence: each rule stated in plain words, whether it is AUTO (clears the confidence gate) or SUGGEST (short of it), its adoption ("enforce": archprint init or generate writes a rule for it, which archprint wire connects to the linter, and public-API rules need dependency-cruiser; "review": held for a human to review, not enforced by default; "report-only": the code follows it but archprint writes no rule for it), how many files conform vs. break it, the files that break it, and the confidence; and, in deadCode, every production file nothing imports (orphans), every one only tests import (importedOnlyByTests), and every such file a published package without an exports map ships, which its users may import by path (shipped), as suggestions to review, never enforced. Read-only. path defaults to "." and a monorepo root scans every app.

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_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
deepNoresolve imports through barrels and aliases (slower, more accurate)
pathNoapp or monorepo-root directory on this machine (default "."), not a URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.0
    • changedInput schema / properties / path / description
      Previous value: -"app or monorepo-root directory (default \".\")"New value: +"app or monorepo-root directory on this machine (default \".\"), not a URL"
  2. First observedv0.8.3

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description goes further by defining what AUTO vs SUGGEST means, what clears the 'confidence gate', what each adoption tier does downstream (init/generate writes rules, wire connects to the linter, public-API rules need dependency-cruiser), and that deadCode entries are never enforced. It stays silent on cost/latency of a full scan and on any auth or workspace prerequisites, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is relevant and front-loaded with the core action, but it is delivered as one enormous run-on sentence with deeply nested parentheticals around the adoption values, which makes it hard to parse on a first read. Nothing is strictly wasted, but structure costs the agent scanability.

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

Completeness4/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 carries the burden of describing the return shape: per-rule fields, adoption semantics, and the three deadCode categories (orphans, importedOnlyByTests, shipped) with their review-only status. It is complete for calling the tool correctly; only the relationship to sibling scan/check tools is left implicit.

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%: both `deep` (barrels/aliases, slower but more accurate) and `path` (local directory, not a URL, default '.') are already documented there. The description adds only the monorepo-root behavior ('a monorepo root scans every app'), a modest but real increment beyond the schema, and says nothing about `deep`.

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?

States a specific verb and resource: 'List the architecture rules this TypeScript repo already follows, with the evidence', and enumerates what each rule carries (adoption tier, conformance counts, offending files, confidence) plus the deadCode bucket. An agent immediately knows this is an inventory/scan rather than a check or explainer, though no sibling tool is named to make the boundary explicit.

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 inventory framing and the 'read-only' note, but there is no explicit when-to-use or when-not-to-use guidance versus archprint_check, archprint_explain, or archprint_recommend. The statement that deadCode items are 'suggestions to review, never enforced' is output semantics, not call guidance.

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