Skip to main content
Glama

Recommend architecture rules

archprint_recommend
Read-onlyIdempotent

Recommend architecture rule sets for a TypeScript repo from its import graph evidence: what to enforce now, report-only patterns, review items, and peer adoption. Read-only.

Instructions

Recommend an architecture rule set for this repo from its evidence and detected stack: what to enforce now, what the code already follows that archprint reports but does not write a rule for yet (reportOnly), what to review before enforcing, and what comparable repos commonly adopt that this repo does not yet. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoapp or monorepo-root directory (default ".")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.3

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, so the trailing 'Read-only.' adds nothing. What does add value is the breakdown of the recommendation categories returned (enforce-now, reportOnly, review-before-enforce, common-adoption gaps), which tells the agent what the output contains since no output schema exists.

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?

Front-loaded with the verb and resource, then a colon-delimited enumeration of the four recommendation buckets. Dense but every clause carries information; the list is long but not padded.

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?

For a zero-required-param, read-only analysis tool with no output schema, the description covers the input source, the safety profile, and the shape of the recommendations returned. An agent has enough to call it correctly and interpret 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 one parameter with 100% schema description coverage, so the schema already documents 'path' and its default. The description contributes no additional parameter meaning (e.g., monorepo vs single-app behavior of the path), so the high-coverage baseline of 3 applies.

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 (Recommend) and resource (architecture rule set) and scopes the source as 'this repo's evidence and detected stack'. It never names archprint_scan or archprint_explain, so the agent gets no explicit differentiation from siblings, which caps this at 4.

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 framing ('from its evidence and detected stack') implies this runs after a scan, but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative tool. Usage is inferable rather than stated.

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