Skip to main content
Glama

Write an architecture report

re_report

Generates an ARCHITECTURE.md report for a project, covering stack, languages, entry points, module graph and cycles, scene trees, class tables, unused files, and external dependencies.

Instructions

Writes ARCHITECTURE.md for a project: stack, languages, entry points, mermaid module graph, cycles, most-used files, scene trees of the entry scenes, class table, possibly unused files and external dependencies.

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": {
      "path": "<path>"
    },
    "name": "re_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
outNoOutput .md path (default: workspace/reports).
pathYesProject folder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the agent knows a file is written, and the description usefully discloses what the generated report contains. It does not state whether an existing ARCHITECTURE.md is overwritten, how expensive the scan is, or what happens on a large project — notable gaps given idempotentHint=false.

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?

A single sentence, front-loaded with the verb and the artifact produced, with zero filler. The trailing enumeration is dense but each item is informative rather than redundant.

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?

For a two-parameter tool with full schema coverage and no output schema, the description does the important work of describing the return artifact section by section, which the missing output schema would otherwise leave undefined. Remaining gaps are behavioural (overwrite semantics, cost) rather than structural.

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%, with both 'path' and 'out' fully documented including the default report location, so the schema already carries parameter meaning. The description adds no additional detail about path formats, output naming, or behaviour when 'out' points at an existing file, so baseline 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?

The description uses a specific verb ('Writes') and a concrete resource ('ARCHITECTURE.md for a project') and enumerates exactly which sections are produced (stack, module graph, cycles, scene trees, class table, unused files, external deps). It is unambiguous about what the tool produces, but it does not contrast itself with sibling analyzers such as re_graph or re_scene, so an agent cannot tell from the text alone which of those to pick.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no stated prerequisites (e.g. the project must be indexed/parsed first), and no named alternatives. The content list implies the tool is for whole-project documentation, but the agent must infer that on its own.

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