Skip to main content
Glama

Read worker recovery

get_task_worker_recovery
Read-onlyIdempotent

Read recovery proof for ownerAttemptId, or the latest recovery. Returns taskId, projectId and workerRecovery, which is null when none is recorded. Grants no ownership.

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": {
      "taskId": "<taskId>"
    },
    "name": "get_task_worker_recovery"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesThe task's ID, from the id field of list_tasks or get_task. Identifiers such as PRO-42 are not accepted here.
ownerAttemptIdNoThe ownerAttemptId you passed to acquire_task_worker_lease for the attempt that stopped. Leave it out for the latest recovery on this task.

Output Schema

NameRequiredDescriptionDefault
taskIdYesID of the task.
projectIdYesID of its project.
workerRecoveryYesThe recovery record: generation, ownerAttemptId, expectedTaskRevision and recoveredAt. Null when none is recorded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, and non-destructive, so the bar is lower; the description still adds domain-specific behavior by clarifying that the result may be null when nothing is recorded and that reading does not confer ownership. It does not describe error cases or what a non-null proof contains beyond the field names, which are already in the output schema.

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?

Three short sentences, front-loaded with the action and selector, then the return shape, then the safety caveat. No filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read tool with full schema coverage, complete annotations, and an output schema, the description covers the default behavior, the null case, and the ownership implication. Nothing an agent needs to call it correctly is missing.

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 baseline is 3. The description restates the ownerAttemptId fallback semantics and the taskId requirement already documented in the schema; it adds no extra format or constraint detail beyond that.

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?

The description opens with a specific verb and resource ('Read recovery proof'), names the key selector (ownerAttemptId), and states the default fallback ('or the latest recovery'). 'Grants no ownership' further distinguishes it from the lease-acquisition tool it references, so an agent can tell what it does without opening the schema.

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?

It gives clear context: read the proof for a specific stopped attempt, or omit the ID for the latest recovery on the task. It also implicitly excludes the write path by noting it grants no ownership, but it does not explicitly say when to prefer this over a broader task read or what to do if no recovery exists beyond the null return.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources