Skip to main content
Glama

get_work_plan

Read-only

Reads ONE work plan by its code: fields, progress (total, todo, doing, blocked, done, archived, percent, completable — archived tasks reported apart, not counted in total), refinement (how many tasks are refined, which are not and what each misses), readiness (to-compose, to-refine, blocked, ready, finished, cancelled) and why, what it depends on and what depends on it (both sources, each edge with its state and whether it blocks), and warnings (multi-plan-tasks, document-missing, document-unreadable, cycle, ready-with-unrefined-tasks, blocked-for-long). blockedAge: active blocked tasks blocked for at least thresholdDays days (staleCount, the first 50 in stale with atLeastDays, longest first); no record says when a task became blocked, so the age counts from its LAST MODIFICATION (basis), a lower bound; unknownSinceCount counts blocked tasks without that date (not judged). frozenList: the list the closure checks — total, the first 200 tasks (counted, verdict, exitReason, engaged, and the task's real status and archived, null when it no longer exists) — and its drift from the labels: addedAfterFreeze (labelled after the freeze: counted by progress, not the closure) and labelLost (label removed from a frozen task: out of progress, still due at the closure). closureCheck runs the closure rule on the real tasks now, without exits: wouldClose, or reason, issueCount, byProblem and the first 20 issues (taskId, problem) naming every cause the closure would refuse, each to settle again or withdraw in exits; frozenList is null for a plan never frozen, { unreadable: true } if the frozen list could not be read. The anchored document shows only to a reader allowed to see it: deleted, or invisible to this reader, reads { found: false } (indistinguishable); archived and visible { id, found: true, archived: true }; a failed read { unreadable: true }. With includeTasks, tasksMore counts the active tasks not listed (the list stops at 200). The code is compared like the plan label (case and accents folded).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. 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. A task is REFINED when its only maturite:* label is maturite:pret and it has a complexity, a note of 40+ characters and waits for no human; maturite:pret on a task failing the rest does not count. 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 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. An unknown code is refused and the closest codes are listed. Modifies nothing.

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": {
      "planCode": "<planCode>"
    },
    "name": "get_work_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planCodeYesThe code of the work plan (lowercase letters, digits and hyphens), as `list_work_plans` returns it.
includeTasksNoAlso returns the tasks that carry the plan label, `{id, title, status}`, archived ones excluded (`includeCountedIds` gives every counted identifier). Default: no.
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).
includeCountedIdsNoAlso returns `countedIds`: the identifiers counted in `progress.total`, so that the labeller can check the count. Default: no.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / includeTasks / description
      Previous value: -"Also returns the tasks that carry the plan label, `{id, title, status}`, archived ones excluded; the server caps the list (`includeCountedIds` gives every counted identifier). Default: no."New value: +"Also returns the tasks that carry the plan label, `{id, title, status}`, archived ones excluded (`includeCountedIds` gives every counted identifier). Default: no."
  2. 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)."
  3. 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."
  4. Added

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld:false, so the description is free to spend itself on behavior, and it does: values are computed at read time and not stored, unknown codes are refused with nearest-match suggestions, code comparison folds case and accents, document edges are never treated as settled (`document-not-read`, `target-missing`), an archived-but-undone prerequisite blocks until a human arbitration, and the execution gate is guidance rather than a lock. No statement contradicts the readOnly annotation.

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 dense and largely load-bearing — there is no output schema, so the return shape must be documented here — but it arrives as one unbroken block with stacked parentheticals (blockedAge and frozenList each pack four sub-clauses into a single sentence). Worse, the orienting definition of what a work plan actually is appears roughly two-thirds of the way through, after the field-level detail, so the essential framing is not front-loaded.

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?

With no output schema, describing return values is squarely the description's job, and it covers them exhaustively: progress with archived excluded from `total`, refinement criteria (sole `maturite:*` = `maturite:pret` plus complexity, 40+ char note, no human wait), readiness states, both dependency directions with `state`/`blocks`, warning codes, blockedAge basis and lower-bound caveat, frozenList drift semantics, and closureCheck refusal causes. Visibility rules for the anchored document and the `limits` envelope are also stated.

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 100%, so the baseline is 3, and the description adds only marginal detail here: it notes that `planCode` is compared with case and accents folded (beyond the schema's lowercase/digit/hyphen note) and that `includeTasks` caps at the first 200 with `tasksMore` counting the remainder. `includeCountedIds` and `expectedProjectId` are never discussed in the description, so it does not materially out-perform 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?

Opens with a specific verb and resource ("Reads ONE work plan by its code") and defines the resource in domain terms ("a named list of tasks (a sprint, an MVP milestone)"). It explicitly excludes two confusables ("NOT the planning tool `propose_plan`, NOT a canvas dependency link"), but never distinguishes itself from its nearest siblings `get_work_plan_resume` and `get_work_plan_waves`, which the agent must still disambiguate on its own.

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 implied rather than stated: the enumeration of returned sections (progress, refinement, readiness, blockedAge, frozenList, closureCheck) lets an agent infer when this is the right call, and the execution-gate paragraph explains downstream consequences. There is no explicit when-to-call/when-not-to-call guidance, no prerequisites, and no routing to the sibling plan-read tools, so the agent must infer selection.

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.