Skip to main content
Glama

log_architectural_decision

Record architectural decisions to DECISIONS.md after core component, data flow, service, or module structure changes so rationale and alternatives stay documented.

Instructions

Records an architectural decision to the project's DECISIONS.md ledger. Call this AFTER creating a new core component, changing data flow, adding a service, or altering the module structure.

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": {
      "title": "<title>",
      "summary": "<summary>",
      "scope": "<scope>"
    },
    "name": "log_architectural_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYesWhich part of the codebase this affects (e.g. 'api/auth', 'database', 'frontend/state')
titleYesShort descriptive title for the decision (e.g. 'Added Redis caching layer')
summaryYesWhat was decided, why, and what alternatives were considered

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=false, so the write/non-destructive profile is already covered. The description adds that the write targets a persisted DECISIONS.md ledger file, which is useful beyond the annotations, but says nothing about duplicate handling (given idempotentHint=false), permissions, or failure behavior.

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

Conciseness5/5

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

Two sentences, zero waste: the first names the action and target, the second front-loads the trigger conditions with the emphatic 'AFTER'. Nothing is padded or repeated from the schema.

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 simple three-string write tool with full schema coverage and no output schema, the definition covers what it does, where it writes, and when to call it. Minor gap: it does not say what happens on a duplicate or failed write, which matters for a non-idempotent mutation.

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% and each of the three required parameters already carries an example-bearing description, so the schema does the heavy lifting. The description adds no further detail on what 'scope' or 'summary' should contain beyond the schema, which is the baseline-3 outcome.

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?

States a specific verb (records) and resource (an architectural decision) plus the exact destination artifact (DECISIONS.md ledger), which no sibling tool touches. The sibling tools are all verification/read tools, so the write-to-ledger purpose is clearly distinguishable.

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

Usage Guidelines4/5

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

Gives explicit triggering conditions: call AFTER creating a core component, changing data flow, adding a service, or altering module structure. The temporal 'AFTER' ordering is valuable and explicit, but it names no exclusions or relationship to sibling tools like verify_dependency_addition.

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