Skip to main content
Glama

delete_plan

DestructiveIdempotent

Remove only the calendar events a plan created, previewing matches with a default dry run before deleting anything after confirmation.

Instructions

Remove every event a plan created, and nothing else.

Only events whose uid is exactly planner-<plan_id>-w- are selected. With dry_run=true (the default) it lists them and deletes nothing. Only call with dry_run=false after the user has seen the list and agreed.

Args: plan_id: The plan's id (the id in its plan.yaml). dry_run: true = list what would be deleted; false = delete it. oldest: Optional first day to search (default: one year ago). newest: Optional last day to search (default: two years ahead).

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": {
      "plan_id": "<plan_id>"
    },
    "name": "delete_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
newestNo
oldestNo
dry_runNo
plan_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is partly covered. The description adds real value beyond them: the exact selection rule (uid = planner-<plan_id>-w<NN>-<day>), the dry-run default, and the human-confirmation gate. It stops short of saying what happens to plan.yaml itself or whether deletion is partial on failure.

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?

Scope and safety warning are front-loaded before the Args block, so the critical information lands first. Slightly padded by the explicit Args listing, but every line adds a fact not present elsewhere.

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

Completeness4/5

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

For a destructive, idempotent mutation with an output schema and four undocumented parameters, the description covers selection scope, defaults, and the confirmation workflow. Only the fate of the plan definition itself and the date format are left unspecified.

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 0%, so the description carries the burden and largely does: all four parameters are explained, including the meaning of dry_run and the search window. It also supplies effective defaults ('one year ago', 'two years ahead') that the schema only shows as null, though it never states the expected date string format.

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?

Names a specific verb and resource ('Remove every event a plan created') and immediately bounds the scope with 'and nothing else', plus the exact uid pattern used for selection. An agent can distinguish this from push_plan or get_planned without inspecting any schema.

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

Usage Guidelines4/5

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

Gives an explicit when-to-use protocol: dry_run=true is the default listing mode, and destructive use is gated on the user having seen the list and agreed. It doesn't name sibling tools as alternatives, but the when/when-not conditions are unambiguous.

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