Skip to main content
Glama

get_completed_tasks

View chronological history of all completed tasks in a permanent archive separate from the workspace structure. Useful for reviewing accomplishments over time.

Instructions

View chronological history of ALL completed tasks. This is a permanent archive separate from the visible structure. Tasks remain here even after being removed from the workspace. Useful for reviewing what you've accomplished over time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderNoOrder of completed taskschronological

Implementation Reference

  • The async handler function that processes the get_completed_tasks tool call. It retrieves completed tasks from the task manager using the specified order and formats them into a JSON response with count and task details including id, title, body, and completion time.
    async def handle_get_completed_tasks(
        self, order: str = "chronological"
    ) -> Dict[str, Any]:
        try:
            tasks = self.task_manager.get_completed_tasks(order)
            return {
                "count": len(tasks),
                "tasks": [
                    {
                        "id": t.id,
                        "title": t.title,
                        "body": t.body,
                        "completed_at": (
                            t.completed_at.isoformat() if t.completed_at else None
                        ),
                    }
                    for t in tasks
                ],
            }
        except ValueError as e:
            return {"error": str(e)}
  • The tool schema definition including input schema for the 'order' parameter (chronological or logical, default chronological). Part of get_tool_definitions().
    Tool(
        name="get_completed_tasks",
        description="View chronological history of ALL completed tasks. This is a permanent archive separate from the visible structure. Tasks remain here even after being removed from the workspace. Useful for reviewing what you've accomplished over time.",
        inputSchema={
            "type": "object",
            "properties": {
                "order": {
                    "type": "string",
                    "enum": ["chronological", "logical"],
                    "description": "Order of completed tasks",
                    "default": "chronological",
                }
            },
        },
    ),
  • src/server.py:60-62 (registration)
    Registration of the get_completed_tasks tool in the server handler_map, mapping it to the handlers.handle_get_completed_tasks function with order argument.
    "get_completed_tasks": lambda: handlers.handle_get_completed_tasks(
        arguments.get("order", "chronological")
    ),
  • Helper method in TaskManager that returns the list of completed tasks, either in chronological order (default) or reversed (logical).
    def get_completed_tasks(self, order: str = "chronological") -> List[Task]:
        if order == "chronological":
            return self.completed_tasks.copy()
        elif order == "logical":
            return list(reversed(self.completed_tasks))
        else:
            raise ValueError("Order must be 'chronological' or 'logical'")
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 and does well by disclosing key behavioral traits: it's a read-only operation ('view'), the data is permanent/archival ('permanent archive'), tasks persist even after workspace removal, and it provides chronological history. It doesn't mention rate limits or authentication needs, but covers the core behavior adequately.

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 appropriately sized with three sentences that each add value: first states the core function, second explains archival nature, third gives usage context. It's front-loaded with the main purpose and has zero wasted words.

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

Completeness4/5

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

For a simple read tool with one parameter (fully documented in schema) and no output schema, the description provides good context about the archival nature and persistence of data. It could mention the return format or pagination, but given the low complexity, it's reasonably complete.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already fully documents the single parameter 'order' with its enum values and default. The description doesn't add any parameter-specific information beyond what the schema provides, meeting the baseline expectation.

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

Purpose5/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 with specific verbs ('view chronological history') and resource ('ALL completed tasks'), and distinguishes it from siblings by emphasizing it's a 'permanent archive separate from the visible structure' and that tasks remain even after removal from the workspace.

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

Usage Guidelines4/5

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

The description provides clear context for when to use this tool ('useful for reviewing what you've accomplished over time'), but doesn't explicitly mention when not to use it or name specific alternatives among the sibling tools (like get_current_task or get_stack_overview).

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