Skip to main content
Glama
amazing-marvin-complete-mcp

amazing-marvin-complete-mcp

delete_task

DestructiveIdempotent

Permanently deletes a task without trash or undo, clears reminders, and handles recurring-task scopes; removes projects or categories only when they have no open children.

Instructions

Delete a task permanently, with no trash and no undo. Deletion via the API bypasses the app's trash and cannot be undone — use only when the user explicitly wants a deletion. If the task has reminders they are cleared and the server entries removed before the deletion, so that no notification arrives. An occurrence of a recurring task follows the app's two choices: 'this' adds the occurrence's day to the recurring task's deletedDates and deletes the occurrence; 'all' deletes all open occurrences and then the recurring task, completed occurrences are kept. If the recurring task is already deleted, only the occurrence is deleted. If a step fails the response says which were done. The app's view: the web app (2026-12-01) and the desktop app (2026-12-02) removed the row within seconds without a reload, and it did not come back (verified). Older clients could keep showing the row; then reload before touching it. Occurrence of a recurring task with a reminder (reminderTimes): the occurrence's rt_ server reminders are removed too. A 404 on deletion counts as already deleted (already_absent) and the chain goes on. A recurring task (db RecurringTasks) is deleted with scope 'all', on an occurrence or on the recurring task's own id — also before it has any occurrences (they are created only when a client opens after the day rolls over). Habit recurrences are not deleted here. Projects and categories: deleted only without open children — the tool reads /children first (one more call) and otherwise refuses, with the list, so that no children are left with a parent that does not exist. Completed children do not show in /children and are left behind with the parent gone. The project's notebook is not deleted (as in the app); the response gives its id for delete_notebook.

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": {
      "item_id": "<item_id>"
    },
    "name": "delete_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoOccurrence of a recurring task: 'this' = only this one (default), 'all' = the whole recurring task with all open occurrences (completed ones are kept). The recurring task's own id is accepted only with 'all'this
item_idYesID of the task (or of a project/category without open children) to delete

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.3
    • changedInput schema / properties / item_id / description
      Previous value: -"ID of the document to delete"New value: +"ID of the task (or of a project/category without open children) to delete"
    • addedInput schema / properties / scope
      Added value: +{
      +  "default": "this",
      +  "description": "Occurrence of a recurring task: 'this' = only this one (default), 'all' = the whole recurring task with all open occurrences (completed ones are kept). The recurring task's own id is accepted only with 'all'",
      +  "enum": [
      +    "this",
      +    "all"
      +  ],
      +  "type": "string"
      +}
  2. First observedv1.3.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description goes well past them: reminders are cleared and server entries removed, a 404 is treated as already_absent, the /children pre-check adds a call and refuses with a list on failure, and completed children are left orphaned. The 'no trash, no undo' and stale-client caveats are exactly the irreversible consequences an agent needs before invoking a destructive tool.

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 critical constraints are front-loaded in the first two sentences, which is good, but the body sprawls across many sentences with verification asides and dates ('the web app (2026-12-01) and the desktop app (2026-12-02) removed the row within seconds') that could be compressed to one clause. Several recurring-task edge cases are restated from different angles.

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 tool with complex recurring-entity semantics, the description covers the surprising cases (habits excluded, children pre-check, notebook retained, 404 tolerated). Since an output schema exists, it does not need to enumerate return fields, and its brief mentions of the response ('says which were done') are a bonus rather than a substitute.

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 description coverage is 100%, so the baseline is 3; the description adds meaning by spelling out what the 'this' and 'all' scopes actually do to a recurring task and noting that the recurring task's own id is accepted only with 'all'. Most of the parameter semantics live in the schema already, so the gain is incremental rather than substantial.

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?

The opening sentence pairs a specific verb with a specific resource and immediately qualifies the scope: 'Delete a task permanently, with no trash and no undo.' It differentiates itself from siblings by naming what it does not handle (habit recurrences) and by pointing to delete_notebook for the project's notebook.

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?

It explicitly constrains use ('use only when the user explicitly wants a deletion') and provides exclusions and alternatives: habit recurrences are not deleted here, and projects/categories are refused when open children exist. The 'this' vs 'all' choice is explained with the condition that selects each, so an agent does not have to infer it from the enum alone.

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