Skip to main content
Glama

Delete tasks

delete_tasks
DestructiveIdempotent

Permanently delete one or more tasks from a list, together with the user’s scheduled timeline events for them. Deleting a task also deletes all of its subtasks, while deleting a subtask removes only that subtask; every event scheduled for a deleted task or subtask is removed, a repeating series as a whole with all of its occurrences, and the result says how many events went. Events another collaborator scheduled for a task on a shared list are theirs and stay. task_ids takes 1 to 100 ids of tasks or subtasks, every one of them must be in the list given by list_id, and duplicate ids are ignored. All-or-nothing: if any id is not in that list (including one that was already deleted), the call returns an error naming the missing ids and nothing is deleted. It works on any list the user can edit; on a shared list the other people get a short notification that it changed, which never includes the task text. This cannot be undone from here; confirm with the user first if they did not clearly ask for it. To keep a task but take it off the timeline use delete_event, to keep it and mark it done use complete_tasks, and to delete a whole list use delete_list.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "list_id": "<list_id>",
      "task_ids": "<task_ids>"
    },
    "name": "delete_tasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
list_idYesId of the list that holds all of the tasks, from list_lists. The user must be able to edit it
task_idsYesIds of the tasks or subtasks to delete, from get_list. 1 to 100, all in list_id; duplicates are ignored. A task’s subtasks are deleted with it

Output Schema

NameRequiredDescriptionDefault
deletedYesIds of the deleted tasks
events_deletedYesHow many of the user’s scheduled timeline events were removed with them (a repeating series counts once)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Far beyond the annotations: cascade behavior for subtasks and repeating series, preservation of collaborator-scheduled events, all-or-nothing atomicity with error naming missing ids, notification behavior on shared lists, and irreversibility. Annotations only flag destructive/readOnly; the description supplies the mechanics an agent needs before invoking.

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

Conciseness4/5

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

Front-loaded with the core action and irreversible-destruction fact, then details, then alternatives last. It is long and reads as a run-on paragraph; splitting the cascade/atomicity/alternatives into distinct sentences or bullets would improve scanning without losing content.

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

Completeness5/5

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

For a destructive, cascading delete with 2 fully documented parameters and an output schema, the description covers preconditions, side effects, failure mode, and alternatives. Nothing an agent needs to call it safely is missing.

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?

Schema coverage is 100%, so the baseline is 3; the description adds real semantics on top, notably the cross-field constraint that every id must belong to list_id and the all-or-nothing error contract naming missing ids. Duplicate-ignoring and the 1-100 bound largely restate the schema, so it is not a full 5.

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

Purpose5/5

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

States a specific verb and resource ('Permanently delete one or more tasks from a list') plus the cascade scope (timeline events, subtasks). The distinction between deleting a task and deleting a subtask is spelled out, so an agent can tell it apart from delete_event, complete_tasks, and delete_list.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use delete_event to take a task off the timeline, complete_tasks to mark done, delete_list for whole lists. It also states the precondition (list the user can edit) and a confirmation rule when the user has not clearly asked for deletion.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources