Skip to main content
Glama
zebbern

agloop-mcp

by zebbern

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)

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/zebbern/agloop-mcp'

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