Skip to main content
Glama

claude_execute_status

Polls an async job for its status or final result, waiting up to wait_seconds before returning RUNNING or completion. Use it after starting a job to retrieve output without blocking indefinitely.

Instructions

Long-poll the status or final result of an async job started with claude_execute_start (or agy_plan / agy_execute / agy_verify with async_mode=true). Waits up to wait_seconds (default 30s, max 120s) for completion before returning RUNNING or final result.

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": {
      "job_id": "<job_id>"
    },
    "name": "claude_execute_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesJob ID returned by an async start call (or active_job_id from BUSY).
wait_secondsNoMaximum seconds to wait for job completion before returning RUNNING (default: 30, max: 120).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it discloses that the call blocks (long-poll), returns early with RUNNING rather than blocking indefinitely, and bounds the wait by wait_seconds (default 30s, max 120s). It is silent on error behavior for an unknown or expired job_id and on whether repeated polling is safe, which leaves a real gap for a no-annotation tool.

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 front-loaded sentences with no filler, and the blocking/timeout behavior that most affects agent behavior comes first. The parenthetical "(default 30s, max 120s)" duplicates the schema verbatim, a small redundancy.

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?

No output schema exists, so the description must convey return values, and it does at the right level: either RUNNING or the final result. What is missing is the shape of the final result payload and failure/expired-job outcomes, which for a polling tool an agent would benefit from knowing.

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 job_id (including the BUSY/active_job_id hint) and wait_seconds bounds are already documented structurally; the description largely restates the default and maximum. It does add the framing that wait_seconds controls how long the long-poll blocks before yielding RUNNING, but that is marginal over the schema.

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?

States a specific verb+resource ("Long-poll the status or final result of an async job") and ties it to the exact originating tool, claude_execute_start, plus the agy_* async variants. An agent can distinguish it from siblings like claude_execute (sync) or claude_execute_cancel without opening any 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?

Clearly establishes the context of use: only after an async job was started via claude_execute_start or agy_plan/agy_execute/agy_verify with async_mode=true. It does not state exclusions, e.g. that cancel or handoff should be used instead of polling when the job should be abandoned, so guidance is strong but not complete.

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