Skip to main content
Glama

list_work_plans

Read-only

Lists the work plans of the project with progress, refinement, readiness and the number of blocking dependencies; the total is exact and limit/offset page through it. A work plan is a named list of tasks (a sprint, an MVP milestone): NOT the planning tool propose_plan, NOT a canvas dependency link between blocks. A task belongs to a plan by the label plan: followed by the plan code; progress, refinement and readiness are COMPUTED at read time and not stored. phase: "refine" is the queue of the capable agent: every plan not finished or cancelled that still holds unrefined tasks (a plan pret or en-cours with an unrefined task is flagged drift), with its first unrefined tasks and what each misses. phase: "execute" is the queue of the executing agent: the plans pret or en-cours with no blocking dependency, with the tasks claim_task would accept from the plan's holder (its connection plus its agent name; while a claim lives, every other caller gets plan-held on them) that are also refined, in claiming order, and blockedPlans for the plans held back with the cause. summary answers "is every task in a plan?": unplannedTasks (open tasks with no plan:* label), multiPlanTasks and orphanPlanLabels (labels that name no plan). Cancelled plans appear only with status: ["annule"] or readiness: ["cancelled"]. execution (gatesClaims: true) says the EXECUTION GATE is live: the tasks that carry this plan's label are handed out by claim_task and list_tasks({ executable: true }) only while the plan is pret or en-cours, has no blocking dependency, no other identity leads it under a live claim and the task itself is refined; otherwise claim_task refuses them with plan-not-ready and planGate. Tasks without a plan label are unaffected. It is guidance for the claim protocol, not a lock. An edge whose prerequisite is a DOCUMENT is never read as settled (the validation of documents is not read yet): an existing document reads open (blocking, reason document-not-read), a deleted one target-missing; the response carries limits when it applies. An ARCHIVED prerequisite that was not done BLOCKS (target-archived), here and in claim_task / executable alike, until a human lifts it through a decided arbitration. Modifies nothing.

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

Input Schema

NameRequiredDescriptionDefault
limitNoDefault: 200 (max 200).
phaseNo`refine`: the queue of the refining agent (plans not finished or cancelled that still hold unrefined tasks). `execute`: the queue of the executing agent (plans `pret` or `en-cours` with no blocking dependency). Adds a `queue` per plan.
offsetNoSkip the first N. `total` and `hasMore` say whether anything is left.
sortByNoDefault: `position` (plans without a position last), then code. `dueOn` puts plans without a due date last.
statusNoKeeps the plans in one of these statuses. Default: every status except `annule`, which appears only when asked. Refused together with `phase`.
versionNoKeeps the plans of exactly this version label (no ordering or grouping of versions).
readinessNoKeeps the plans in one of these readinesses (`to-compose`, `to-refine`, `blocked`, `ready`, `finished`, `cancelled`).
tasksPerPlanNoTasks listed per plan in `queue` (default 20, max 100). Only with `phase`.
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare a read-only, non-destructive, closed-world operation, and the closing 'Modifies nothing' is consistent with that. Beyond annotations it discloses substantial behavior: progress/refinement/readiness are computed at read time, `total` is exact, document-prerequisite edges never read as settled, and archived-but-undone prerequisites block with `target-archived` until human arbitration. The execution-gate paragraph is accurate but leans toward explaining `claim_task`'s behavior rather than this tool's.

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

Conciseness2/5

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

The content is valuable but delivered as a single dense wall of text with nested backtick jargon, so the core purpose, the phase modes, and the edge-case rules are not front-loaded or separable. Much of the execution-gate and prerequisite-edge detail belongs to `claim_task` and `list_tasks` and crowds out this tool's own contract.

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

Completeness5/5

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

For a nine-parameter, output-schema-less listing tool, the description covers what the agent needs: the response envelope (`total`, `hasMore`, per-plan `queue`, `blockedPlans`, `summary` fields, `limits`), the meaning of computed fields, and the behavioral exceptions. Nothing required to call or interpret it correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the schema already documents each parameter including the `phase` enum. The description still adds cross-parameter meaning the schema does not convey: `status` and `phase` are mutually exclusive, cancelled plans are hidden unless requested, and `limit`/`offset` interact with an exact `total`/`hasMore`.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Lists the work plans of the project') and immediately states the returned fields (progress, refinement, readiness, blocking dependency count). It actively disambiguates from siblings by excluding `propose_plan` and canvas dependency links, and defines what a work plan is via the `plan:` label rule.

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

Usage Guidelines5/5

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

Gives explicit routing between the two modes: `phase: "refine"` is the refining agent's queue, `phase: "execute"` is the executing agent's queue, and the schema-backed rule that `status` is refused with `phase` is restated. It also states that cancelled plans appear only when explicitly asked for, which prevents a common false-negative read.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.