Skip to main content
Glama

add_decision

Record an architectural decision with its rationale and related files in a persistent journal, so future sessions can recall why choices were made without rescanning the codebase.

Instructions

Enregistre une décision architecturale dans .claude/decisions.json pour mémoire future.

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": {
      "projectPath": "<projectPath>",
      "topic": "<topic>",
      "decision": "<decision>",
      "rationale": "<rationale>"
    },
    "name": "add_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoTags ex: ["pdf", "performance"]
filesNoFichiers concernés (chemins relatifs)
topicYesSujet court ex: "Choix PDF renderer", "Auth strategy"
decisionYesLa décision prise
rationaleYesPourquoi cette décision
projectPathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It usefully discloses the persistence target ('.claude/decisions.json') and that the entry is kept for future retrieval, but says nothing about whether appends vs overwrites occur, deduplication on repeated topics, whether the file is created if absent, or what the call returns.

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?

A single front-loaded sentence with zero filler: verb, resource, storage location, and purpose in one line. Nothing is redundant with the title or schema, and there is no wasted wording to trim.

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 no annotations and no output schema, the definition is thin: it never covers write semantics, projection/overwrite behavior, or what the caller gets back. The essential 'what' is present, but an agent cannot fully predict the consequences of invoking it.

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 description coverage is 83%, so the input schema already documents topic, decision, rationale, tags, and files; the description adds no additional meaning to any of them. It also does not compensate for 'projectPath', which is required but has no schema description.

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 specific verb and resource ('Enregistre une décision architecturale') plus the exact storage target ('.claude/decisions.json'), so an agent knows precisely what this does. It does not reference the sibling 'get_decisions' as the read-side counterpart, so sibling differentiation is left to inference.

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 explicit when-to-use or when-not-to-use guidance, and no named alternative (e.g., search_context or get_decisions) to route the agent among. 'Pour mémoire future' vaguely implies the intent of recording decisions, but nothing states the conditions under which this tool should be preferred.

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