Skip to main content
Glama

update_work_plan

Destructive

Modifies one work plan or up to 100 with the SAME patch, each one succeeding or failing ALONE: title, summary, version, due date, position, document and status (null clears an optional field). The code never changes. 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 (set it with update_task addLabels); progress, refinement and readiness are COMPUTED at read time and not stored. A label that would close a dependency loop through plan membership is refused by update_task, create_tasks and import_tasks; the web task editor and move_task_to_project do not judge it, so a loop made there shows as a cycle warning when reading the plan and blocks nobody. Statuses: brouillon → raffinage → pret → en-cours → termine, or annule from any status but termine (annule is final). Allowed returns: raffinage → brouillon, pret → raffinage, en-cours → pret or raffinage, termine → en-cours. raffinage → pret is refused while a task to refine is not refined (each one is named with what it misses), and for a plan with no task to refine. termine and annule answer gatedByStatusChange; annule also stamps cancelledAt and answers dependentsNowBlocked (what waits for this plan: an edge towards a cancelled plan BLOCKS until a decided lift). FROZEN LIST: moving a plan to en-cours freezes its list (one row per live task carrying the plan label, answered in frozenList; a task awaiting triage or already in another plan in progress refuses the move by name; a plan frozen before keeps its list); settle records verdicts on tasks of that list (fait with a proof whose links are http(s) URLs or ids of the task's own deliverables, bloque with a motive), answered in settled and settleFailed; they are written after the plan's own checks (document, status move, readiness) and before the status change, and a verdict written stays written when the status change then fails or is held (that failure still lists it in settled); termine becomes a CHECKED closure answered in closure: each counted task is done with a proof, blocked with a motive (or waiting on the arbitration cited in motiveLink), or withdrawn in exits with a closed reason (an exit naming a task outside the frozen list refuses the closure; an exit clears the task's earlier verdict, proof and motive), re-checked against the real task at that moment, otherwise nothing of the closure is written (no exit, and no change to the plan from this call) and the unsettled tasks are listed; a task appears at most once per call across settle and exits; a plan that is en-cours WITHOUT a frozen list (it moved to en-cours before the checked closure existed) is refused at termine (closure-not-frozen): move it back to pret, then to en-cours to freeze it, then close it; a closure by an agent is marked decidedBy: "agent", toReValidate: true. In a project in VALIDATION mode (or whose configuration could not be read: the doubt counts as validation), exits is refused to an agent and the closure is held (closure-held-for-validation, the plan stays en-cours): withdrawing and closing are human decisions there, and NO human surface closes a plan or withdraws its tasks yet (the site has no screen for plans), so such a plan stays en-cours; a fait verdict counts only once a human has validated the task. Leaving en-cours, or annule, releases the tasks of the list. On an OAuth connection, cancelling a plan (annule) is refused, with no plan changed, until the call carries the confirmationToken that the refusal itself returned (a token issued for another call is refused); the refusal names the plan(s) to be cancelled, and the user's explicit yes comes between it and the second call that carries the token. The token shows that the refusal was read, not that the user agreed. An API key or a session is not asked for it. A plan changed by someone else while the call ran is reported failed ("changed concurrently"): resend. Writes are refused while the project is write-locked for agents.

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

Input Schema

NameRequiredDescriptionDefault
dueOnNo`null` clears it.
exitsNoWith `status: "termine"` only: the tasks that leave the frozen list with this closure, each with a closed reason (up to 500); applied only if the closure passes. A task named here is not also in `settle`; an exit clears any earlier verdict, proof and motive of the task.
titleNoThe title of the plan (1 to 200 characters).
settleNoVerdicts on tasks of the plan's FROZEN list (up to 100), written after the plan's own checks (document, status move, readiness) and before the status change; a verdict written stays written when the status change then fails or is held, and that failure lists it in `settled`. One plan code only; a task appears at most once per call across `settle` and `exits` (one verdict or one exit, not both). The closure re-checks each verdict against the real task.
statusNoThe new status. The server applies the status table and refuses a move that is not allowed.
summaryNo`null` clears it.
versionNo`null` clears it.
planCodeYesThe plan code, or up to 100 codes that receive the SAME patch (each one succeeds or fails alone).
positionNo`null` clears it.
documentIdNo`null` unlinks the document.
confirmationTokenNoOnly read on an OAuth connection, where cancelling a plan (`status: "annule"`) is refused until the call carries the `confirmationToken` that the refusal itself returned (up to 64 characters). A token that was not issued for this very call (this tool, this account, this project and exactly these targets) is refused. The refusal names the plan(s) concerned, and the user's explicit yes comes between that refusal and the second call that carries the token. The token shows that the refusal was read; it is not the user's agreement. An API key or a session is not asked for it and the field is ignored there.
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. Changed2 schema fields changed
    • addedInput schema / properties / exits
      Added value: +{
      +  "description": "With `status: \"termine\"` only: the tasks that leave the frozen list with this closure, each with a closed reason (up to 500); applied only if the closure passes. A task named here is not also in `settle`; an exit clears any earlier verdict, proof and motive of the task.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "note": {
      +        "description": "A free note (up to 300 characters).",
      +        "maxLength": 300,
      +        "type": "string"
      +      },
      +      "reason": {
      +        "description": "`reporte` (postponed, still wanted), `abandonne` (dropped), `doublon` (duplicate) or `hors-projet` (out of the project).",
      +        "enum": [
      +          "reporte",
      +          "abandonne",
      +          "doublon",
      +          "hors-projet"
      +        ],
      +        "type": "string"
      +      },
      +      "taskId": {
      +        "description": "A task of the frozen list that leaves it with this closure.",
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "taskId",
      +      "reason"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 500,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / settle
      Added value: +{
      +  "description": "Verdicts on tasks of the plan's FROZEN list (up to 100), written after the plan's own checks (document, status move, readiness) and before the status change; a verdict written stays written when the status change then fails or is held, and that failure lists it in `settled`. One plan code only; a task appears at most once per call across `settle` and `exits` (one verdict or one exit, not both). The closure re-checks each verdict against the real task.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "motive": {
      +        "description": "Why it is blocked (15 to 300 characters).",
      +        "maxLength": 300,
      +        "type": "string"
      +      },
      +      "motiveLink": {
      +        "description": "The arbitration (or follow-up task) that carries the block, when there is one.",
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "proof": {
      +        "description": "What was verified (up to 500 characters; at least 40 when no link is given).",
      +        "maxLength": 500,
      +        "type": "string"
      +      },
      +      "proofLinks": {
      +        "description": "Up to 5 links: an http(s) URL, or the id of one of the task's own deliverables (`links`). They REPLACE the proof links of this item (no incremental add): a later verdict on the same task states the whole list again.",
      +        "items": {
      +          "maxLength": 500,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "maxItems": 5,
      +        "type": "array"
      +      },
      +      "taskId": {
      +        "description": "A task of the frozen list of the plan.",
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "verdict": {
      +        "description": "`fait` (done, with a proof) or `bloque` (blocked, with a motive).",
      +        "enum": [
      +          "fait",
      +          "bloque"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "taskId",
      +      "verdict"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 100,
      +  "minItems": 1,
      +  "type": "array"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / confirmationToken
      Added value: +{
      +  "description": "Only read on an OAuth connection, where cancelling a plan (`status: \"annule\"`) is refused until the call carries the `confirmationToken` that the refusal itself returned (up to 64 characters). A token that was not issued for this very call (this tool, this account, this project and exactly these targets) is refused. The refusal names the plan(s) concerned, and the user's explicit yes comes between that refusal and the second call that carries the token. The token shows that the refusal was read; it is not the user's agreement. An API key or a session is not asked for it and the field is ignored there.",
      +  "maxLength": 64,
      +  "type": "string"
      +}
  5. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations supply only readOnlyHint=false and destructiveHint=true; the description goes far beyond by disclosing partial-failure semantics per plan, concurrency ('changed concurrently': resend), write-lock refusal, and the OAuth `confirmationToken` two-call flow with the explicit caveat that the token proves the refusal was read, not that the user agreed. It also exposes ordering guarantees (settle written after plan checks, before the status change) and that verdicts persist even when the status change fails, which an agent cannot infer from any structured field.

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

Conciseness3/5

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

The core purpose is genuinely front-loaded in sentence one, and most clauses carry information rather than filler. However, the description is a single dense wall of ALL-CAPS emphasis and nested parentheticals that is hard to scan, and it restates material already present in the equally verbose schema descriptions (token flow, settle ordering, exits clearing verdicts).

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 12-parameter destructive mutation with no output schema, the description covers the failure modes (`gatedByStatusChange`, `dependentsNowBlocked`, `closure-held-for-validation`, `settled`/`settleFailed`), the human-versus-agent authority split, and the practical dead end where a validation-mode plan can never be closed. That is the level of completeness an agent needs to call this safely.

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 baseline is 3; the description nevertheless adds semantics the schema cannot express, such as the status lifecycle and legal transitions, the `settle`/`exits` mutual-exclusion rule, and the frozen-list membership requirement for `taskId` values. Some narrative (token flow, settle ordering) is duplicated verbatim in the schema descriptions, so the added value is real but partly redundant.

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?

The first sentence names a specific verb and resource with scope: 'Modifies one work plan or up to 100 with the SAME patch, each one succeeding or failing ALONE', then enumerates the mutable fields. It explicitly disambiguates from siblings and near-misses: 'NOT the planning tool `propose_plan`, NOT a canvas dependency link between blocks', and defines what a work plan is (a named list of tasks, a sprint or MVP milestone).

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?

It states when the tool applies (patching plans, batch with identical patch), when it does not (`propose_plan`, dependency links), and routes related work to siblings by name (`update_task` `addLabels` to attach a task to a plan, `move_task_to_project` for the loop-check gap). The full status transition table plus allowed/refused moves gives the agent a decision rule for every enum value, and refusal conditions (`closure-not-frozen`, validation mode, write-lock) are named with remedies such as moving back to `pret` then `en-cours`.

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.