delete_plan
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
| Name | Required | Description | Default |
|---|---|---|---|
| newest | No | ||
| oldest | No | ||
| dry_run | No | ||
| plan_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |