Skip to main content
Glama

Download job result file

download_job_artifact
Read-only

Return the content of one saved result file of a finished job (text as is, binary as base64; up to 1 MB – larger files via the REST API). Take the exact name from the job summary: artifact_names (first 10) or, with detail=full, every saved file with its size. Files inside a live sandbox are read with the file reading tool instead. A name that was not saved 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": "<name>"
    },
    "name": "download_job_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesResult file name as shown in the job summary, e.g. output/result.json
job_idYesJob ID (job_…) returned by run_job.

Output Schema

NameRequiredDescriptionDefault
nameYesFile name.
sizeYesSize in bytes.
job_idYesJob ID.
sha256YesSHA-256 of the file.
contentYesFile content (long text is shortened in the middle).
encodingYestext = content as is; base64 = binary file.
shortenedYesText content was shortened in the middle.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"File name as listed by list_job_artifacts, e.g. output/result.json"New value: +"Result file name as shown in the job summary, e.g. output/result.json"
  2. Changed2 schema fields changed
    • addedOutput schema / properties / shortened
      Added value: +{
      +  "description": "Text content was shortened in the middle.",
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "job_id",
      -  "name",
      -  "size",
      -  "sha256",
      -  "encoding",
      -  "content"
      -]New value: +[
      +  "job_id",
      +  "name",
      +  "size",
      +  "sha256",
      +  "encoding",
      +  "content",
      +  "shortened"
      +]
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, and the description still adds substantive behavior: text returned as-is, binary returned as base64, a hard 1 MB ceiling, and an error when the name was not a saved artifact. Those are exactly the operational facts an agent needs before calling, beyond the safety profile.

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?

Three sentences, each carrying distinct payload: what is returned, how to get the name, the alternative for sandbox files, and the failure mode. The core purpose is front-loaded and there is no filler or repetition.

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?

An output schema exists, so return values need no further explanation, yet the description still characterizes the payload encoding. Combined with the size limit, the name-sourcing path, and the error condition, nothing an agent needs to invoke this correctly is missing.

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 goes further by naming where the value comes from in the sibling summary call — artifact_names (first 10) or detail=full for the complete list with sizes — and by stressing the exact-match requirement. This adds real meaning over the schema's generic "as shown in the job summary".

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 ("Return the content of one saved result file of a finished job") plus the scope constraint that the job must be finished and the file saved. It also explicitly distinguishes itself from the file-reading sibling for live-sandbox files, so an agent can route correctly without opening either 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 when-to-use (finished job artifacts), explicit when-not-to-use ("Files inside a live sandbox are read with the file reading tool instead"), and a fallback for oversized files ("larger files via the REST API"). It also tells the agent where to obtain the required name, which removes the main source of invocation error.

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