delete_todo
Remove a specific todo item from the list by providing its unique identifier. This action permanently deletes the selected task.
Instructions
Delete a todo item.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| todo_id | Yes | UUID of the todo item |
Implementation Reference
- src/index.ts:148-166 (handler)The 'delete_todo' tool is registered and implemented in src/index.ts, which makes a DELETE request to /api/todos/${todo_id} to remove the specified todo.
mcp.tool( "delete_todo", "Delete a todo item.", { todo_id: z.string().describe("UUID of the todo item"), }, async ({ todo_id }) => { try { await makeRequest("DELETE", `/api/todos/${todo_id}`); return { content: [{ type: "text", text: "Todo deleted successfully." }], }; } catch (e: unknown) { if ((e as NodeJS.ErrnoException).code === "404") return { content: [{ type: "text", text: "Todo not found." }] }; throw e; } } );