Skip to main content
Glama

ralph_update

Idempotent

Update a user story's status after completion, recording pass/fail, notes, changed files, and verification evidence so agents can track progress and dependencies.

Instructions

Update User Story status. Called by subagent after completing a story.

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": {
      "branch": "<branch>",
      "storyId": "<storyId>",
      "passes": "<passes>"
    },
    "name": "ralph_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepNoCurrent step label (e.g., implementing/testing/building/verifying)
errorNoError message if stuck (for stagnation detection)
notesNoImplementation notes
branchYesBranch name (e.g., ralph/task1-agent)
passesYesWhether the story passes
storyIdYesStory ID (e.g., US-001)
hardGatesNoHard gate verification results for typecheck/build
acEvidenceNoPer-AC evidence mapping, keyed by AC id
filesChangedNoNumber of files changed (for stagnation detection)
expectedFilesNoFiles declared before implementation that are expected to change
skipHardGatesNoSkip hard gate verification for non-code stories (default: false)
skipScopeCheckNoSkip scope guardrail check (default: false)
scopeExplanationNoRequired explanation when scope guardrails are exceeded
unexpectedFileExplanationNoExplanation for files changed outside expectedFiles declaration

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.4

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered structurally. The description adds only the process context of who calls it; it says nothing about what happens when passes=false, how hardGates failures are handled, or that scope guardrails can block the update — behavior that matters for a 14-parameter workflow mutation.

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?

Two short, front-loaded sentences with no filler — purpose first, caller context second. The terseness is efficient but edges toward under-specification for a tool of this complexity, which is scored under completeness rather than here.

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?

This is a complex state-mutating tool with nested evidence objects, hard gates, scope guardrails, and stagnation-detection inputs (error, filesChanged), and the description explains none of that workflow. An agent can populate fields from the schema but cannot tell from the description when skipHardGates or scopeExplanation are appropriate or what failure modes to expect.

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 100%, with all 14 parameters including nested acEvidence and hardGates documented inline, so the schema carries parameter semantics fully. The description adds no parameter-level meaning beyond that, making the baseline 3 correct.

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?

The description gives a specific verb+resource ("Update User Story status") plus the caller context ("Called by subagent after completing a story"), which makes it distinguishable from read/query siblings like ralph_get and ralph_status. It stops short of naming a sibling alternative, so it misses the 5 bar.

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 states a clear usage context: invoke after completing a story from a subagent. There is no when-not guidance, no mention of prerequisites (does the story need to be claimed via ralph_claim_ready first?) and no routing versus ralph_retry or ralph_reset_stagnation, so usage is implied rather than fully specified.

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