Skip to main content
Glama

record_decision

Store durable project decisions, constraints, warnings, and rejected alternatives outside chat so they survive context resets and inform new sessions.

Instructions

Record a durable decision for this project, kept apart from chat so it survives context resets and dead sessions. Use it for what a peer coming in cold must know: a decision and why, a rejected alternative, a constraint, a warning. refs names the files/commit it touches; tags are freeform for filtering. kind is decision | fact | constraint | warning. Read them back with read_decisions.

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>"
    },
    "name": "record_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
kindNodecision
refsNo
tagsNo
titleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does disclose the key behavioral trait: records are durable and stored apart from chat, surviving context resets and dead sessions. It also enumerates the `kind` vocabulary (decision | fact | constraint | warning), which shapes what gets written. It does not say whether records are append-only or mutable, whether duplicates are rejected, or what the call returns, leaving some behavioral gaps.

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?

Purpose and the survival rationale come first, then when-to-use, then the parameter notes, then the read-back pointer — a clean front-loaded ordering. Every sentence carries distinct information with no restatement of the tool name or filler.

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 five-parameter write tool with no annotations and no output schema, the definition covers purpose, persistence semantics, intended content, the `kind` vocabulary, and how to retrieve records. The remaining gap is the return behavior — whether a record id or confirmation comes back — which matters for a durable store an agent may later need to reference.

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 0%, so the description must compensate, and it does for three of five parameters: `refs` is defined as the files/commit touched, `tags` as freeform filtering labels, and `kind` as an enumerated vocabulary with a default implied by the listed values. `title` and `body` are only implicitly covered via "a decision and why," so the mapping of rationale into `body` is left to inference.

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 and resource ("Record a durable decision for this project") and immediately scopes it against chat ("kept apart from chat so it survives context resets"), which tells an agent this is out-of-band persistent storage rather than a message. It also names the read-side sibling `read_decisions`, so the record/read pair is unambiguous.

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 concrete inclusion criteria: "what a peer coming in cold must know: a decision and why, a rejected alternative, a constraint, a warning." That is unusually actionable guidance for when to call it, and it names `read_decisions` as the retrieval counterpart. It stops short of stating when *not* to record (e.g., trivial or chat-scoped items), so it is clear context without explicit exclusions.

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