Skip to main content
Glama

ralph_reset_stagnation

Idempotent

Reset execution stagnation counters after manual intervention so a stalled coding agent can resume work. Optionally set a failed branch status back to running.

Instructions

Reset stagnation counters for an execution. Use after manual intervention to allow the agent to continue.

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

Input Schema

NameRequiredDescriptionDefault
branchYesBranch name (e.g., ralph/task1-agent)
resumeExecutionNoAlso set status back to 'running' if currently 'failed' (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.4

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, idempotentHint=true and readOnlyHint=false, so the mutating-but-safe profile is covered structurally. The description adds that this unblocks the agent after human intervention, but says nothing about what exactly gets cleared, whether in-flight work is affected, or how the operation reports success.

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?

Two short sentences, zero filler, with the action front-loaded and the usage condition immediately after. Nothing can be trimmed without losing information.

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 two-parameter, well-annotated tool with no output schema, the definition covers what it does and when to call it. It leaves the notion of 'stagnation' implicit, which a caller unfamiliar with the ralph lifecycle would have to infer.

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%, so both 'branch' and 'resumeExecution' are already documented with an example and a default. The description adds no further meaning about parameter behavior, which is the baseline expectation when the schema does the work.

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?

States a specific verb and resource: 'Reset stagnation counters for an execution.' This is concrete enough to distinguish it from siblings like ralph_retry and ralph_update without opening their schemas, though it never explicitly contrasts itself with them.

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 second sentence gives a clear triggering condition: 'Use after manual intervention to allow the agent to continue.' It does not name an alternative tool or state when NOT to use it, so it stops 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.