todo_delete
Delete a specific todo snapshot by ID to remove completed or outdated tasks from your task management system.
Instructions
Delete a specific todo snapshot by ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| snapshot_id | Yes | Todo snapshot ID to delete |
Input Schema (JSON Schema)
{
"properties": {
"snapshot_id": {
"description": "Todo snapshot ID to delete",
"type": "string"
}
},
"required": [
"snapshot_id"
],
"type": "object"
}
Implementation Reference
- src/mcp_server/server.py:302-312 (registration)Registers the 'todo_delete' tool in the MCP server's list_tools method, including its schema which requires a 'snapshot_id' string.Tool( name="todo_delete", description="Delete a specific todo snapshot by ID", inputSchema={ "type": "object", "properties": { "snapshot_id": {"type": "string", "description": "Todo snapshot ID to delete"}, }, "required": ["snapshot_id"], }, ),
- src/mcp_server/server.py:521-526 (handler)Handler implementation in call_tool method: extracts snapshot_id, calls storage.delete_todo_snapshot, returns success or 'not found' message.if name == "todo_delete": snapshot_id = arguments["snapshot_id"] deleted = self.storage.delete_todo_snapshot(snapshot_id) if deleted: return [TextContent(type="text", text=f"ā Todo snapshot {snapshot_id} deleted")] return [TextContent(type="text", text=f"Todo snapshot {snapshot_id} not found")]