add_dependency
Creates a dependency edge so a task waits for a blocker, with default blocks behavior holding the dependent task until the blocker is done; relates_to and is_child_of only record links.
Instructions
Add a dependency edge: task_id depends on depends_on_task_id. With the default type blocks, task_id is held back from its assignee until the blocker meets condition (default: the blocker is done). relates_to and is_child_of only record a link and hold nothing. Change the condition with update_dependency; delete the edge with remove_dependency.
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_id": "<task_id>",
"depends_on_task_id": "<depends_on_task_id>"
},
"name": "add_dependency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | UUID of the dependent task: the one that waits. | |
| condition | No | What a blocks edge waits for. task_done (default): the blocker reaches done or cancelled. access_ready / contract_ready / artifact_published: released by evidence_url, or when the blocker reaches done or cancelled. shipped: the blocker is marked shipped or reaches done (cancelled does not release it). deployed: the blocker is marked shipped or a VCS link of it has a recorded deploy (see mark_vcs_deployed); merged/done alone does not release it. accepted: the blocker reaches done (cancelled does not release it). Evidence (evidence_url) releases an edge of any condition. Only for blocks edges. Use a non-default condition when the blocker is a perpetual monitor/recurring card that never reaches done. The response carries `warning` when a blocks edge targets such a card, and `condition_satisfied` (true when the edge no longer holds the dependent). | |
| evidence_url | No | Proof that the condition already holds (link to the artifact, check or comment). With a non-task_done condition it releases the edge at once; otherwise set it later with update_dependency. | |
| dependency_type | No | Dependency type: blocks, relates_to, is_child_of. | blocks |
| depends_on_task_id | Yes | UUID of the blocker: the task that must be done (or meet condition) first. Must differ from task_id. Direction matters; swapping the two makes the blocker wait instead. |