Skip to main content
Glama

task_next

Read-only

Returns the single queued task that can start now once its dependencies and phase gate are verified.

Instructions

Show the one task that may start now: the queue head, planned, with dependencies and the phase gate met.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "task_next"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonNo
ownerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / json
      Added value: +{
      +  "type": "boolean"
      +}
  2. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

readOnlyHint=true is consistent with "Show," so no contradiction. The description adds real behavioral context beyond the annotation by disclosing the four eligibility conditions a task must satisfy, but it says nothing about what is returned when no task qualifies (empty result vs. error) or about the return shape.

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?

One sentence, front-loaded with the answer ("the one task that may start now") and then the qualifying conditions. Nothing is wasted and nothing is buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with no output schema and no documented parameters, the description should explain the `owner` and `json` semantics and the empty-queue case. It covers the selection logic well but leaves an agent unable to predict outputs or parameter effects.

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?

Both parameters have 0% schema description coverage, so the description carries the full burden and fails: neither `json` (presumably output format) nor `owner` (presumably a queue filter, but does it scope the queue or the gate check?) is mentioned. An agent cannot safely set `owner` from this description alone.

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?

"Show the one task that may start now" is a specific verb+resource, and the eligibility chain (queue head, planned, dependencies met, phase gate met) makes the tool's selection rule unambiguous. It stops short of naming how it differs from siblings like task_show or task_list, but the semantics are clear enough to choose correctly.

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

Usage Guidelines3/5

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

The phrase "may start now" implies when to reach for this tool (picking the next actionable task), but there is no explicit when-to-use/when-not guidance and no alternative named. Usage must be inferred from the criteria rather than read directly.

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