Skip to main content
Glama

job_status

Check OCR job state and progress in one call, waiting up to 300 seconds; when complete, save the result as JSON, text, Markdown, hOCR, or PDF.

Instructions

State and counts of a job. Holds until the job is done or wait_seconds (0 to 300) are over, and reports progress meanwhile: one call is enough, do not poll in a loop; if state is still running call again. When state is done, check problem (pages failed or not run) and tell the human. format (json, text, md, hocr, pdf) saves the result when done.

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

Input Schema

NameRequiredDescriptionDefault
formatNojson, text, md, hocr or pdf: save the result when done
job_idYesfrom submit_job
out_dirNofolder for the result file; not allowed if the human set OCR_OUT_DIR
wait_secondsNo0 to 300: hold until the job is done

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the blocking/hold semantics up to wait_seconds, the fact that a single call suffices instead of looping, the side effect of writing a result file when format is set, and the need to surface failures. It omits permission/auth requirements and what happens on timeout or error.

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-loaded with purpose and wait behavior, then the polling rule, then the post-completion check, then output saving. Dense and every sentence carries operational information; no filler.

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?

For a 4-parameter polling tool with no output schema, it covers the state/counts returned, the meaning of 'problem', blocking behavior, and the file-saving side effect of format. Remaining gaps (error/timeout behavior, out_dir conflicts) are minor.

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 wait_seconds' 0-300 range and format's enum-like list are already documented. The description reinforces these but adds little genuine meaning beyond the schema, so the 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 concrete verb-and-resource ('State and counts of a job') plus the blocking wait behavior, which is more than a restatement of the name. It does not explicitly distinguish itself from siblings like get_result or cancel_job, so an agent must infer the boundary.

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 operating instructions: one call is enough, do not poll in a loop, call again only if the state is still running, and when done check 'problem' and report to the human. What's missing is routing guidance against alternatives such as get_result or cancel_job.

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