Skip to main content
Glama

Read run log

read_run_log
Read-onlyIdempotent

Read the redacted tail of a selected agent transcript log for a DevIntern run to review execution details and diagnose issues using its run ID and log name.

Instructions

The redacted tail of one harness (agent transcript) log of a run; names come from get_run's harnessLogs.

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>",
      "name": "<name>"
    },
    "name": "read_run_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesLog name from get_run
runIdYesRun id, as listed by list_runs

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.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description still adds real behavioral context beyond that: the content is redacted and only a 'tail' (truncated) portion is returned, and it is scoped to one harness rather than the whole run. It does not state how much tail is returned or whether truncation is signalled.

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?

A single compact sentence that front-loads the return content and appends the parameter provenance. No filler, though the phrasing is dense enough that the read action itself is only implicit in the title.

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?

With an output schema present, return shape need not be described, and annotations cover safety. The description supplies the remaining essentials: what is returned (redacted tail of one harness log) and where the required name comes from. Nothing an agent needs to call it 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 both parameters are already documented in the schema. The description adds only a marginal refinement — that the name comes specifically from get_run's harnessLogs field rather than any log list. That is the baseline 3 case where the schema does the heavy lifting.

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 a specific resource and scope: 'the redacted tail of one harness (agent transcript) log of a run'. An agent can tell this returns a single harness log rather than an artifact or worker log. It stops short of explicitly contrasting with siblings like read_worker_logs, so it is clear but not fully differentiated.

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?

Usage is only implied: the agent learns it needs a log name 'from get_run's harnessLogs', which is a useful prerequisite pointer. There is no explicit statement of when to prefer this over read_worker_logs or read_run_artifact, and no exclusions or conditions.

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