Skip to main content
Glama

ddflow_decision_add

Capture architectural decisions with context, alternatives, and consequences, and link them to relevant code paths so future agents understand why the software is built this way.

Instructions

Record an architectural decision so the project stays consistent and the reasoning survives. Use when you or the operator settle a question about HOW the software is built — a data representation, a boundary, a library choice, an invariant.

ALWAYS set globs to the code it governs: that is what lets the decision be surfaced automatically to whoever works those files later, instead of only being findable by someone who already suspects it exists. Record alternatives too — without it the next agent re-proposes what was rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
byNo'operator' or 'agent' or a name.
idNoStable id, e.g. 'D1'. Choose one: `supersedes`, commit messages and docs all reference it, and a generated id cannot be cited in advance.
itemNoThe task it arose from.
tagsNoComma-separated tags.
globsNoComma-separated paths this governs.
titleYesThe decision as a one-line statement.
statusNoproposed | accepted (default) | superseded. 'proposed' records a decision the operator has not ratified, which is honest about its standing rather than presenting it as settled.
contextNoThe forces: why a decision was needed at all.
decisionYesWhat was DECIDED (not what was discussed).
supersedesNoComma-separated ids this replaces.
alternativesNoWhat was rejected, and why.
consequencesNoWhat it costs, including what it makes harder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

There are no annotations, so the description carries the burden of behavioral disclosure. It does reveal useful behavior: decisions are persisted, survive, and can be surfaced automatically to future agents via globs. However, it does not disclose side effects, authorization needs, or what happens on invocation beyond recording.

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?

The description is tight and front-loaded. Every sentence earns its place: the first defines the tool's purpose, the second paragraph gives prioritized operational guidance for the two most decision-critical parameters.

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?

With 12 parameters, no annotations, and no output schema, the description wisely focuses on the non-obvious usage context and the two easy-to-miss parameters. The schema already describes all parameters in detail, so the tool is callable correctly after reading both. It could still mention interaction with the decision_supersede/list siblings, but that is not essential for a record operation.

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?

Schema coverage is 100%, so the baseline is 3. The description adds real value beyond the schema by singling out `globs` and `alternatives`, explaining why they matter and instructing the agent to always set them. This helps the agent choose parameters strategically, not just fill required fields.

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?

The description starts with a specific verb and resource: 'Record an architectural decision'. It further scopes the tool with concrete examples of what counts (data representation, boundary, library choice, invariant), making it clearly distinct from the decision_list, decision_show, and decision_supersede siblings.

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?

The description gives an explicit trigger: 'Use when you or the operator settle a question about HOW the software is built'. It does not name alternative tools or state when not to use this one, so it falls just short of full routing guidance.

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