Skip to main content
Glama

Job status (optionally wait)

qa_job_status
Read-only

Track a background QA job by polling or long-polling for its status, progress details, and final result or error once it finishes.

Instructions

Poll or wait on a background job (qa_test_this, qa_prepare_target, qa_explore, qa_build run, ...): status, progressDetail, and result/error when finished (qa_test_this: state completed/blocked/unsafe/needs_input, reportUri, suite, smoke, health). waitMs long-polls until the job leaves "running" (else waited.timedOut:true).

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": {
      "sessionId": "<sessionId>",
      "jobId": "<jobId>"
    },
    "name": "qa_job_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYes
waitMsNoBlock up to this many ms for the job to finish (use 45000; capped at SWIPIUM_MAX_WAIT_MS, default 50000). Default 0 = return immediately.
sessionIdYes

Output Schema

NameRequiredDescriptionDefault
okYes
kindYes
errorNo
jobIdYes
stateYes
resultNo
statusYes
waitedNo
endedAtYes
terminalYes
startedAtYes
durationMsYes
failureCodeYes
artifactUrisNo
progressDetailNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv2.5.0
    • addedOutput schema / properties / durationMs
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / endedAt
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / failureCode
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / startedAt
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / state
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / terminal
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "ok",
      -  "jobId",
      -  "kind",
      -  "status"
      -]New value: +[
      +  "ok",
      +  "jobId",
      +  "kind",
      +  "status",
      +  "terminal",
      +  "state",
      +  "startedAt",
      +  "endedAt",
      +  "durationMs",
      +  "failureCode"
      +]
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds real behavior: what is returned (status, progressDetail, result/error), the qa_test_this terminal states (completed/blocked/unsafe/needs_input) plus reportUri/suite/smoke/health, and the waitMs long-poll termination with waited.timedOut:true. The only missing piece is polling cadence or how stale a running status can be.

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 dense sentences, front-loaded with the core action, with the job-type and wait details in parentheses. The parenthetical enumerations of return fields and states are slightly heavy but each carries real information.

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?

An output schema exists, so the description is not obligated to enumerate return values, yet it does so for the key job type and adds the terminal-state vocabulary and timeout behavior an agent needs to loop correctly. Nothing essential for calling this polling tool 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 coverage is only 33%: sessionId and jobId have no schema descriptions, and waitMs is documented in the schema itself (45000 recommendation, SWIPIUM_MAX_WAIT_MS cap, default 0). The description compensates for waitMs by explaining the long-poll semantics and the timedOut fallback, and jobId's meaning is inferable from the named producer tools, but sessionId is never explained anywhere.

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 opens with a specific verb pair and resource ('Poll or wait on a background job') and even names the producer tools (qa_test_this, qa_prepare_target, qa_explore, qa_build) whose jobs it observes. It does not distinguish itself from similarly named siblings like qa_status, qa_wait, or qa_job_cancel, so it falls short of full sibling differentiation.

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?

Usage is implied: call it after a job-producing tool returns an id, and set waitMs to block. There is no explicit when-to-use versus qa_status/qa_wait, and no guidance on when to prefer immediate polling over long-polling or when to use qa_job_cancel instead.

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