Skip to main content
Glama

get_job

Read-only

Read and monitor a script or capture-sweep job: check state, runtime, recent output, final result, or error, and optionally wait for it to finish or change state.

Instructions

Read a job run_script_job or capture_sweep started: its state, how long it has run, its last line and the lines it printed since the last read; once it has ended, its result, or its error and traceback, and what it printed, each stream's last 200 lines. A sweep's result is one line: its folder, and the shots that came out black or failed; its message says which shot it is on, and its last line, whatever its end, says what it took.

States: working; cancelling, while its cleanup runs after a cancel; completed; failed; cancelled. With wait, the call returns when the job ends or changes state, or after that many seconds, so a long job is waited for without a call every few seconds. With no job_id it reads the running job or the last one, so a job is found again after the conversation was compacted. Reading changes nothing in Kit.

Input Schema

NameRequiredDescriptionDefault
waitNoSeconds to wait for the job to end or change state, at most 100; new lines don't end it, and other calls through this server wait meanwhile
job_idNoThe id run_script_job or capture_sweep answered, such as j3; the running or last job when empty

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.1

TDQS

A4.2/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, but the description goes further by enumerating the state machine (working, cancelling, completed, failed, cancelled), explaining what a sweep's result contains (folder, black or failed shots, current shot message), and stating that reading changes nothing in Kit. That is meaningful behavioral context beyond the annotations, though it repeats the read-only point the hint already makes.

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?

The purpose is front-loaded in the first clause, and each sentence carries useful information about states, waiting, and sweep results. The prose is dense and somewhat run-on, with several clauses chained into single sentences, which costs some readability but not enough to waste space.

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?

For a two-parameter read tool with an output schema, the description covers everything an agent needs: what is returned in each phase, the full state list, the wait semantics, and the fallback behavior when job_id is absent. It also pre-empts the sweep-specific output shape, leaving no material gaps.

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 parameters are already fully documented, including the wait ceiling of 100 seconds and the meaning of an empty job_id. The description echoes those semantics ('With wait, the call returns when the job ends or changes state', 'with no job_id it reads the running job or the last one') but adds little beyond what the schema descriptions already say, so baseline 3 is appropriate.

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?

The description opens with a specific verb and resource ('Read a job run_script_job or capture_sweep started') and enumerates what it returns: state, runtime, last line, printed lines, result or error, and per-stream output. It explicitly names the sibling tools that create such jobs, so an agent can distinguish it from cancel_job or get_logs without opening a 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?

It gives clear when-to-use context: the wait parameter is explained as a way to wait for a long job 'without a call every few seconds', and omitting job_id is framed as recovering the running or last job after conversation compaction. It stops short of naming cancel_job as the alternative for stopping a job or stating when-not to use it, so it 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.