Skip to main content
Glama

Job summary, record or receipt

get_job_summary
Read-only

Look at one job – the single tool for a job's state and details. detail=short (default) is the quick check for deciding the next step: state, exit code, duration, cost, result file names, the last log lines and a suggested next step. detail=full is the complete record: inputs (without env values), timing, error, every result file with size and SHA-256, and the files that were not saved and why. detail=receipt is the execution receipt for audit or reporting: inputs with input file checksums, the exact template build (image digest, disk checksum), runtime, measured CPU time and memory, result files and log with SHA-256, cost; final=true once the job has ended and the receipt no longer changes. To wait for a job use the waiting tool instead of calling this repeatedly; the command's output is read with the job log tool, and a job whose ID you no longer have is found by listing your jobs. An unknown job ID (or one of another account) returns an error.

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_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoshort (default), full or receipt.
job_idYesJob ID (job_…) returned by run_job.

Output Schema

NameRequiredDescriptionDefault
idYesJob ID.
costNoshort: cost so far, in the account's billing currency.
doneYesThe job has ended.
nextNoshort: suggested next step.
finalNoreceipt: the job has ended and the receipt will not change.
detailYesWhich view this is.
recordNofull: the complete job record – inputs, timing, error, artifacts (name, size, sha256), artifacts_skipped, cost.
statusYesState: queued, running, completed, failed, cancelled …
log_tailNoshort: last lines of the log.
artifactsNoshort: number of saved result files.
exit_codeNoshort: exit code of the command (after it ended).
duration_sNoshort: run time in seconds.
artifact_namesNoshort: names of the first saved result files.
execution_receiptNoreceipt: inputs, template_build, runtime, exit_code, resource_usage, artifacts with sha256, log checksum, cost.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / execution_receipt / description
      Previous value: -"receipt: inputs, runtime, exit_code, resource_usage, artifacts with sha256, log checksum, cost."New value: +"receipt: inputs, template_build, runtime, exit_code, resource_usage, artifacts with sha256, log checksum, cost."
  2. Changed13 schema fields changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "short (default), full or receipt.",
      +  "enum": [
      +    "short",
      +    "full",
      +    "receipt"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / artifact_names / description
      Previous value: -"Names of saved result files."New value: +"short: names of the first saved result files."
    • changedOutput schema / properties / artifacts / description
      Previous value: -"Number of saved result files."New value: +"short: number of saved result files."
    • changedOutput schema / properties / cost / description
      Previous value: -"Cost so far, in the account's billing currency."New value: +"short: cost so far, in the account's billing currency."
    • addedOutput schema / properties / detail
      Added value: +{
      +  "description": "Which view this is.",
      +  "enum": [
      +    "short",
      +    "full",
      +    "receipt"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / duration_s / description
      Previous value: -"Run time in seconds."New value: +"short: run time in seconds."
    • addedOutput schema / properties / execution_receipt
      Added value: +{
      +  "description": "receipt: inputs, runtime, exit_code, resource_usage, artifacts with sha256, log checksum, cost.",
      +  "type": "object"
      +}
    • changedOutput schema / properties / exit_code / description
      Previous value: -"Exit code of the command (after it ended)."New value: +"short: exit code of the command (after it ended)."
    • addedOutput schema / properties / final
      Added value: +{
      +  "description": "receipt: the job has ended and the receipt will not change.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / log_tail / description
      Previous value: -"Last lines of the log."New value: +"short: last lines of the log."
    • changedOutput schema / properties / next / description
      Previous value: -"Suggested next step."New value: +"short: suggested next step."
    • addedOutput schema / properties / record
      Added value: +{
      +  "description": "full: the complete job record – inputs, timing, error, artifacts (name, size, sha256), artifacts_skipped, cost.",
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "status",
      -  "done"
      -]New value: +[
      +  "id",
      +  "status",
      +  "done",
      +  "detail"
      +]
  3. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the read-only annotations by disclosing that an unknown or foreign-account job ID returns an error, that inputs omit env values, and that final=true means the receipt no longer changes. It does not state rate limits or what the error payload looks like, but the immutability and error semantics are the behaviorally important parts.

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-loads the core purpose and default mode, and nearly every clause carries routing or content information. It is a single dense paragraph with semicolon-chained clauses, though, which makes the alternative-tool guidance slightly harder to scan than a short list would.

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 modes, default, error case, immutability, and routing to all three relevant siblings. Nothing an agent needs to call it correctly is missing, and return-shape detail is rightly left to the output schema.

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

Parameters5/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 far exceeds the schema's one-line 'short (default), full or receipt' by enumerating the contents of each mode — from state/exit code/log tail to SHA-256 file digests, image digest and measured CPU/memory. That is the meaning an agent needs to pick a mode.

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 and resource — 'Look at one job' — and frames it as 'the single tool for a job's state and details,' which separates it from get_job_logs, list_jobs, and wait_jobs. An agent can identify what this returns 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 per-mode guidance (short is the quick check for deciding the next step, full is the complete record, receipt is for audit/reporting) and names alternatives with the conditions that select them: 'To wait for a job use the waiting tool instead of calling this repeatedly,' the log tool for command output, and listing jobs when the ID is lost.

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