Skip to main content
Glama

brain_adr

Write an Architecture Decision Record for a significant project choice, capturing context, decision, alternatives, and consequences. It remains proposed until the owner accepts it.

Instructions

Write an Architecture Decision Record for a significant choice (ADR-0001 covers the project goals and stack). It stays proposed until the owner accepts it.

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>",
      "context": "<context>",
      "decision": "<decision>",
      "alternatives": "<alternatives>",
      "consequences": "<consequences>"
    },
    "name": "brain_adr"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYes
contextYes
decisionYes
supersedesNoOptional ADR-n or id of an ADR of this project that this one replaces.
alternativesYes
consequencesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose one important state fact: the record 'stays proposed until the owner accepts it', implying an approval workflow and non-final state. It does not disclose permission requirements, whether accepted ADRs are immutable or editable, what happens if 'supersedes' references a non-existent ADR, or what the response contains.

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?

Two short, front-loaded sentences with no filler; the core action leads and the lifecycle note follows. The second sentence's referent ('It') is slightly loose but unambiguous in context.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter write tool with five required fields, no annotations, and no output schema, the description omits too much: no return value behavior (does it yield an ADR id/number?), no required-field guidance, and no indication of supersession rules. What it does say about the proposed lifecycle is the only substantive behavioral detail.

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

Parameters2/5

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

Schema description coverage is only 17% (only 'supersedes' is documented in the schema), so the description should compensate but adds nothing about any parameter. The field names (context, decision, alternatives, consequences) are self-describing for an ADR, but there is no guidance on expected depth, formatting, or how the ADR number is assigned or supplied.

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 concrete verb and artifact: 'Write an Architecture Decision Record for a significant choice', and clarifies the numbering convention with 'ADR-0001 covers the project goals and stack'. It is distinguishable from siblings like brain_record or brain_doc by naming the ADR artifact, but it does not explicitly contrast against those tools.

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?

'For a significant choice' gives an implicit eligibility threshold that tells the agent this is for consequential decisions rather than routine notes. However, there is no guidance on when to use this instead of brain_record or brain_propose, and no stated prerequisites or when-not conditions.

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