Skip to main content
Glama

plan_add_dependency

Add a depends-on or blocked-by relationship so one task waits for another, and reject any link that would create a cycle.

Instructions

Make a task wait for another (kind depends: until it is done or in review; kind blocked-by: until it is done). A link that would make a cycle is refused; say so in your answer instead.

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": {
      "task": "<task>",
      "on": "<on>",
      "kind": "<kind>"
    },
    "name": "plan_add_dependency"
  }
}

Input Schema

NameRequiredDescriptionDefault
onYesThe task it waits for (a task key)
kindYesdepends or blocked-by
taskYesA task key: ^id (e.g. ^api), the id alone, or L<line>

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already mark this as a non-read-only, non-idempotent, closed-world mutation, so the description's main extra value is the cycle-refusal behavior plus the instruction to report the refusal rather than retry. That is genuinely useful beyond the structured fields. It doesn't clarify what happens on a duplicate link (notable given idempotentHint=false implies repeats create additional links) or what a successful call returns.

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

Conciseness5/5

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

Two sentences, zero filler. The core action leads, the kind semantics are parenthesized compactly, and the failure behavior follows. Nothing could be cut without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

All three required parameters are documented in the schema and the description covers mode semantics and the cycle edge case. With no output schema, some ambiguity remains about success responses and duplicate-link handling, but the definition is sufficient to call the tool correctly.

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 the baseline is 3, but the description adds real meaning the enum labels alone don't convey: the condition under which each kind stops blocking. This is exactly the semantic gap an agent would otherwise guess at.

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?

States a specific verb+resource: making one task wait on another, i.e. creating a dependency link. It also distinguishes its two modes inline. It never names plan_remove_dependency, so the inverse relationship is left to be inferred from the sibling's name.

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 clear selection criteria between the two supported kinds — 'depends' waits until done or in review, 'blocked-by' waits only until done — which is the main usage decision for this tool. It offers no explicit when-not-to-use guidance or pointers to alternatives such as plan_remove_dependency or the criterion tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.