Skip to main content
Glama

add_subtask

Add a new task (node) to a Nodeon project. Use this when work is discovered while building — for example, implementing auth reveals a needed password reset flow. The new node starts as 'todo'; connect it to existing nodes (via depends_on) so it appears in the build sequence. Pass type 'custom' with custom_type_label to create a node with your own type name (e.g. 'API', 'Model', 'Infra'). Returns the 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>",
      "title": "<title>",
      "type": "<type>"
    },
    "name": "add_subtask"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesThe node type: 'screen' for pages/views, 'feature' for capabilities, 'logic' for rules and flow, 'data' for models and schemas — or 'custom' for your own type, paired with custom_type_label.
titleYesA short, descriptive title for the task.
depends_onNoNode IDs this new task depends on. The new task won't be available until these are complete.
project_idYesThe project ID.
descriptionNoA longer description of what this node should do. Be specific — this becomes the spec your agent builds from.
custom_type_colorNoOptional when type is 'custom': the type's colour as a 6-digit hex string like '#df9ef5'. Defaults to a violet-pink; ignored for preset types.
custom_type_labelNoRequired when type is 'custom': the name of your custom type, e.g. 'API', 'Model', 'Infra' (max 32 characters). Ignored for preset types.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare the write, non-destructive, non-idempotent profile, and the description adds genuinely useful behavior: the new node starts as 'todo', dependency edges affect build-sequence availability, and the response reports the created node plus edge count. It does not address duplicate creation on repeat calls or permission/project-existence requirements, which is what non-idempotency would warrant.

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 action, then usage context, then the custom-type variant, then the return value. Four sentences, each doing work, with no filler.

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 seven-parameter creation tool with no output schema, the description covers the action, the trigger, the custom-type path, and what is returned. Minor gaps around failure modes and duplicate handling remain, but nothing essential to invoking it correctly is missing.

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?

Schema description coverage is 100%, so all seven parameters are already documented, and the description mostly restates the type/custom_type_label pairing. It adds modest framing by explaining depends_on in terms of build-sequence placement, but no format or constraint detail beyond the schema.

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 and resource ('Add a new task (node) to a Nodeon project') and clarifies that nodes start as 'todo'. It does not explicitly name a sibling such as batch_add_subtasks, so the distinction for bulk creation is left to name inference.

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 a clear triggering condition — 'use this when work is discovered while building' — with a concrete example of auth revealing a password-reset flow. It stops short of stating when NOT to use it or pointing to batch_add_subtasks for multiple tasks.

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.