Skip to main content
Glama

Read a job

job_read
Read-onlyIdempotent

Read-only: the status and output of a long-running job (exec with background: true, a publish, an import, an export). action "get": pass offset = the output_length you already have, to get only new output; wait_seconds up to 30 waits for the job to finish first, instead of calling again and again. To stop a job use the job tool.

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

Input Schema

NameRequiredDescriptionDefault
actionYes
job_idYes
offsetNo
projectNoNot needed: the job id is enough.
wait_secondsNoget: wait up to this long (at most 30 seconds) for the job to finish before answering.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered structurally. The description adds real behavioral context: the polling/offset model, the 30-second ceiling on blocking waits, and that stopping is out of scope. It stops short of describing the returned status/output structure, which matters for a job-inspection tool.

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?

Front-loads 'Read-only' and the resource, then moves to how-to-poll details in a compact run of sentences with no filler. Every clause carries either scoping, polling semantics, or an alternative route.

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?

With five parameters, no output schema, and a query-style tool, the description covers the call shape and the polling idiom well, including the hint that offset corresponds to an output_length field in the response. It could say more about what the status values look like or when the job is considered finished, but nothing critical to invoking it is absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 40%, and the description compensates well for the key gap: offset is defined semantically as 'the output_length you already have', which the schema leaves undocumented, and wait_seconds is framed as a bounded block-until-finish parameter. job_id and action are self-evident, so the remaining undocumented surface is minor.

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 (read status and output of a long-running job) and enumerates the concrete job sources (exec with background: true, publish, import, export). It also names the boundary against the sibling 'job' tool for stopping, so the agent can place it 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit operational guidance: use action "get" with offset set to the output_length already held to fetch only new output, and use wait_seconds (max 30) to block rather than re-polling. It also routes the stop case to the 'job' tool, covering the main alternative behavior an agent might confuse with this one.

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