Skip to main content
Glama

worker_inspect

Read persisted job artifacts or full git diffs on demand to review logs, prompts, stderr, events, and code changes without cluttering normal briefs.

Instructions

Inspect persisted raw artifacts or full git diff for a job without polluting normal briefs.

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

Input Schema

NameRequiredDescriptionDefault
job_idYesTarget job_id.
sectionYesWhich artifact or diff to read.
max_charsNoMaximum characters to return (default 12000; 20000 for diff).
tail_linesNoOptional trailing lines to read (useful for events/stderr).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose a real behavioral trait beyond structured fields: this read does not contaminate the job's normal brief output. However, it never explicitly affirms read-only/non-mutating behavior, says nothing about whether the job must be completed for artifacts to exist, and gives no sense of return shape beyond the section enum.

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?

A single front-loaded sentence with zero filler; the resource comes first and the differentiating constraint follows. Nothing is redundant with the schema.

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?

For a four-parameter read tool with fully documented schema and no output schema, the description establishes scope and the non-interference guarantee an agent needs. Minor gaps remain around artifact availability and result size, but the schema covers truncation controls.

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%, so every parameter is already documented with constraints and defaults, making 3 the baseline. The description adds only the mapping of 'artifacts' and 'full git diff' onto the section choices, with no extra syntax or format guidance.

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?

States a specific verb and resource: 'Inspect persisted raw artifacts or full git diff for a job.' That clearly separates it from status/review/cancel siblings, which operate on job state rather than stored artifacts. It stops short of naming which sibling to use for the non-raw view, 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?

The clause 'without polluting normal briefs' implies the usage context (out-of-band deep dives into raw data rather than routine status checks), but there is no explicit when-to-use/when-not statement and no named alternative among worker_status or worker_review. Usage must be inferred.

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