Skip to main content
Glama

get_next_task

Read-onlyIdempotent

Get the next unblocked task to build in a Nodeon project. Returns the highest-priority node with no incomplete dependencies, plus its scoped context: what it depends on, what depends on it, and its full spec. UI work (a screen node, or a feature whose spec mentions UI) also carries references — up to 3 matched UI patterns (screen/block preferred over primitives) — when the Reference Library has a strong match; non-UI tasks (logic, data, custom) never carry references, but get_references serves any node id on request. The payload also carries constraints (the project rules that apply to this task) and upstream_handoffs (the handoff note from each direct dependency; handoff: null when a dependency predates handoffs). Returns an object describing the next task, or an object reporting that all tasks are complete, none are buildable, or the project has no tasks yet.

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>"
    },
    "name": "get_next_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project ID. Get this from list_projects first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare the read-only, idempotent, non-destructive profile, so the description focuses on payload semantics and adds substantial context: dependency/dependent edges, full spec, constraints, upstream handoffs with an explicit `handoff: null` case for older dependencies, and the rule that non-UI tasks never carry references. It also discloses all four terminal return states (task returned, all complete, none buildable, no tasks yet), which the annotations cannot convey. This is disclosure well beyond the structured fields.

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?

The purpose and selection rule are front-loaded, and the sentence on references is packed but each clause carries distinct meaning (up to 3, preference order, the non-UI exclusion, the fallback tool). The single dense paragraph is slightly heavy for one breath, which keeps it off a 5.

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?

No output schema exists, so the description must describe returns — and it enumerates the payload fields (context, references, constraints, upstream_handoffs) plus the alternate completion/blocked/empty responses. Given a one-parameter tool with full annotation coverage, an agent has everything needed to call it and interpret the result.

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?

There is a single parameter with 100% schema description coverage, and the description adds nothing about it beyond what the schema already says (including the list_projects hint). With the schema fully carrying the parameter burden, the baseline of 3 applies.

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 opening sentence gives a specific verb and resource ('Get the next unblocked task to build') and immediately states the selection rule: the highest-priority node with no incomplete dependencies. That distinguishes it cleanly from siblings like get_node (a specific node) and get_project_graph (the whole graph).

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 establishes the clear context of use (fetching the next buildable unit of work) and adds a routing hint that 'get_references serves any node id on request' when the caller wants references the payload omits. It stops short of an explicit when-not-to-use statement or a direct comparison against get_node or get_project_graph, so it is a 4 rather than a 5.

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.