Skip to main content
Glama

Read a job output

read_job_artifact
Read-onlyIdempotent

Read one file a job kept (a path from list_job_artifacts). A text file up to 1 MB comes back inline as text; a larger or binary file comes back as url, a download link valid for an hour. Docs: https://www.runcrate.ai/docs/api-reference/jobs/download-a-job-output

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": {
      "id": "<id>",
      "path": "<path>"
    },
    "name": "read_job_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesJob ID
pathYesThe path list_job_artifacts gave, relative to the outputs directory, e.g. "metrics.json"
workspaceNoWorkspace ID (optional: defaults to the authenticated workspace)
environmentNoEnvironment name (optional: defaults to the environment this session acts in)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / env
      Removed value: -{
      -  "description": "Environment name (optional — defaults to main)",
      -  "type": "string"
      -}
    • addedInput schema / properties / environment
      Added value: +{
      +  "description": "Environment name (optional: defaults to the environment this session acts in)",
      +  "type": "string"
      +}
    • changedInput schema / properties / workspace / description
      Previous value: -"Workspace ID (optional — defaults to authenticated workspace)"New value: +"Workspace ID (optional: defaults to the authenticated workspace)"
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes well beyond them by disclosing the two return modes: inline text for text files up to 1 MB, and a URL download link valid for only an hour for larger or binary files. That expiry is operationally important context the agent could not infer from annotations or schema.

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 short clauses, front-loaded with the action and the path prerequisite, then the return-mode behavior, then a docs link. No redundant restatement of the title or annotations.

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?

There is no output schema, so the description carries the burden of explaining return values, and it does so precisely by distinguishing inline text from a one-hour URL. Combined with annotations covering the safety profile and a schema covering all four parameters, nothing needed to call this correctly is missing.

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 coverage is 100%, so id, path, workspace, and environment are already documented, including path formatting and defaults. The description reinforces that path must come from list_job_artifacts but adds no syntax or constraint detail beyond what the schema provides, so the baseline of 3 applies.

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 (read) and resource (one file a job kept), and disambiguates from the sibling list_job_artifacts by naming it as the source of the path argument. An agent can tell this apart from file_download and get_job_logs without opening any 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?

The parenthetical '(a path from list_job_artifacts)' establishes the prerequisite call sequence, which is real usage guidance. It stops short of explicit when-not guidance or naming alternatives such as file_download for artifacts not produced by a job.

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.