Skip to main content
Glama

claim_next_task

Claim the highest-priority root task from todo and set it to in-progress, then work through its children. Returns null when no task matches.

Instructions

Claim the highest-priority ROOT task in todo and set it to in-progress. Never claims a child: a root is the unit of work, so work through its children after claiming it. Mirrors 'vibeflow tasks --next'. An empty board is a SUCCESS, not a failure: the result is then null (an object means a task was claimed, null means there was nothing to claim), the same as 'vibeflow tasks --next --json' reporting task:null with exit 0. A valid filter that matches no task is the same situation and gives the same null.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNo
typeNo
userNo
dryRunNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-idempotent, non-destructive mutation; the description adds genuinely new behavior by specifying the return contract (object = claimed, null = nothing to claim) and that an empty board is success, not an error. It does not address claim atomicity/concurrency, permissions, or why it is non-idempotent, leaving some mutation behavior unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core claim rule is front-loaded and efficient, but the null/empty-board case is restated three times (null result, the CLI `task:null` exit-0 comparison, and the filter case), which is redundant padding for a single concept.

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?

With no output schema, the description correctly fills the gap by explaining the return value shape and the empty-result case, which is the most failure-prone aspect of this tool. It remains incomplete on filter parameter behavior and dryRun, but the critical call contract is covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four parameters (tag, type, user, dryRun), so the description carries the full burden. It only obliquely references filtering ('A valid filter that matches no task'), giving no meaning for tag/type/user semantics or for what dryRun actually does.

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 and resource with scope: 'Claim the highest-priority ROOT task in todo and set it to in-progress.' It also distinguishes itself from the sibling set (create_task/update_task/list_tasks) by defining the root-vs-child rule, so an agent can tell it apart without opening a schema.

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 clear usage context: use it to pull the next unit of work, then work through the claimed task's children rather than claiming children directly. It does not explicitly name alternative tools or state when-not-to-use (e.g., vs. list_tasks/get_task), so it stops short of full routing guidance.

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