Skip to main content
Glama

get_job

Read-only

Check a job's status, progress, remaining time, logs and exit code, or list running and recently finished jobs for a session; optionally wait up to 50 seconds for completion.

Instructions

A job's status (starting, running, done, failed, stopped, lost), progress, time left, last log lines, exit code and files. wait_s waits for the end in this call (other takes tools wait too); call again to keep waiting. With session and no id: the running jobs and those that ended in the last day.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoJob id from run_job, higgsfield or replicate.
wait_sNoSeconds to wait for the job to end, 0 to 50. Default 0.
sessionNoSession: 'Project/folder', an absolute path or its id (from get_session). Old paths still work.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2026.11.11
    • changedInput schema / properties / session / description
      Previous value: -"Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move."New value: +"Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work."
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description still adds real behavior: wait_s blocks within this call, the wait is bounded (0-50s per the schema) and must be repeated to keep waiting, and the session-only mode returns a bounded recent window rather than all history. The only gap is that it does not describe ordering or pagination for the multi-job listing mode.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short and front-loads the return payload, which is the right priority. But the sentence 'wait_s waits for the end in this call (other takes tools wait too)' is telegraphic and ambiguous, costing a re-read; tightening that one clause would make the whole definition crisp.

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 no output schema, the description correctly carries the return-value burden by enumerating the status enum, progress, logs, exit code and files. All three parameters are accounted for and the two calling modes are distinguished. It could be complete with one more line on what the multi-job listing returns.

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 100%, so the baseline is 3, but the description adds meaning beyond the schema: it explains the interaction of session with an absent id (list mode) and the repeat-call semantics of wait_s. The id parameter's provenance is already in the schema, so nothing extra is lost there.

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 names the resource (a job) and enumerates exactly what is returned: status values, progress, time left, last log lines, exit code and files. That is far more specific than a tautology. It stops short of a clean verb-first framing and does not explicitly position itself against run_job or stop_job, so it is clear but not sibling-differentiating.

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?

It does give conditional usage for the session-without-id case ('the running jobs and those that ended in the last day') and explains the polling pattern ('call again to keep waiting'). However, it never states when to call this versus run_job, stop_job, or higgsfield_status, and the parenthetical 'other takes tools wait too' is too vague to route an agent.

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