get_stack_overview
Extract structured JSON data of your task stack, including all task details and relationships, to manage and analyze complex workflows efficiently with the Aidderall MCP Server.
Instructions
Get structured data of your entire task stack (JSON format with all task details and relationships)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/handlers.py:172-173 (handler)The MCP tool handler function that executes the tool logic by delegating to TaskManager.get_stack_overview()async def handle_get_stack_overview(self) -> Dict[str, Any]: return self.task_manager.get_stack_overview()
- src/handlers.py:325-329 (schema)Input/output schema definition for the get_stack_overview tool (no inputs required)Tool( name="get_stack_overview", description="Get structured data of your entire task stack (JSON format with all task details and relationships)", inputSchema={"type": "object", "properties": {}}, ),
- src/server.py:48-75 (registration)Registration of tool handlers in the MCP server's call_tool decorator, mapping 'get_stack_overview' to its handlerhandler_map = { "create_new_task": lambda: handlers.handle_create_new_task( arguments["title"], arguments["body"] ), "extend_current_task": lambda: handlers.handle_extend_current_task( arguments["title"], arguments["body"] ), "get_current_task": handlers.handle_get_current_task, "get_big_picture": lambda: handlers.handle_get_big_picture( arguments.get("format", "text") ), "complete_current_task": handlers.handle_complete_current_task, "get_completed_tasks": lambda: handlers.handle_get_completed_tasks( arguments.get("order", "chronological") ), "update_current_task": lambda: handlers.handle_update_current_task( arguments["body"] ), "get_stack_overview": handlers.handle_get_stack_overview, "peek_context": lambda: handlers.handle_peek_context( arguments.get("include_body", False) ), "list_siblings": lambda: handlers.handle_list_siblings( arguments.get("include_body", False) ), "switch_focus": lambda: handlers.handle_switch_focus(arguments["task_id"]), "remove_task": lambda: handlers.handle_remove_task(arguments["task_id"]), }
- src/task_manager.py:325-357 (helper)Core helper method in TaskManager that generates the detailed stack overview dictionary used by the handlerdef get_stack_overview(self) -> Dict[str, Any]: return { "zen_state": self.is_zen_state, "stack_depth": self.get_stack_depth(), "current_task_id": self.current_task.id if self.current_task else None, "global_tasks": [ { "id": task.id, "title": task.title, "status": task.status.value, "created_at": task.created_at.isoformat(), "completed_at": ( task.completed_at.isoformat() if task.completed_at else None ), "sub_tasks": [ { "id": sub.id, "title": sub.title, "status": sub.status.value, "created_at": sub.created_at.isoformat(), "completed_at": ( sub.completed_at.isoformat() if sub.completed_at else None ), } for sub in task.sub_tasks ], } for task in self.global_tasks ], "completed_count": len(self.completed_tasks), }