Skip to main content
Glama
vitalio-sh

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"
      );
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It states the action but lacks behavioral details like permission requirements, whether it's reversible, rate limits, or what happens if the task isn't completed. This is a mutation tool with no safety or operational context disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste—it directly states the action and key constraint ('completed task'). It is front-loaded and appropriately sized for a simple tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description is minimal but covers the basic action. It lacks details on behavioral traits, error conditions, or return values, making it adequate but with clear gaps given the complexity of a write operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with the parameter 'taskId' fully documented in the schema. The description adds no additional parameter meaning beyond implying it's for a completed task, which is already covered by the tool's purpose. Baseline 3 is appropriate as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Reopen') and resource ('a completed task'), specifying it acts on completed tasks by ID. It distinguishes from siblings like 'todoist_complete_task' by indicating opposite action, though not explicitly naming alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'completed task'—it should be used when a task is completed and needs reopening. No explicit when-not or alternative guidance is provided, such as using 'todoist_update_task' for other modifications or noting it's only for completed tasks.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/vitalio-sh/todoist-mcp-server-ext'

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