Skip to main content
Glama

get_work_dependencies

Read-only

Reads the dependencies of ONE task or plan in both directions and across BOTH sources: what it depends on (dependsOn) and what depends on it (dependents, through the inverse index), each edge with the other end, its state (open, satisfied, target-archived, lifted, target-missing), whether it blocks, its source (task-depends-on or work-dependencies), the title and the status of the other end, plus blockingCount and, when a loop already exists, the cycle as a path. A task depends on tasks (dependsOn of create_tasks/update_task) and on plans; a plan depends on plans, tasks and documents. 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. blockingCount follows the rule of list_work_plans for a plan (a plan waiting for one of its own tasks is not blocked by it; a cancelled plan counts 0). This is a work dependency between tasks and plans, NOT a canvas link between blocks (add_dependency). 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 task or plan is refused. 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": {
      "item": "<item>"
    },
    "name": "get_work_dependencies"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesThe task or the work plan whose dependencies and dependents are read.
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.3/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, non-destructive), and the description goes well beyond them: document prerequisites are never settled (reported `open` with reason `document-not-read`, deleted ones `target-missing`), archived-but-not-done prerequisites block, unknown items are refused, and `limits` may appear. It also explicitly closes with "Modifies nothing."

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 behavior is front-loaded in the first clause, which is good, but the remainder is one dense run-on covering edge fields, state enums, document rules, blockingCount semantics, archived-prerequisite policy, and cycle reporting. Most of it earns its place, yet the sentence structure buries the actionable parts and could be broken into ordered bullets or trimmed of redundant restatements.

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?

There is no output schema, so the description carries the return-value burden, and it does so thoroughly: per-edge fields (`state`, `blocks`, `source`, other-end title/status), plus `blockingCount` and `cycle` as a path. For a read-only, single-item dependency query it leaves an agent with everything needed to call and interpret the result.

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 description coverage is 100%, with `item.type` enum and `expectedProjectId` already documented in the schema, so the baseline of 3 applies. The description reinforces the single-item constraint ("ONE task or plan") but adds no syntax or format detail for either parameter, particularly nothing about when to override the session project.

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?

States a specific verb and resource ("Reads the dependencies of ONE task or plan") and pins the scope precisely: both directions, both sources, single item only. It explicitly distinguishes itself from `add_dependency` (canvas link between blocks) and from the creation/update tools whose `dependsOn` field it reads.

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 an explicit negative disambiguation against `add_dependency` and clarifies the blocking semantics agreement with `claim_task` / `executable` and the `blockingCount` rule shared with `list_work_plans`. It does not, however, say when to prefer this over `get_work_plan` or `update_work_dependencies` for reading vs mutating edges, so guidance is clear but not exhaustive.

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.