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

Start (or Resume) a Detached ZCode Worker Task

zcode_start

Dispatch a structured coding or analysis task to a detached ZCode worker that survives MCP restarts, with per-task model selection and optional session resumption.

Instructions

Dispatch a structured coding or analysis task to a detached ZCode worker that survives MCP restarts. Supports per-task model/provider/reasoning selection and optional resume_session_id.

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": {
      "task_id": "<task_id>",
      "workspace": "<workspace>",
      "objective": "<objective>"
    },
    "name": "zcode_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoZCode execution mode: yolo, build, edit, plan, or guarded.yolo
modelNoOptional per-session model override; omit to use ZCode's current default.
contextNoOptional additional context, baseline commit, or constraints.
task_idYesUnique managed task identifier (letters, numbers, '.', '_' and '-').
objectiveYesClear goal statement describing what ZCode should accomplish.
workspaceYesAbsolute path to the project repository root.
timeout_secNoWorker execution timeout in seconds (60..14400, default 3600).
requirementsNoConcrete implementation requirements.
allowed_pathsNoWorkspace-relative paths ZCode is permitted to modify.
context_filesNoKey reference file paths ZCode should read first.
test_commandsNoBuild, lint, or test commands ZCode should run before finishing.
worktree_pathNoOptional isolated git worktree execution path when running concurrent tasks on one repository.
forbidden_pathsNoPaths ZCode must never create, modify, or delete.
resume_session_idNoOptional existing ZCode session ID (e.g. sess_...) to resume instead of creating a brand new session.
acceptance_criteriaNoVerifiable completion criteria checked independently after completion.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the description only needs to add nuance. It contributes the restart-survival property and per-task model/provider/reasoning override capability, but never explains that the dispatch is asynchronous, what state the task starts in, or that the worker mutates files under allowed_paths — relevant since destructiveHint=false could otherwise be read as 'no changes to disk'.

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 that names the action, the key durability guarantee, and the two main customization axes. Nothing redundant, no restatement of the title's 'Start (or Resume)' framing.

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?

For a 15-parameter tool with a nested model object and no output schema, the description omits what dispatch returns (a task/session handle?) and what the caller should do next (watch, inspect, cancel). Those are the pieces an agent most needs for a detached async worker, and the remaining gaps are only partially covered by the richly described schema.

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% and every parameter carries its own description, so the schema does the heavy lifting and the baseline of 3 applies. The description restates the model/provider/reasoning override and the resume_session_id behavior without adding format or constraint detail beyond the schema. It does at least clarify that the model block is optional and defaults to ZCode's current default.

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 ('dispatch a structured coding or analysis task to a detached ZCode worker') plus the distinguishing trait that the worker survives MCP restarts. It also signals the resume case via 'optional resume_session_id'. It stops short of naming how this differs from siblings like zcode_continue or zcode_reply, so an agent still has to infer the split.

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: 'detached ... survives MCP restarts' hints at long-running or fire-and-forget work, and the resume clause hints at continuing an existing session. There is no explicit when-to-use / when-not, and no routing statement for the many lifecycle siblings (continue, reply, watch, cancel).

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