Skip to main content
Glama

update_work_dependencies

Destructive

Adds and removes DEPENDENCY edges that involve a plan: plan → plan, plan → task, task → plan (a plan or a task WAITS for another item). Each edge succeeds or fails ALONE; up to 100 to add and 100 to remove. A task → task dependency is refused: it lives in dependsOn of create_tasks / update_task. This is a work dependency between tasks and plans, NOT a canvas link between blocks (add_dependency). An edge that would close a cycle is refused with the path (the implicit ones — a task is a member of a plan that waits for it, a plan has its member tasks — are named). Adding an edge that exists answers unchanged. Edges stay within ONE project. REMOVING an edge whose target is ARCHIVED (or a cancelled plan) and not lifted is REFUSED (ARCHIVED_DEPENDENCY_REMOVAL_REFUSED): lift it through a decided arbitration, archive or finish the dependent, or un-archive the target. Removing an edge that is open, lifted or whose target is missing is fine, as is any edge of a dependent that is done. Removals run before additions. On an OAuth connection, a call with remove is refused, with no dependency changed (the additions of that call included), until it carries the confirmationToken that the refusal itself returned (a token issued for another call is refused); the refusal names the dependencies to be removed, 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. A call that only adds edges, an API key and a session are not asked for it. Writes are refused while the project is write-locked for agents.

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

Input Schema

NameRequiredDescriptionDefault
addNoEdges to add (up to 100); each one succeeds or fails alone. It replaces nothing: the other edges of an item stay as they are.
removeNoEdges to remove (up to 100), fields described on `add`; each one succeeds or fails alone. It replaces no list: only the listed edges are removed. The note is ignored.
confirmationTokenNoOnly read on an OAuth connection, where a call with `remove` is refused (the additions of that call are not applied either) 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 dependencies 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. Changed6 schema fields changed
    • changedInput schema / properties / remove / description
      Previous value: -"Edges to remove (up to 100); each one succeeds or fails alone. It replaces no list: only the listed edges are removed. The note is ignored."New value: +"Edges to remove (up to 100), fields described on `add`; each one succeeds or fails alone. It replaces no list: only the listed edges are removed. The note is ignored."
    • removedInput schema / properties / remove / items / properties / dependsOn / description
      Removed value: -"The item it waits for (the prerequisite)."
    • removedInput schema / properties / remove / items / properties / dependsOn / properties / type / description
      Removed value: -"`task` (its id) or `plan` (its code)."
    • removedInput schema / properties / remove / items / properties / item / description
      Removed value: -"The item that WAITS (the dependent)."
    • removedInput schema / properties / remove / items / properties / item / properties / type / description
      Removed value: -"`task` (its id) or `plan` (its code)."
    • removedInput schema / properties / remove / items / properties / note / description
      Removed value: -"Why (up to 300 characters). Stored with the edge and absent from the activity log."
  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. Changed1 schema field changed
    • addedInput schema / properties / confirmationToken
      Added value: +{
      +  "description": "Only read on an OAuth connection, where a call with `remove` is refused (the additions of that call are not applied either) 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 dependencies 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.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses per-edge atomicity, the 100-add/100-remove limits, cycle refusal with path naming, implicit dependency handling, archived-target removal refusal, removal-before-addition ordering, OAuth confirmation-token behavior, and write-lock refusal. These details are consistent with the destructive write annotation.

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?

The description is front-loaded with purpose and then densely lists constraints, and nearly every sentence carries a functional rule or failure mode. It is long and somewhat hard to scan, but the complexity of the mutation and its edge cases largely justifies the length.

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 destructive multi-edge mutation with no output schema, it covers the major operational contexts: limits, atomicity, cycle and archived removal refusals, ordering, OAuth confirmation, and write locks. The remaining schema-level details, such as project targeting and edge object shape, are fully covered by the schema descriptions.

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 description coverage is 100%, so the schema already documents the add/remove edge structures and the confirmationToken mechanics. The description still adds some useful meaning beyond the schema — that remove notes are ignored, removals run before additions, and the token refusal applies to the whole call including additions.

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 opening sentence names the exact operation — adding and removing dependency edges — and enumerates the allowed edge shapes (plan → plan, plan → task, task → plan). It explicitly distinguishes this work-dependency tool from canvas links (`add_dependency`) and task → task dependencies (`create_tasks` / `update_task`).

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 to use this tool (edges involving a plan), when not to use it (task → task dependencies and canvas links), and where those alternatives live. It also explains the OAuth confirmation-token path after a refusal, giving the agent a clear next step.

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.