Skip to main content
Glama

Read run artifact

read_run_artifact
Read-onlyIdempotent

Retrieve the redacted content of a specific DevIntern run artifact using its run ID and artifact ID, so you can inspect generated outputs while binary content remains unavailable.

Instructions

The redacted content of one run artifact; ids come from get_run's artifacts. Binary content is null.

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": {
      "runId": "<runId>",
      "artifactId": "<artifactId>"
    },
    "name": "read_run_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYesRun id, as listed by list_runs
artifactIdYesArtifact id from get_run

Output Schema

NameRequiredDescriptionDefault
nameNo
contentNo
messageNo
errorCodeNoSet on failure: stable error code
nextStepsNoSet on failure: steps to run next (`command` runs on the worker host)
truncatedNo
totalBytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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, idempotentHint and destructiveHint=false, so safety is covered. The description still adds real behavioral context beyond them: content is redacted, and binary artifacts return null rather than throwing or returning bytes, which directly shapes how an agent interprets the result. Auth requirements and size limits are not covered, keeping it below a 5.

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?

Two short clauses with no filler; the redaction and null-binary caveats are front-loaded where an agent will see them. The opening is a noun fragment rather than a complete statement, which is slightly less clear than an explicit verb would be, but nothing is wasted.

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?

An output schema exists, so return-value documentation is not required, and the description still flags the two non-obvious return traits (redaction, null binary). For a two-parameter read tool this is close to sufficient; only error/not-found behavior is left unaddressed.

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% and both parameters are documented in-schema, including the same provenance hints (list_runs for runId, get_run for artifactId). The description's 'ids come from get_run's artifacts' restates rather than extends the schema, so baseline 3 applies.

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?

Names the specific resource (one run artifact) and the scope of what is returned ('the redacted content'), which separates it from log-reading siblings like read_run_log. It never uses an explicit verb and doesn't name the log alternative, so differentiation is implied rather than stated.

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?

Gives a concrete entry condition – the artifactId must come from get_run's artifacts – which tells the agent how to reach this tool. It offers no when-not guidance or explicit routing against read_run_log or read_worker_logs, so the choice between artifact and log readers is left to inference.

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