Skip to main content
Glama
zebbern

agloop-mcp

by zebbern

agloop_get_state

Retrieve the current AgLoop state including phase, tasks, iteration, and compaction context. Returns null when no active loop exists.

Instructions

Read the full AgLoop state including phase, tasks, iteration, and compaction context. Returns null if no active loop.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The `agloop_get_state` tool handler function, which uses `StateManager` to retrieve and return the full AgLoop state.
    @mcp.tool()
    def agloop_get_state() -> str:
        """Read the full AgLoop state including phase, tasks, iteration, and compaction context. Returns null if no active loop."""
        state = _sm().get_state()
        if not state:
            return json.dumps({"error": "No active AgLoop state found"})
        return json.dumps(asdict(state), 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