Skip to main content
Glama

Read worker logs

read_worker_logs
Read-onlyIdempotent

Retrieve recent DevIntern worker log entries from capture files, with optional level and line filters, to inspect run activity and diagnose issues.

Instructions

Most recent worker log entries from the worker's capture files.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read_worker_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNo
linesNoEntries to return (default 500)

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description contributes only that results come from 'capture files' and are ordered most-recent-first; it does not mention truncation, default line count, or whether the level filter applies before or after the line cap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no wasted words, but it is a sentence fragment rather than a front-loaded statement of purpose and use. Brevity here reflects under-specification rather than economy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/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 shape need not be explained, and annotations carry the safety profile. Still, for a two-parameter tool with an unexplained enum and no usage guidance, the description omits what an agent needs to choose it over read_run_log and to set 'level' correctly.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 50%: the 'level' enum has no description at all, and the description never mentions log-level filtering or what 'all' means relative to the other values. It also does not clarify that 'lines' is a cap applied after filtering, leaving the interaction between the two parameters undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The phrase 'Most recent worker log entries from the worker's capture files' names the resource and the source, but it is a noun fragment with no verb and gives no hint of differentiation from the sibling read_run_log. An agent can infer it reads logs, but the distinction between 'worker logs' and 'run logs' is left to guesswork.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this tool versus read_run_log, get_worker_status, or read_run_artifact, and no prerequisites or exclusions are given. The agent must infer the selection criteria entirely from the name.

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