Skip to main content
Glama

ralph_set_agent_id

Idempotent

Record a Claude Task agent ID against a branch execution after starting a Task agent, enabling Ralph MCP to track and manage that agent.

Instructions

Record the Claude Task agent ID for an execution. Called after starting a Task agent.

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

Input Schema

NameRequiredDescriptionDefault
branchYesBranch name
agentTaskIdYesClaude Task agent ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.4

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare this a non-read-only, idempotent, non-destructive, closed-world write, so the safety profile is covered. The description adds the sequencing context (call after starting an agent) but says nothing about overwrite behavior on an existing agent ID or what happens when the branch is unknown — the parts annotations cannot express.

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, purpose first then timing, with no filler. Every clause carries information an agent needs.

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?

For a two-parameter state-recording tool with full schema coverage and meaningful annotations, the description is close to sufficient, and no output schema means return values need not be described. It is still silent on failure modes and on whether a previously recorded ID is replaced, which would matter if the agent retries or mis-sequences the call.

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% and both parameters ('branch', 'agentTaskId') are self-documented, so the baseline is 3. The description adds only a light framing that the ID belongs to an execution; it introduces no format, validation, or relationship detail beyond the schema.

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: 'Record the Claude Task agent ID for an execution.' An agent can tell this is a bookkeeping write keyed to an execution, not a query or start operation. It does not explicitly contrast with siblings like ralph_start, but the resource is narrow enough to be unambiguous.

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?

'Called after starting a Task agent' gives a concrete sequencing precondition, which is the main thing an agent needs to know. It stops short of naming when not to call it (e.g. re-recording an existing ID, or what to do if no agent was started), so it is clear context rather than full when/when-not guidance.

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