Skip to main content
Glama
taylorleese

mcp-toolz

todo_list

Retrieve recent todo snapshots to track tasks and manage project workflows, with options to filter by project path and limit results.

Instructions

List recent todo snapshots

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results
project_pathNoFilter by project path

Implementation Reference

  • Handler logic for the 'todo_list' tool call. Retrieves todo snapshots from storage using the provided limit and optional project_path filter, formats the list, and returns it as formatted text.
    if name == "todo_list":
        limit = arguments.get("limit", 20)
        project_path = arguments.get("project_path")
        snapshots = self.storage.list_todo_snapshots(project_path=project_path, limit=limit)
        result = self._format_todo_snapshots_response(snapshots)
        return [TextContent(type="text", text=result)]
  • Registration of the 'todo_list' tool in the list_tools() method, defining its name, description, and input schema.
        name="todo_list",
        description="List recent todo snapshots",
        inputSchema={
            "type": "object",
            "properties": {
                "limit": {
                    "type": "integer",
                    "description": "Maximum number of results",
                    "default": 20,
                },
                "project_path": {
                    "type": "string",
                    "description": "Filter by project path",
                },
            },
        },
    ),
  • Helper function to format the list of todo snapshots into a human-readable string response for the todo_list tool.
    def _format_todo_snapshots_response(self, snapshots: list[Any]) -> str:
        """Format a list of todo snapshots for response."""
        from models import TodoListSnapshot
    
        if not snapshots:
            return "No todo snapshots found."
    
        lines = [f"Found {len(snapshots)} todo snapshots:\n"]
        for snapshot in snapshots:
            if isinstance(snapshot, TodoListSnapshot):
                active_icon = "★" if snapshot.is_active else "○"
                completed = sum(1 for t in snapshot.todos if t.status == "completed")
                total = len(snapshot.todos)
                context_str = f" - {snapshot.context}" if snapshot.context else ""
    
                lines.append(
                    f"{active_icon} {snapshot.timestamp.isoformat()}\n"
                    f"   ID: {snapshot.id}\n"
                    f"   Project: {snapshot.project_path}\n"
                    f"   Progress: {completed}/{total} completed{context_str}\n"
                )
        return "\n".join(lines)
  • Pydantic schema definitions for Todo item and TodoListSnapshot used in todo_list tool's data handling and storage.
    class Todo(BaseModel):
        """Represents a single todo item."""
    
        content: str
        status: str  # "pending" | "in_progress" | "completed"
        activeForm: str  # noqa: N815 - matches Claude Code TodoWrite tool format
    
    
    class TodoListSnapshot(BaseModel):
        """Represents a saved snapshot of a todo list."""
    
        id: str = Field(default_factory=lambda: str(uuid4()))
        timestamp: datetime = Field(default_factory=datetime.now)
        project_path: str
        git_branch: str | None = None
        todos: list[Todo]
        context: str | None = None
        session_context_id: str | None = None
        is_active: bool = False
        metadata: dict[str, Any] = Field(default_factory=dict)
Behavior2/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 mentions 'recent' but doesn't explain how recency is determined (e.g., time window, ordering), what a 'snapshot' entails, or any operational constraints like rate limits or permissions. This leaves key behavioral traits unspecified.

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 a single, efficient sentence with zero waste. It is appropriately sized and front-loaded, directly stating the tool's action without unnecessary elaboration, making it highly concise and well-structured.

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

Completeness2/5

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

Given no annotations and no output schema, the description is incomplete for a tool with parameters and behavioral nuances. It lacks details on what 'recent' means, how results are returned, or differentiation from siblings, leaving significant gaps in context for effective agent use.

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 input schema fully documents the 'limit' and 'project_path' parameters. The description adds no additional parameter semantics beyond what's in the schema, such as clarifying 'recent' as a parameter or explaining interactions between parameters, meeting the baseline for high schema coverage.

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

Purpose3/5

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

The description 'List recent todo snapshots' states a clear verb ('List') and resource ('todo snapshots'), but is vague about scope and differentiation. It doesn't specify what 'recent' means or how this differs from sibling tools like 'todo_search' or 'todo_get', leaving the purpose somewhat ambiguous.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives like 'todo_search' or 'todo_get'. The description implies a time-based scope ('recent'), but doesn't clarify exclusions or prerequisites, offering minimal usage context.

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/taylorleese/mcp-toolz'

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