Skip to main content
Glama

get_current_task

Retrieve your active focus task from the hierarchical task management system, showing what you're currently working on or indicating when all tasks are completed.

Instructions

Get the task with CURRENT status (your active focus). May be manually set via switch_focus, or automatically determined. In zen state (no tasks OR all tasks completed), returns appropriate message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_current_task' tool. It retrieves the current task from the TaskManager, handles zen state, and constructs a detailed response including task details, focus path, stack depth, siblings to the left, breadcrumb trail, and a navigation hint.
    async def handle_get_current_task(self) -> Dict[str, Any]:
        current = self.task_manager.current_task
        if self.task_manager.is_zen_state:
            if not current:
                return {"message": "No tasks (zen state)", "zen_state": True}
            else:
                return {"message": "All tasks completed (zen state)", "zen_state": True}
    
        if not current:
            return {"error": "No current task"}
            
        siblings_left = self.task_manager.get_siblings_to_left()
        breadcrumb = self.task_manager.get_breadcrumb_trail()
    
        response = {
            "task_id": current.id,
            "title": current.title,
            "body": current.body,
            "focus_path": self.task_manager.get_focus_path(),
            "stack_depth": self.task_manager.get_stack_depth(),
            "siblings_to_left": [{"id": s.id, "title": s.title} for s in siblings_left],
            "breadcrumb_trail": [{"id": t.id, "title": t.title} for t in breadcrumb],
        }
    
        # Add navigation options
        response["navigation_hint"] = (
            "Use switch_focus to work on any task, or complete_current_task when done"
        )
    
        return response
  • The Tool definition including input schema (empty object) and description for the 'get_current_task' tool, provided by the get_tool_definitions method.
        name="get_current_task",
        description="Get the task with CURRENT status (your active focus). May be manually set via switch_focus, or automatically determined. In zen state (no tasks OR all tasks completed), returns appropriate message.",
        inputSchema={"type": "object", "properties": {}},
    ),
  • src/server.py:55-55 (registration)
    Registers the handle_get_current_task function as the handler for the 'get_current_task' tool in the MCP server's tool call dispatcher (handler_map).
    "get_current_task": handlers.handle_get_current_task,
  • src/server.py:40-42 (registration)
    Registers the list_tools handler which returns all tool definitions (including schema for 'get_current_task') via AidderallHandlers.get_tool_definitions().
    @server.list_tools()
    async def list_tools() -> list[Any]:
        return handlers.get_tool_definitions()
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: it retrieves the current task (implying a read operation), explains how the current status is determined (manually via 'switch_focus' or automatically), and specifies the response in 'zen state' (returns an appropriate message). This covers the core functionality and edge cases without contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured, consisting of two sentences that efficiently convey the tool's purpose, how the current task is determined, and the behavior in 'zen state'. Every sentence adds value without redundancy, making it easy for an agent to parse and understand.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (simple retrieval with no parameters) and the absence of annotations and output schema, the description is moderately complete. It explains what the tool does and edge cases ('zen state'), but lacks details on the return format (e.g., structure of the task object or message) and does not fully integrate with sibling tools, leaving some gaps for an agent to infer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, and the input schema has 100% description coverage (though empty). The description does not need to add parameter semantics, as there are no parameters to document. It appropriately focuses on the tool's behavior and context, earning a high baseline score for this dimension.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: to retrieve the task with CURRENT status, which is defined as the active focus. It specifies that this status can be set manually via 'switch_focus' or automatically determined, and describes behavior in 'zen state'. However, it doesn't explicitly differentiate from sibling tools like 'get_completed_tasks' or 'get_stack_overview', which would require a more direct comparison.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage by mentioning that the current task may be set via 'switch_focus' or automatically determined, and references 'zen state' scenarios. However, it lacks explicit guidance on when to use this tool versus alternatives like 'get_big_picture' or 'peek_context', and does not specify prerequisites or exclusions, leaving some ambiguity for the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/cheezcake/aidderall_mcp'

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