Skip to main content
Glama

Read the terminal ZCode task result

zcode_result

Read the persisted TaskResult of a finished delegated task, returning TASK_NOT_FINISHED before a terminal state. Use it to verify reported changes and decisions before accepting the work.

Instructions

Read the persisted TaskResult for a finished task. Returns TASK_NOT_FINISHED before a terminal state. 'completed' is not a the calling host PASS: files_changed, tests, and decisions are normalized claims from the subordinate report and must be verified independently. Results describe Bridge/ZCode execution only: status 'completed' means the invocation and report normalization finished, NOT that the calling host accepted the work. the calling host must independently review the workspace diff and checks before deciding PASS.

Input Schema

NameRequiredDescriptionDefault
task_idYes

Output Schema

NameRequiredDescriptionDefault
testsYes
issuesYes
statusYes
attemptYes
summaryYes
task_idYes
exit_codeYes
error_codeNo
session_idYes
started_atYes
finished_atYes
zcode_outputYes
files_changedYes
report_candidateNo
needs_master_decisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the TASK_NOT_FINISHED sentinel, explains that 'completed' reflects invocation/normalization rather than host acceptance, and flags files_changed/tests/decisions as unverified claims. It does not address permissions, idempotency, or any other error modes.

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?

The purpose is front-loaded, but the core warning that 'completed' is not a host PASS is restated three separate ways across consecutive sentences. That redundancy inflates length without adding new information, and the grammar in one clause is garbled.

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 shape need not be described, and the description instead covers the semantic traps an agent must know about terminal states and claim verification. It leaves the discovery path for task_id and any access prerequisites unstated.

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 0% for the single task_id parameter, and the description adds no syntax, format, or sourcing guidance for it. The parameter name is nearly self-explanatory, which keeps this above a 2, but nothing compensates for the documentation gap.

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 verb and resource ('Read the persisted TaskResult for a finished task') and states the pre-condition that yields TASK_NOT_FINISHED, which implicitly separates it from status-polling siblings like zcode_status. It stops short of naming any sibling explicitly, so an agent must infer the routing.

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?

It establishes that this tool applies to a 'finished task' and warns about interpreting 'completed', but never says when to prefer it over zcode_status or zcode_events, nor how to obtain the required task_id. Usage is implied rather than directed.

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