Skip to main content
Glama

plan_add_task

Adds a task to a section, as a subtask, or after another task while setting dependencies and preventing duplicate open tasks by noting the existing one.

Instructions

Add a task at the end of a section (section; created at the end when missing), or as a subtask (under: a task key), or right after one (after:). Its dependencies are set in the same write. A task with the same title and assignee as an open one is not added twice: the open one gets a note.

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": {
      "description": "<description>"
    },
    "name": "plan_add_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoTags, without #
afterNoTask key: the new task goes right after it
notesNoNotes on the task
underNoTask key: the new task becomes its subtask
statusNopending, in_progress, completed, blocked, cancelled or review
sectionNoEnding section title; created at the end when missing (default: end of the list)
assigneeNoWho does it (a handle, without @)
criteriaNoAcceptance criteria (pending), one line each
estimateNoHow long: 4h, 2d, 1w
priorityNo0 (highest) to 3
blocked_byNoTask ids that block it
depends_onNoTask ids (^api or api) it waits for
descriptionYesThe task, one line

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

The annotations only say this is a non-readonly, non-idempotent write; the description goes well beyond that by disclosing that a missing section is silently created, that dependencies are bundled into the same write, and that duplicate open tasks are suppressed with a note appended instead. What it does not disclose is what the call returns (e.g. the new task key), which matters for chaining follow-up calls.

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?

Two dense sentences, front-loaded with the primary action and placement options before the dedupe caveat. The parenthetical '(under: a task key), or right after one (after:)' is slightly compressed and reads awkwardly on first pass, but nothing is wasted.

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?

For a 13-parameter write tool with full schema coverage and no output schema, the description covers the non-obvious behavior (placement precedence, silent section creation, dedupe, atomic dependency write). The one gap is the absence of any hint about the result, which an agent needs to link follow-up calls to the new task.

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: it explains the interaction between section and placement ('created at the end when missing'), clarifies that under/after take task keys and change placement semantics, and flags that depends_on is applied in the same operation. The remaining ten parameters are left entirely to the schema.

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 description opens with a specific verb+resource ('Add a task') and then enumerates the three placement modes keyed to the section/under/after parameters, so the agent knows exactly what the call creates. It also differentiates itself from dependency-oriented siblings by stating 'Its dependencies are set in the same write.'

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?

It gives clear conditional guidance for each placement mode (end of section, as subtask via under, immediately after via after), which is the main decision an agent faces. It also implicitly steers away from calling plan_add_dependency by noting dependencies are written here. It stops short of stating when not to use this tool or what to do if the task already exists beyond the dedupe rule.

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