Skip to main content
Glama
vitalio-sh

Enhanced Todoist MCP Server Extended

todoist_delete_label

Remove a label from your Todoist workspace by specifying its ID to clean up your task organization system.

Instructions

Delete a label by its ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelIdYesThe ID of the label to delete.

Implementation Reference

  • Handler that checks arguments with isLabelIdArgs, calls todoistClient.deleteLabel on the provided labelId, and returns success or error message.
    if (name === "todoist_delete_label") {
      if (!isLabelIdArgs(args)) {
        return { content: [{ type: "text", text: "Invalid arguments for delete_label" }], isError: true };
      }
      try {
        await todoistClient.deleteLabel(args.labelId);
        return { 
          content: [{ type: "text", text: `Label ${args.labelId} deleted.` }], 
          isError: false 
        };
      } catch (error: any) {
        return { content: [{ type: "text", text: `Error deleting label: ${error.message}` }], isError: true };
      }
    }
  • Tool schema defining the inputSchema requiring a labelId string.
    const DELETE_LABEL_TOOL: Tool = {
      name: "todoist_delete_label",
      description: "Delete a label by its ID.",
      inputSchema: {
        type: "object",
        properties: {
          labelId: { type: "string", description: "The ID of the label to delete." }
        },
        required: ["labelId"]
      }
    };
  • src/index.ts:1113-1113 (registration)
    The tool is registered by inclusion in the tools array returned by the ListToolsRequestSchema handler.
    DELETE_LABEL_TOOL,
  • Type guard helper function used to validate arguments for label tools like todoist_delete_label.
    function isLabelIdArgs(args: unknown): args is {
      labelId: string;
    } {
      return (
        typeof args === "object" &&
        args !== null &&
        "labelId" in args &&
        typeof (args as { labelId: string }).labelId === "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 for behavioral disclosure. It states the action is 'Delete,' which implies a destructive mutation, but doesn't specify whether deletion is permanent, reversible, requires specific permissions, or affects associated tasks. For a destructive tool with zero annotation coverage, this leaves significant behavioral gaps.

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, direct sentence with zero wasted words. It front-loads the core action ('Delete') and resource, making it highly efficient. Every word earns its place, adhering perfectly to conciseness principles.

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

Completeness2/5

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

Given this is a destructive mutation tool with no annotations and no output schema, the description is incomplete. It doesn't cover behavioral aspects like side effects, error conditions, or return values. For a tool that permanently removes data, more context is needed to ensure safe and correct usage.

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

Parameters4/5

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

The description adds minimal semantics beyond the input schema, which has 100% coverage and clearly describes the single parameter 'labelId.' However, with only one parameter and high schema coverage, the baseline is strong. The description reinforces the parameter's purpose but doesn't provide additional context like format examples or validation rules.

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 action ('Delete') and resource ('a label by its ID'), making the purpose immediately understandable. It doesn't explicitly distinguish from sibling tools like todoist_delete_project or todoist_delete_task, but the specificity of 'label' provides adequate differentiation. This is clear but lacks explicit sibling comparison.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a valid label ID), consequences of deletion, or when to choose this over other deletion tools like todoist_delete_project. Without such context, the agent must infer usage from the name alone.

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