Skip to main content
Glama

ralph_claim_ready

Atomically claim a ready PRD for execution to prevent race conditions and return the agent prompt for safe pickup.

Instructions

Atomically claim a ready PRD for execution. Used by Ralph Runner to safely pick up PRDs without race conditions. Returns agent prompt if successful.

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_claim_ready"
  }
}

Input Schema

NameRequiredDescriptionDefault
branchYesBranch name of the PRD to claim (e.g., ralph/task1-agent)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.4

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, and destructiveHint=false, so the mutation profile is largely supplied. The description adds genuinely useful context the annotations cannot: that the claim is atomic and race-safe, and that a successful call yields an agent prompt. It omits what happens on failure (e.g., PRD already claimed) or whether the claim is released elsewhere.

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?

Three short sentences, front-loaded with the action and its atomicity guarantee. Slight redundancy in the audience framing ('Used by Ralph Runner'), which serves less as guidance for the calling agent than as provenance.

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?

There is no output schema, and the description only partially compensates by mentioning the agent prompt return. For a state-mutating claim operation it says nothing about failure modes or post-claim state, leaving a meaningful gap for an agent deciding how to handle an unsuccessful claim.

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?

With schema coverage at 100% and only one parameter fully described with an example format, the schema does the heavy lifting. The description adds no further meaning about the branch value beyond tying it to a 'ready PRD', so the baseline 3 applies.

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 names a specific verb and resource ('claim a ready PRD') and adds the defining property 'atomically', which separates it from passive siblings like ralph_get or ralph_status. It does not explicitly name a sibling it replaces, but the operation 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 Guidelines3/5

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

It states the intended context ('Used by Ralph Runner to safely pick up PRDs without race conditions'), which implies when to call it. However, there is no explicit when-not guidance, no prerequisites (e.g., the PRD must already be in 'ready' state), and no named alternative for non-atomic reads.

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