Skip to main content
Glama
kydycode

Enhanced Todoist MCP Server Extended

todoist_reopen_task

Reopen completed Todoist tasks by ID to restore them to active status for continued tracking and management.

Instructions

Reopen a completed task by its ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdYesThe ID of the completed task to reopen

Implementation Reference

  • Handler implementation for the todoist_reopen_task tool. Validates input using isTaskIdArgs type guard, calls todoistClient.reopenTask(taskId), and returns a success message.
    if (name === "todoist_reopen_task") { if (!isTaskIdArgs(args)) { throw new Error("Invalid arguments for todoist_reopen_task"); } await todoistClient.reopenTask(args.taskId); return { content: [{ type: "text", text: `Task ${args.taskId} reopened successfully` }], isError: false, }; }
  • Schema definition for todoist_reopen_task tool, specifying input requirements (taskId as string).
    const REOPEN_TASK_TOOL: Tool = { name: "todoist_reopen_task", description: "Reopen a completed task by its ID", inputSchema: { type: "object", properties: { taskId: { type: "string", description: "The ID of the completed task to reopen" } }, required: ["taskId"] } };
  • src/index.ts:1093-1093 (registration)
    Registration of the REOPEN_TASK_TOOL in the tools array returned by ListToolsRequestSchema handler.
    REOPEN_TASK_TOOL,
  • Helper type guard function isTaskIdArgs used to validate the input arguments for todoist_reopen_task and similar task ID-based tools.
    function isTaskIdArgs(args: unknown): args is { taskId: string; } { return ( typeof args === "object" && args !== null && "taskId" in args && typeof (args as { taskId: string }).taskId === "string" ); }

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/kydycode/todoist-mcp-server-ext'

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