Skip to main content
Glama

create_work_plans

Creates one work plan or up to 50, each one succeeding or failing ALONE, in the order given. 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. A plan is created in brouillon (default) or raffinage; the code is immutable. Creation CONVERGES on the code: resending an identical plan answers unchanged, a different one already-exists (nothing is overwritten). A project holds a bounded number of plans: past it, a creation is refused plan_limit_reached (nothing is created).adoptedTasks counts the tasks that already carry the label plan: followed by the code (the label may predate the plan); gatedNow counts those the plan status keeps out of claiming right now (the execution gate: claim_task refuses them with plan-not-ready; see execution). dependsOn lists what the plan waits for (plans or tasks of this project): the plan is created first, then the edges; an edge that is refused (cycle, unknown item, ceiling) is reported in edgesFailed and does not undo the plan. An anchored documentId must be a document of this project that you may see. The plan is never created in the name of another project. 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": {
      "plans": "<plans>"
    },
    "name": "create_work_plans"
  }
}

Input Schema

NameRequiredDescriptionDefault
plansYesOne plan, or up to 50. Each one succeeds or fails ALONE, in the order given (a plan may depend on a plan higher in the list). The fields are described on the single-plan form.
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / plans / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "code": {
      -        "description": "The plan code: 2 to 40 lowercase letters, digits and hyphens. IMMUTABLE: the task label `plan:` followed by this code is what puts a task in the plan.",
      -        "pattern": "^[a-z0-9-]{2,40}$",
      -        "type": "string"
      -      },
      -      "dependsOn": {
      -        "description": "What the plan waits for (plans or tasks), ensured after the plan exists. An edge that is refused does not undo the plan: it is reported in `edgesFailed`.",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "maxLength": 200,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "type": {
      -              "description": "`task` (its id) or `plan` (its code).",
      -              "enum": [
      -                "task",
      -                "plan"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "type",
      -            "id"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 100,
      -        "type": "array"
      -      },
      -      "documentId": {
      -        "description": "The id of a document of this project that carries the plan. It must exist and be visible to you.",
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -        "type": "string"
      -      },
      -      "dueOn": {
      -        "description": "The due date, written YYYY-MM-DD.",
      -        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      -        "type": "string"
      -      },
      -      "position": {
      -        "description": "The order among plans (an integer from 0 to 1000000); gaps are fine, plans without a position come last.",
      -        "maximum": 1000000,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "status": {
      -        "description": "`brouillon` (default) or `raffinage`. The other statuses are reached with `update_work_plan`.",
      -        "enum": [
      -          "brouillon",
      -          "raffinage"
      -        ],
      -        "type": "string"
      -      },
      -      "summary": {
      -        "description": "A short summary (up to 2000 characters).",
      -        "maxLength": 2000,
      -        "type": "string"
      -      },
      -      "title": {
      -        "description": "The title of the plan (1 to 200 characters).",
      -        "maxLength": 200,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "version": {
      -        "description": "A free version label such as `1.0.0` or `1.1.0-rc1` (up to 40 characters). No ordering is derived from it.",
      -        "maxLength": 40,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "title"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "items": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "code": {
      -          "description": "The plan code: 2 to 40 lowercase letters, digits and hyphens. IMMUTABLE: the task label `plan:` followed by this code is what puts a task in the plan.",
      -          "pattern": "^[a-z0-9-]{2,40}$",
      -          "type": "string"
      -        },
      -        "dependsOn": {
      -          "description": "What the plan waits for (plans or tasks), ensured after the plan exists. An edge that is refused does not undo the plan: it is reported in `edgesFailed`.",
      -          "items": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "id": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              "type": {
      -                "description": "`task` (its id) or `plan` (its code).",
      -                "enum": [
      -                  "task",
      -                  "plan"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "type",
      -              "id"
      -            ],
      -            "type": "object"
      -          },
      -          "maxItems": 100,
      -          "type": "array"
      -        },
      -        "documentId": {
      -          "description": "The id of a document of this project that carries the plan. It must exist and be visible to you.",
      -          "format": "uuid",
      -          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -          "type": "string"
      -        },
      -        "dueOn": {
      -          "description": "The due date, written YYYY-MM-DD.",
      -          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      -          "type": "string"
      -        },
      -        "position": {
      -          "description": "The order among plans (an integer from 0 to 1000000); gaps are fine, plans without a position come last.",
      -          "maximum": 1000000,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "status": {
      -          "description": "`brouillon` (default) or `raffinage`. The other statuses are reached with `update_work_plan`.",
      -          "enum": [
      -            "brouillon",
      -            "raffinage"
      -          ],
      -          "type": "string"
      -        },
      -        "summary": {
      -          "description": "A short summary (up to 2000 characters).",
      -          "maxLength": 2000,
      -          "type": "string"
      -        },
      -        "title": {
      -          "description": "The title of the plan (1 to 200 characters).",
      -          "maxLength": 200,
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "version": {
      -          "description": "A free version label such as `1.0.0` or `1.1.0-rc1` (up to 40 characters). No ordering is derived from it.",
      -          "maxLength": 40,
      -          "minLength": 1,
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "code",
      -        "title"
      -      ],
      -      "type": "object"
      -    },
      -    "maxItems": 50,
      -    "minItems": 1,
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "description": "The plan code: 2 to 40 lowercase letters, digits and hyphens. IMMUTABLE: the task label `plan:` followed by this code is what puts a task in the plan.",
      +        "pattern": "^[a-z0-9-]{2,40}$",
      +        "type": "string"
      +      },
      +      "dependsOn": {
      +        "description": "What the plan waits for (plans or tasks), ensured after the plan exists. An edge that is refused does not undo the plan: it is reported in `edgesFailed`.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "id": {
      +              "maxLength": 200,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "type": {
      +              "description": "`task` (its id) or `plan` (its code).",
      +              "enum": [
      +                "task",
      +                "plan"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "type",
      +            "id"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 100,
      +        "type": "array"
      +      },
      +      "documentId": {
      +        "description": "The id of a document of this project that carries the plan. It must exist and be visible to you.",
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      },
      +      "dueOn": {
      +        "description": "The due date, written YYYY-MM-DD.",
      +        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +        "type": "string"
      +      },
      +      "position": {
      +        "description": "The order among plans (an integer from 0 to 1000000); gaps are fine, plans without a position come last.",
      +        "maximum": 1000000,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "status": {
      +        "description": "`brouillon` (default) or `raffinage`. The other statuses are reached with `update_work_plan`.",
      +        "enum": [
      +          "brouillon",
      +          "raffinage"
      +        ],
      +        "type": "string"
      +      },
      +      "summary": {
      +        "description": "A short summary (up to 2000 characters).",
      +        "maxLength": 2000,
      +        "type": "string"
      +      },
      +      "title": {
      +        "description": "The title of the plan (1 to 200 characters).",
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "version": {
      +        "description": "A free version label such as `1.0.0` or `1.1.0-rc1` (up to 40 characters). No ordering is derived from it.",
      +        "maxLength": 40,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "title"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "pattern": "^[a-z0-9-]{2,40}$",
      +          "type": "string"
      +        },
      +        "dependsOn": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "id": {
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "type": {
      +                "enum": [
      +                  "task",
      +                  "plan"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "id"
      +            ],
      +            "type": "object"
      +          },
      +          "maxItems": 100,
      +          "type": "array"
      +        },
      +        "documentId": {
      +          "format": "uuid",
      +          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +          "type": "string"
      +        },
      +        "dueOn": {
      +          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +          "type": "string"
      +        },
      +        "position": {
      +          "maximum": 1000000,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "status": {
      +          "enum": [
      +            "brouillon",
      +            "raffinage"
      +          ],
      +          "type": "string"
      +        },
      +        "summary": {
      +          "maxLength": 2000,
      +          "type": "string"
      +        },
      +        "title": {
      +          "maxLength": 200,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "version": {
      +          "maxLength": 40,
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "title"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 50,
      +    "minItems": 1,
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / plans / description
      Previous value: -"One plan, or up to 50. Each one succeeds or fails ALONE, in the order given (a plan may depend on a plan higher in the list)."New value: +"One plan, or up to 50. Each one succeeds or fails ALONE, in the order given (a plan may depend on a plan higher in the list). The fields are described on the single-plan form."
  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

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description goes far beyond by disclosing per-plan atomic failure, convergence on the immutable code, the `plan_limit_reached` ceiling with nothing created, partial edge failures reported in `edgesFailed` without undoing the plan, and write-lock refusal. These are exactly the mutational side effects an agent needs before calling.

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 action is front-loaded, but the prose is a dense wall of backticked cross-references. Several sentences cover read-time and third-party behavior (cycle warnings in the web editor, `claim_task` execution gate) that are tangential to deciding how to invoke this call, so not every sentence earns its place here.

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 mutation tool with no output schema, the description covers response outcomes (`unchanged`, `already-exists`, `plan_limit_reached`, `edgesFailed`), partial-success semantics, and validation constraints. An agent has enough to call it correctly and interpret common results.

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 already 100%, so baseline would be 3, but the description adds real meaning: the dependency-label mechanism tying tasks to plans, why `code` is immutable, that `dependsOn` edges are applied after creation and may fail, and that `documentId` must be a visible document of this project. The `adoptedTasks`/`gatedNow` explanation describes response fields rather than inputs, slightly diluting focus.

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?

Opens with a specific verb and resource ('Creates one work plan or up to 50') and then defines what a work plan actually is ('a named list of tasks'), explicitly excluding `propose_plan` and canvas dependency links. An agent can distinguish this from create_tasks or update_work_plan without opening another schema.

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

Usage Guidelines4/5

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

Gives strong context for when creation applies (a plan must not already exist, convergence answers `unchanged`/`already-exists`, write-locked projects refuse writes) and names the non-alternative `propose_plan`. It stops short of explicitly routing between this tool and `update_work_plan` for modifying an existing plan, or stating when to prefer `create_tasks` instead.

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.