agloop_get_next_task
Determine the next task to execute using topological sorting, returning both the recommended task and reasoning for prioritization.
Instructions
Compute the next task using topological sort. Returns the recommended next task and reasoning.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/agloop_mcp/server.py:117-124 (handler)The implementation of the `agloop_get_next_task` tool, which utilizes the `StateManager` to compute and return the next task.
def agloop_get_next_task() -> str: """Compute the next task using topological sort. Returns the recommended next task and reasoning.""" result = _sm().get_next_task() data = { "task": asdict(result.task) if result.task else None, "reason": result.reason, } return json.dumps(data, indent=2)