Skip to main content
Glama

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
NameRequiredDescriptionDefault
todo_idYesUUID of the todo item

Implementation Reference

  • 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;
        }
      }
    );

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/bba432288-beep/mcp-server-todo'

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