Skip to main content
Glama

delete_task

Remove tasks from your TodoPomo workflow to maintain an organized task list and focus on current priorities.

Instructions

Delete a task

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdYesTask ID to delete

Implementation Reference

  • Handler for delete_task: finds task by ID in data.tasks, removes it using splice, saves data, returns success or error if not found.
    case "delete_task": { const taskIndex = data.tasks.findIndex((t) => t.id === args.taskId); if (taskIndex === -1) { return { content: [ { type: "text", text: JSON.stringify({ success: false, error: "Task not found" }), }, ], }; } data.tasks.splice(taskIndex, 1); saveData(data); return { content: [ { type: "text", text: JSON.stringify( { success: true, message: "Task deleted successfully" }, null, 2 ), }, ], }; }
  • Tool schema definition including name, description, and inputSchema requiring taskId.
    { name: "delete_task", description: "Delete a task", inputSchema: { type: "object", properties: { taskId: { type: "string", description: "Task ID to delete" }, }, required: ["taskId"], }, },
  • src/index.ts:245-247 (registration)
    Registers all tools including delete_task by providing the TOOLS array in response to ListToolsRequest.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: 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/PratyayRajak/todopomo-mcp'

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