Skip to main content
Glama
zcode-worker-mcp
by Hope-08

Watch a ZCode Session for Progress or Completion

zcode_watch_session
Read-only

Poll a ZCode session or task for progress updates up to 25 seconds and return recent tool calls and assistant messages—ideal for periodic checks without background commands.

Instructions

Short-poll (<=25s) for periodic progress checks or environments without background commands. For zero-token completion wakeup, prefer running zcode-worker-mcp wait <task_id> in background.

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": "zcode_watch_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idNoManaged task_id (optional if session_id is provided).
session_idNoZCode session ID such as 'sess_...'.
tool_limitNoMax recent tool calls to include.
interval_msNoLocal polling interval in milliseconds (300..3000).
wait_secondsNoSeconds to wait for state change before returning (0..25).
message_limitNoMax recent assistant messages to include.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true, so safety is already covered. The description adds that this is a short-poll capped at 25s and points to a zero-token background alternative, but does not describe what is returned, timeout behavior, or what "state change" means.

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?

Two sentences with no wasted words. The short-poll scope and purpose come first, followed immediately by the alternative usage guidance.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six parameters and no output schema, the description should clarify what a watch call returns and how state-change detection works. It covers when to use the tool but leaves the agent without a clear picture of response contents or timeout semantics.

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 the schema already documents all six parameters. The description only repeats the <=25s polling constraint and adds no syntax, format, or interaction details beyond the schema.

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 mechanism and resource: "Short-poll (<=25s)" for "periodic progress checks." Makes the polling nature clear, but does not explicitly distinguish this tool from sibling zcode_inspect_session.

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

Usage Guidelines4/5

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

Gives explicit when-to-use conditions ("periodic progress checks or environments without background commands") and a clear when-not-to-use alternative ("For zero-token completion wakeup, prefer running `zcode-worker-mcp wait <task_id>` in background"). It does not compare with sibling inspection tools, but the guidance is actionable.

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