Skip to main content
Glama

get_next_task

Retrieves the next pending task for a given request ID, displays task progress, and requires user approval before proceeding. Signals when all tasks are completed and prompts for next steps.

Instructions

Given a 'requestId', return the next pending task (not done yet). If all tasks are completed, it will indicate that no more tasks are left and that you must ask the user what to do next.

A progress table showing the current status of all tasks will be displayed with each response.

If the same task is returned again or if no new task is provided after a task was marked as done, you MUST NOT proceed. In such a scenario, you must prompt the user for approval before calling 'get_next_task' again. Do not skip the user's approval step. In other words:

  • After calling 'mark_task_done', do not call 'get_next_task' again until 'approve_task_completion' is called by the user.

  • If 'get_next_task' returns 'all_tasks_done', it means all tasks have been completed. At this point, confirm with the user that all tasks have been completed, and optionally add more tasks via 'plan_task'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestIdYes
Behavior5/5

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

With no annotations provided, the description fully discloses behavioral traits. It explains the response behavior (returns next pending task, indicates all_tasks_done), includes a progress table display, specifies error handling (do not proceed if same task returns), and outlines prerequisites (user approval after mark_task_done). This covers mutation effects, user interaction needs, and workflow constraints comprehensively.

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 description is appropriately sized but could be more front-loaded. The first sentence states the core purpose, but subsequent details on workflow rules are lengthy. Some sentences (e.g., 'In other words:') are redundant. It earns its place with necessary guidelines but lacks optimal structure.

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?

Given the complexity (workflow tool with user interaction), no annotations, no output schema, and 1 parameter with 0% schema coverage, the description is complete. It explains the tool's role in a task management workflow, response behaviors, error conditions, and integration with siblings like mark_task_done and plan_task, covering all essential context.

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

Parameters4/5

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

The input schema has 1 parameter (requestId) with 0% description coverage. The description adds meaning by specifying that requestId is required to fetch tasks, implying it identifies a specific request context. However, it doesn't detail the format or source of requestId (e.g., from list_requests). Given low schema coverage, the description compensates well but not fully.

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?

The description clearly states the tool's purpose: 'return the next pending task (not done yet)' given a requestId. It specifies the resource (task) and verb (get/return), distinguishing it from siblings like list_requests or open_task_details. However, it doesn't explicitly differentiate from mark_task_done or other task-related tools beyond the 'get' action.

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?

The description provides explicit guidance on when to use this tool: after a requestId is available, to fetch pending tasks. It also details when NOT to use it: after calling mark_task_done until approve_task_completion is called, or if the same task is returned/no new task appears. Alternatives are implied (e.g., plan_task for adding tasks when all are done).

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

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Aekkaratjerasuk/taskflow-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server