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

List Unified ZCode Sessions

zcode_list_sessions
Read-only

List and paginate sessions across ZCode Desktop, CLI, and worker runtime to inspect live PID status, model/mode, todo counts, and latest assistant previews.

Instructions

List sessions across zcode-worker-mcp, ZCode Desktop, and ZCode CLI with live runtime PID checks, model/mode info, todo counts, pagination, and latest assistant previews.

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_list_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum sessions to return per page (1..100, default 20).
offsetNoNumber of sessions to skip for pagination (default 0).
workspaceNoOptional workspace directory filter.
active_onlyNoWhen true, return only queued, running, or waiting_input sessions.
include_deletedNoInclude sessions marked deleted in ZCode SQLite.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover readOnlyHint=true and openWorldHint=false, so the description earns credit for the extra context it supplies: results are aggregated across three distinct backends and involve 'live runtime PID checks', which tells the agent the output is state-dependent and reflects processes at call time. It also discloses that sessions can be soft-deleted and hidden by default, context the annotations do not carry. It stops short of noting cost or latency implications of the live PID probing.

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

Conciseness4/5

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

A single front-loaded sentence that leads with the core action and scope, then lists capabilities. It is dense but every clause adds information; there is no filler or restatement of the name. A minor cost is that return-shape details are packed into the same sentence as scope, slightly blurring action vs. output.

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?

With no output schema, the description usefully compensates by enumerating what each session record includes (PID status, model/mode, todo counts, latest assistant preview) and noting pagination. Combined with the fully documented input schema, an agent has enough to call it correctly and interpret the result. It lacks only guidance on result ordering and how it relates to the sibling inspection tool.

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 all five parameters (limit, offset, workspace, active_only, include_deleted) are already fully documented with defaults and ranges. The description adds no parameter-level meaning beyond the schema; the features it enumerates (model/mode, todo counts, previews) are return-value attributes rather than inputs. Baseline 3 applies.

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 gives a specific verb and resource ('List sessions') and states the exact scope: sessions across zcode-worker-mcp, ZCode Desktop, and ZCode CLI, plus what each entry carries (PID status, model/mode, todo counts, previews). An agent immediately knows this is an enumeration tool rather than a single-session inspector. It does not name a sibling to differentiate against (e.g. zcode_inspect_session), which keeps it out of 5 territory.

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: the mention of pagination, filters, and multi-source coverage signals a browse/overview role, so an agent can infer this is the discovery entry point before drilling into one session. There is no explicit when-to-use, when-not-to-use, or pointer to zcode_inspect_session for details on a specific session.

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