Skip to main content
Glama

brain_doc

Read a full project ADR or recipe by id or ADR-n to retrieve approved decisions and procedures directly within an AI coding session.

Instructions

Read one ADR or recipe of this project in full, by id or ADR-n.

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": {
      "id": "<id>"
    },
    "name": "brain_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the whole burden, and "Read" plus "in full" does establish the operation is non-mutating and returns complete content. However, it says nothing about what happens when the id does not resolve, whether ADR and recipe ids share one namespace, or how large a returned document may be.

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 front-loaded sentence with no filler; the verb and resource come first and the identifier note trails as a qualifier. It is efficient, though slightly under-specified rather than over-worded.

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

Completeness3/5

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

For a one-parameter read tool with no output schema and no annotations, the definition covers the essentials but leaves real gaps: the return shape, id namespacing, and not-found behavior are unstated. It is minimally adequate rather than complete.

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 0% and the schema only declares a 100-character string, so the description's "by id or ADR-n" is the sole source of meaning about accepted identifier forms. That is a genuine addition, but it is terse and does not clarify whether the prefix is required for ADRs or how recipes are identified.

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 names a specific verb ("Read") and resource ("one ADR or recipe of this project") plus a scope modifier ("in full"), which tells an agent this returns complete documents rather than snippets. It does not distinguish itself from the sibling tools brain_adr and brain_recipe, whose names suggest overlapping document-reading behavior, so the purpose is clear but not fully disambiguated.

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?

Usage is only implied: "in full" hints this is for when the complete text is needed rather than a search hit, but there is no explicit when-to-use, when-not-to-use, or preferred-alternative guidance. Nothing tells the agent whether to call brain_search or brain_context first to obtain an id.

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