Skip to main content
Glama

Link two tasks

link_tasks
Idempotent

Relate two tasks by adding or removing dependency links such as blocked, blocking, subtask, related, precedes, or duplicate. Updates both tasks so dependencies stay in sync.

Instructions

Relate two tasks, read as "id is other": blocked means id waits on other, blocking means id holds other up. The matching relation is added to the other task too (blocked <-> blocking, subtask <-> parenttask, precedes <-> follows, duplicateof <-> duplicates, related both ways). Adding one that exists changes nothing; remove=true deletes the pair. Needs editor access to both tasks. Returns id's task line with its relations.

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": {
      "id": "<id>",
      "other": "<other>",
      "kind": "<kind>"
    },
    "name": "link_tasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYestask the relation is read from
kindYesid is <kind> other: blocked, blocking, subtask, parenttask, related, precedes, follows, duplicateof, duplicates; the same kind when removing
otherYesthe other task
removeNotrue removes the relation instead of adding it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare the safety profile (not read-only, idempotent, non-destructive), and the description adds real behavioral context: the mirror relation is written to the other task, existing pairs are idempotent no-ops, remove=true deletes the pair, and editor permission is required on both sides. The only residual gap is that removal of a link is not characterized as reversible or not — minor given the idempotency hint.

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?

Front-loaded with the core verb and the direction convention, then layered with reciprocity, idempotency, permissions, and return value — no sentence is wasted. It is a dense single paragraph, slightly harder to scan than a segmented version would be, but nothing is redundant.

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 4-parameter mutation tool with no output schema, the description covers direction semantics, side effects on the other task, idempotency, the removal path, required permissions, and even the return value. An agent has everything needed to invoke it 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; the description goes beyond it by explaining the directionality of `kind` ("id is <kind> other") and the symmetric counterpart each kind writes, which the flat schema string does not convey. It also clarifies the role of `remove` as a mode switch rather than an extra option.

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 (relate two tasks) and immediately pins down the direction convention ("id is <kind> other") plus the concrete semantics of each kind. This is far more than a restatement of the name and makes the tool distinguishable from save_task or get_task without opening a 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 clear operating context: editor access required on both tasks, adding an existing relation is a no-op, and remove=true switches to deletion. It does not name sibling alternatives (e.g., save_task for editing fields), but the conditions for the sensible variants of this call are all spelled out.

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