Skip to main content
Glama

batch_add_subtasks

Create several tasks in one call — the fast path when planning reveals a chunk of work at once, instead of one add_subtask round trip per task. Tasks are created in order; depends_on may reference a task's index within this batch (0-based, must point at an EARLIER task) or an existing node ID. Every input is validated before anything is inserted, so a bad reference creates nothing. Returns each created node and how many dependency edges were wired.

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": {
      "project_id": "<project_id>",
      "tasks": "<tasks>"
    },
    "name": "batch_add_subtasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
tasksYesThe tasks to create, in build order.
project_idYesThe project ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses important behavior: tasks are created in order, depends_on indices must point to an earlier task, and validation is atomic so a bad reference creates nothing. It also says the return includes each created node and the number of dependency edges wired, which is valuable context not covered by annotations.

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?

The description is front-loaded with the core purpose and then adds only operationally relevant details: ordering, atomic validation, and return shape. Every sentence earns its place and 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 mutation tool with two required parameters, rich schema descriptions, and no output schema, the definition covers when to use it, how dependencies are interpreted, atomic validation behavior, and what is returned. An agent has enough information to invoke it correctly.

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?

The input schema already has 100% description coverage, including the 0-based earlier-task dependency rule and field meanings. The description reinforces the dependency semantics and ordering, but adds little parameter-level meaning beyond the schema, so the baseline of 3 is appropriate.

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 uses a specific verb and resource: creating several tasks in one call. It explicitly contrasts this batch path with repeated add_subtask calls, so the agent can distinguish it from the sibling without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the exact situation for using this tool: when planning reveals a chunk of work at once. It also names the alternative behavior it replaces, one add_subtask round trip per task, giving clear routing guidance.

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.