Skip to main content
Glama

decide

Record a decision the work will follow, assign its thread or repo scope, and set the next action and owner so future changes can supersede it.

Instructions

Record a decision the work will follow from now on — a choice, not a truth (e.g. 'use a separate auth_credentials table'). authority='user' if the engineer stated it, 'agent' if you made it while implementing. To change it later, decide again with supersedes=. scope='thread' (default: archived with this thread) or 'repo' (holds for every thread of this repository — promotion is by declaring the scope, never automatic). Not for hypotheses about causes — those stay in note_turn. source_refs = the prompt id(s) the decision comes from (the id from the prompt's "casebook source_ref: " line, or on a chat client the id add_utterance returns. Required with authority='user'.) FIRST LINE = TITLE: at most 120 columns (CJK counts as 2), no ' — ' joiner, and no record numbers (#517, D15635, 확장 122호, turn 80, commit hashes) — a person reads that line on the screen; put the rest after a blank line as the body. The paragraph right under the title is read on the screen too, so no record numbers there either; they go in a later paragraph or evidence_ids (the server refuses otherwise). reason follows the same first-line rule — its first line is what the thread card shows as the reason. A decision changes what happens next: next (required) and owner (required) = what happens next after this and whose turn it is — "user", "watch" or an agent name; a next owned by the user is written TO the engineer.

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": {
      "case_id": "<case_id>",
      "statement": "<statement>"
    },
    "name": "decide"
  }
}

Input Schema

NameRequiredDescriptionDefault
nextNo
ownerNo
scopeNothread
clientNo
reasonNo
captureNo
case_idYes
authorityNoagent
statementYes
supersedesNo
source_refsNo
evidence_idsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

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, the description carries the load and does it well: it discloses archival semantics (thread-scoped decisions are archived with the thread), that repo scope spans every thread, and that the server will refuse statements whose title or first body paragraph contain record numbers. One wrinkle: it calls next and owner 'required' while the schema marks both optional with null defaults, which an agent may find confusing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the key alternatives are front-loaded, which is good, but the body is one long paragraph mixing routing guidance, parameter semantics, and typography rules for titles. The title/first-line formatting rules could be a separate, clearly marked block rather than parenthetical asides mid-sentence.

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 12-parameter mutation tool with no annotations, the description covers the failure modes that matter: what scope means, how supersession works, the source_refs requirement under authority='user', and server-side refusals. An output schema exists, so return values need not be described; the residual gaps are the unexplained case_id, client, and capture parameters.

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 description coverage is 0%, so the description must compensate, and it covers most of the 12 parameters: authority, scope, supersedes, source_refs, evidence_ids, reason, statement, next, and owner all get real meaning. case_id, client, and capture are never explained, and the statement formatting rules are dense but at least actionable.

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 concrete verb and resource ('Record a decision') and immediately constrains the object: 'a choice, not a truth', with a worked example. It also names the sibling it is not for ('Not for hypotheses about causes — those stay in note_turn'), so an agent can separate decide from note_turn without reading either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly gives when-not-to-use (hypotheses about causes go to note_turn) and a named alternative. It also supplies decision rules for choosing between parameter values: authority='user' vs 'agent', and scope='thread' vs 'repo' with the note that promotion is never automatic, plus the supersedes path for changing a past decision.

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