Skip to main content
Glama

record_decision

Log decisions with rationale so other AIs can query why later, link code or memory IDs, set canonical facts, and supersede outdated notes.

Instructions

Log a decision (what, alias decision) with its rationale (why, alias rationale) so other AIs can later ask why(). Link code/memory ids via related_ids. sets=[{subject, predicate, value}] makes it Canon (the only way owner-only facts change; quote the owner in why); supersedes=[ids] retires notes it replaces. Returns related: notes that still state an old value, to supersede too.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "record_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
whyNo
setsNo
tagsNo
whatNo
agentNo
api_keyNo
projectNo
decisionNo
entitiesNo
evidenceNo
rationaleNo
session_idNo
supersedesNo
related_idsNo
alternativesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.38.0
    • addedInput schema / properties / sets
      Added value: +{
      +  "items": {
      +    "additionalProperties": true,
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / supersedes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. First observedv0.36.1

TDQS

B3.4/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 burden, and it does disclose meaningful side effects: `sets` creates Canon and is 'the only way owner-only facts change', `supersedes` retires notes, and the response surfaces stale notes needing supersession. It omits permissions/auth implications, whether logging is idempotent, and why every parameter is optional for a tool whose core fields are `what`/`why`.

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?

Front-loaded with the purpose, then parameter behavior in priority order, with no filler sentences. Some clauses are compressed into fragments ('Link code/memory ids via related_ids') and the parenthetical asides make it dense, but every sentence carries information.

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?

Given 15 undocumented parameters, no annotations and no output schema, the description covers purpose plus the mutation semantics and briefly characterizes the return value. It remains incomplete on the content parameters (evidence, alternatives, entities) and on authentication/identity parameters, which an agent must guess at.

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% across 15 parameters, so the description must compensate, and it explains the highest-risk ones well: `what`/`decision` and `why`/`rationale` aliasing, `related_ids`, the `{subject, predicate, value}` shape of `sets`, and `supersedes`. It leaves tags, entities, evidence, alternatives, agent/project/api_key/session_id entirely undocumented, so half the surface is still opaque.

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?

Specific verb + resource ('Log a decision') with the downstream purpose spelled out ('so other AIs can later ask why()'), which implicitly distinguishes it from the read-side `why` sibling. It stops short of explicitly naming the siblings it is not (fact_set, remember, canon), so the boundary requires inference.

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?

It gives conditional guidance for two parameters: use `sets` when changing owner-only facts, and `supersedes` to retire replaced notes. It never says when to call record_decision at all versus fact_set/remember/canon, and gives no prerequisites or exclusions for the base case.

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