Skip to main content
Glama
MAG-Cie

MCP for Microsoft To Do

delete_task

DestructiveIdempotent

Permanently removes a task from a Microsoft To Do list using list ID and task ID.

Instructions

Delete a task permanently.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
list_idYes
task_idYes

Implementation Reference

  • The core handler function that executes the delete_task logic. Sends a DELETE HTTP request to the Microsoft Graph API endpoint /me/todo/lists/{listId}/tasks/{taskId}.
    export async function deleteTask(listId: string, taskId: string): Promise<void> {
      await graphFetch<void>(`/me/todo/lists/${enc(listId)}/tasks/${enc(taskId)}`, {
        method: "DELETE",
      });
    }
  • Zod schema for runtime validation of the delete_task tool's input arguments. Defines required string fields: list_id and task_id.
    delete_task: z.object({
      list_id: z.string(),
      task_id: z.string(),
    }),
  • src/index.ts:591-602 (registration)
    MCP tool registration metadata for the 'delete_task' tool. Includes description ('Delete a task permanently.') and inputSchema defining list_id (string) and task_id (string) as required parameters.
    {
      name: "delete_task",
      description: "Delete a task permanently.",
      inputSchema: {
        type: "object",
        properties: {
          list_id: { type: "string" },
          task_id: { type: "string" },
        },
        required: ["list_id", "task_id"],
      },
    },
  • src/index.ts:1034-1038 (registration)
    Call-site implementation in the main tool dispatch switch-case. Parses arguments using the Zod schema, calls the deleteTask handler, and returns a localized success message via i18n.
    case "delete_task": {
      const a = schemas.delete_task.strict().parse(args);
      await deleteTask(a.list_id, a.task_id);
      return text(t.taskDeleted(a.task_id));
    }
  • Localized message helper (English) that produces the success response 'Task {id} deleted.' after a task is deleted.
    taskDeleted: (id) => `Task ${id} deleted.`,
    subItemDeleted: (id) => `Sub-item ${id} deleted.`,
Behavior3/5

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

Annotations already provide destructiveHint=true and idempotentHint=true, which the description's mention of 'permanently' aligns with but does not significantly extend. The description adds minimal behavioral context beyond what annotations offer.

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

Conciseness3/5

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

The description is very short (one sentence), which is concise but arguably too minimal. It front-loads the core action but omits useful details about preconditions or results, implying a trade-off between brevity and informativeness.

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 the lack of an output schema and 0% parameter description coverage, the description alone provides insufficient context. Important aspects like success/error behavior, idempotency implications, and required permissions are absent.

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

Parameters1/5

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

The input schema has two required parameters (list_id, task_id) with 0% description coverage. The description does not clarify what these parameters represent or their expected format/values, failing to compensate for the schema deficiency.

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 the resource ('a task'), with the qualifier 'permanently' indicating irreversibility. This is specific and distinct from sibling tools like 'complete_task' or 'move_task', though it does not explicitly differentiate from 'batch_delete_tasks'.

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 vs. alternatives like 'batch_delete_tasks' or 'complete_task'. No when-to-use or when-not-to-use context is given.

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/MAG-Cie/mcp-microsoft-todo'

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