Skip to main content
Glama

Get Next Task

vdd_get_next_task
Read-onlyIdempotent

Retrieve the next uncompleted task from a feature's task list to keep implementation sessions focused, or get a completion marker when all tasks are done.

Instructions

VDD Phase 7a: Read vdd/specs//tasks.md and return the next uncompleted task (or a completion marker when none remain). Read-only; never edits tasks.md. Pass feature (the exact spec directory name). Use before each implementation session to keep context isolated; to regenerate the whole list use vdd_tasks, and to execute the returned task use vdd_implement.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
featureYesFeature name (spec directory name)
projectRootNoProject root: directory that constitution.md and the vdd/ folder are written to and resolved against (default ".").

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
_sdtYesStrategy-and-Tactic instructions for the next step
errorNoError message when the phase fails
_phaseYesVDD phase that produced this result
outputNoAdditional structured phase output
successYesWhether the phase completed successfully
artifactNoPrimary artifact produced or returned
gateResultNoQuality-gate result, when the phase runs a gate

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.4

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint; the description reinforces this with 'Read-only; never edits tasks.md' and adds the concrete behavior of returning a completion marker when no tasks remain. It goes beyond the annotations by revealing the file path and session-context rationale, though it does not cover error cases such as a missing tasks.md.

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?

Two compact sentences with no filler. The core behavior and file path are front-loaded, followed by the usage directive and sibling alternatives, making every clause purposeful.

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?

With an output schema presentts, annotations covering read-only/idempotent behavior, both parameters documented in the schema, and the description supplying when-to-use plus sibling routing, nothing needed for correct invocation 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 the schema already documents both parameters. The description reinforces that feature must be the exact spec directory name and ties it to the file path vdd/specs/<feature>/tasks.md, adding some context, but it adds no meaningful information about projectRoot beyond 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?

States a specific verb ('read' and 'return'), a specific resource ('vdd/specs/<feature>/tasks.md'), and the exact result ('the next uncompleted task, or a completion marker when none remain'). It also distinguishes itself from vdd_tasks and vdd_implement, so an agent can select it unambiguously.

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?

Explicitly says when to use it ('Use before each implementation session to keep context isolated'), what to pass ('the exact spec directory name'), and names alternatives for the adjacent operations ('to regenerate the whole list use vdd_tasks, and to execute the returned task use vdd_implement'). This fully routes the agent.

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