TaskFlow MCP

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

NameRequiredDescriptionDefault
requestIdYes

Input Schema (JSON Schema)

{ "properties": { "requestId": { "type": "string" } }, "required": [ "requestId" ], "type": "object" }
ID: cry5fail23