Skip to main content
Glama

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

NameRequiredDescriptionDefault
snapshot_idYesTodo 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

  • 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"], }, ),
  • 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")]

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