Skip to main content
Glama

get_job_status

Retrieves the status and result of a previously submitted DAIV job and returns any questions awaiting user input.

Instructions

Get the status and result of a previously submitted job.

Status is one of: QUEUED, READY, RUNNING, SUCCESSFUL, WAITING_INPUT, FAILED. WAITING_INPUT means the agent stopped to ask the user: question holds its questions and result their rendered text. To answer, call submit_job with the same repository, this response's thread_id, and the answer as prompt.

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": "get_job_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoWhen true, blocks until the job completes (up to 10 minutes) instead of returning immediately.
job_idYesThe job ID returned by submit_job.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the complete status enum, explains what WAITING_INPUT means in behavioral terms (the agent stopped to ask the user), and describes where the questions and rendered text live. It omits what happens on an invalid or expired job_id and does not mention the blocking wait behavior (left to the schema).

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?

Front-loaded with the core purpose, then the status enumeration, then the WAITING_INPUT follow-up path. Every sentence carries information; the status list is dense but earns its place since no enum is declared in the schema.

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?

An output schema exists, so return values need not be explained. The description covers the status lifecycle and the human-in-the-loop continuation path, which is the non-obvious part. Remaining gaps — invalid job_id handling and explicit polling guidance — are minor for a two-parameter status tool.

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 the schema already documents both job_id and wait. The description's thread_id and prompt references belong to submit_job, not this tool's parameters, so it adds no meaning beyond the schema for its own inputs. 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?

States a specific verb and resource: 'Get the status and result of a previously submitted job.' The singular 'a previously submitted job' implicitly distinguishes it from list-style siblings, but it never names an alternative (e.g., list_jobs) for discovery, so sibling differentiation is only implied.

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?

Gives explicit, actionable routing for the WAITING_INPUT case: call submit_job with the same repository, this response's thread_id, and the answer as prompt. It does not say when to use this tool versus list_jobs for finding jobs, so the guidance is strong but not exhaustive.

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