Skip to main content
Glama

write_architecture_doc

Create architecture decision records and system design documents with automatic indexing and git push. Supports Mermaid diagrams for component relationships.

Instructions

Create an architecture decision or system design document, index it, and auto-push.

    Side effects: creates architecture/YYYY-MM-DD-{slug}.md in the docs path,
    indexes it into the vector store, and pushes to git if configured.
    Overwrites an existing file with the same title.

    Use for system design, ADRs, and component relationships.
    Use write_api_doc() for HTTP endpoint specs, write_best_practice()
    for coding patterns, write_bugfix_summary() after fixing bugs.
    Include a Mermaid diagram in the diagrams field for best results.

    Args:
        title: Short title (e.g. "Payment Service Architecture")
        overview: High-level description of the system/component
        decisions: Key architectural decisions made and why
        trade_offs: Alternatives considered and rejected, pros/cons
        components: Optional component breakdown (optional)
        diagrams: Optional Mermaid or ASCII diagrams (optional)
        project: Target project name (optional)

    Returns:
        Saved filename, chunk count, and whether auto-push succeeded.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes
projectNo
diagramsNo
overviewYes
decisionsYes
componentsNo
trade_offsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Discloses side effects (file creation, indexing, git push, overwrite behavior). Without annotations, this provides substantial transparency, though could mention permission requirements or failure modes.

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?

Well-structured with summary, bullet-like side effects, usage guidance, and parameter list. Every sentence adds value, though slightly verbose for the parameter descriptions.

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?

Covers all key aspects: purpose, side effects, usage, alternatives, parameters, and return values. Suitable for a complex tool with 7 parameters and missing output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema coverage, the description adds value by explaining each parameter's purpose (e.g., 'decisions: Key architectural decisions made and why'). Provides enough context for correct usage, though lacks examples or formats.

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?

Clearly states the tool creates architecture documents, indexes, and auto-pushes. Explicitly differentiates from siblings by naming alternative tools for other doc types.

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

Usage Guidelines5/5

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

Explicitly states when to use (system design, ADRs, component relationships) and when not to use by referencing siblings like write_api_doc, write_best_practice, write_bugfix_summary.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dl4rce/flaiwheel'

If you have feedback or need assistance with the MCP directory API, please join our Discord server