Skip to main content
Glama
taylorleese

mcp-toolz

todo_restore

Restore todo snapshots from previous sessions to continue work where you left off, using active or specific saved versions.

Instructions

Get todo snapshot for restoring (active snapshot or specific ID)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
snapshot_idNoSpecific snapshot ID (optional, defaults to active snapshot)
project_pathNoProject path (used if snapshot_id not provided)

Implementation Reference

  • Core handler logic for the todo_restore tool. Retrieves the todo snapshot (by ID or active for project) from storage and formats it using _format_todo_snapshot_detail.
    if name == "todo_restore":
        snapshot_id = arguments.get("snapshot_id")
        project_path = arguments.get("project_path", os.getcwd())
    
        snapshot = self.storage.get_todo_snapshot(snapshot_id) if snapshot_id else self.storage.get_active_todo_snapshot(project_path)
    
        if not snapshot:
            return [TextContent(type="text", text="No todo snapshot found")]
    
        result = self._format_todo_snapshot_detail(snapshot)
        return [TextContent(type="text", text=result)]
  • Registration of the todo_restore tool in list_tools(), including its schema and description.
    Tool(
        name="todo_restore",
        description="Get todo snapshot for restoring (active snapshot or specific ID)",
        inputSchema={
            "type": "object",
            "properties": {
                "snapshot_id": {
                    "type": "string",
                    "description": "Specific snapshot ID (optional, defaults to active snapshot)",
                },
                "project_path": {
                    "type": "string",
                    "description": "Project path (used if snapshot_id not provided)",
                },
            },
        },
    ),
  • Supporting helper function to format todo snapshot details for the response.
    def _format_todo_snapshot_detail(self, snapshot: Any) -> str:
        """Format a single todo snapshot with full details."""
        from models import TodoListSnapshot
    
        if not isinstance(snapshot, TodoListSnapshot):
            return "Invalid snapshot"
    
        lines = [
            f"Snapshot ID: {snapshot.id}",
            f"Timestamp: {snapshot.timestamp.isoformat()}",
            f"Project: {snapshot.project_path}",
            f"Active: {'Yes' if snapshot.is_active else 'No'}",
        ]
    
        if snapshot.context:
            lines.append(f"Context: {snapshot.context}")
    
        if snapshot.session_context_id:
            lines.append(f"Linked Context ID: {snapshot.session_context_id}")
    
        lines.append("\n## Todo Items\n")
    
        for i, todo in enumerate(snapshot.todos, 1):
            status_icon = {"pending": "○", "in_progress": "⟳", "completed": "✓"}.get(todo.status, "○")
            lines.append(f"{i}. {status_icon} [{todo.status}] {todo.content}")
    
        return "\n".join(lines)
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 states the tool 'gets' a snapshot, implying a read operation, but doesn't clarify if this requires authentication, what happens if the snapshot doesn't exist, or any rate limits. The description is minimal and lacks critical behavioral details needed for safe invocation.

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 extremely concise with just one sentence that directly states the tool's purpose. It's front-loaded with the core action and resource, with no wasted words. Every part of the sentence earns its place by specifying the tool's function and optional parameter behavior.

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 the complexity of a tool that retrieves snapshots for restoration, the description is incomplete. With no annotations and no output schema, the description fails to explain what a 'todo snapshot' entails, what 'restoring' means in this context, or what the return value looks like. The agent lacks sufficient context to understand the tool's full behavior and output.

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?

The input schema has 100% description coverage, with both parameters clearly documented in the schema itself. The description adds no additional parameter semantics beyond what's in the schema, such as format examples or edge cases. Since schema coverage is high, the baseline score of 3 is appropriate as the description doesn't compensate but also doesn't need to.

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 as 'Get todo snapshot for restoring' with the specific resource being 'todo snapshot' and the action being 'get'. It distinguishes from siblings like todo_get, todo_list, and todo_save by specifying it's for snapshot restoration, though it doesn't explicitly contrast with them. The purpose is specific but could be more differentiated from other todo tools.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when to choose this over todo_get or other todo-related tools, nor does it specify prerequisites or exclusions. The lack of usage context leaves the agent without clear direction for tool selection.

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