Skip to main content
Glama

Delete an event

delete_event
DestructiveIdempotent

Remove a task from the timeline: a one-off event, one occurrence of a repeating event, or the whole series. The task itself stays in its list. This cannot be undone from here; confirm with the user first if they did not clearly ask for it. Take event_id and instance_date from the same entry in list_events: instance_date is that occurrence’s date as YYYY-MM-DD and is always required, but it is ignored for all_events. scope decides how much goes: this_instance removes only that occurrence and the series carries on; this_and_future_events ends the series the day before instance_date, so earlier occurrences stay and that one and later ones, with their completion marks, are removed; all_events removes the whole series. For a one-off (non-repeating) event every scope removes the event. An unknown event_id returns an error and nothing is deleted. To move or change an event instead of removing it use update_event, and to delete the task itself use delete_tasks.

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": {
      "event_id": "<event_id>",
      "instance_date": "<instance_date>",
      "scope": "<scope>"
    },
    "name": "delete_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYesHow much to remove: this_instance (only that occurrence), this_and_future_events (that occurrence and every later one), or all_events (the whole series). A one-off event is removed whatever the scope
event_idYesId of the event to delete, from the same list_events entry as instance_date
instance_dateYesDate of the occurrence to act on, YYYY-MM-DD, copied from that entry’s instance_date in list_events. Always required, but ignored when scope is all_events

Output Schema

NameRequiredDescriptionDefault
modeYesWhat was done to the event
taskNoThe task that is scheduled, when the reply includes it
eventNoThe created or updated event
listIdNoId of the list the scheduled task is in
eventIdNoId of the event; present for updated, deleted, completed and uncompleted events
successYesTrue when the change was applied

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already flag destructiveHint=true, readOnlyHint=false and idempotentHint=true, but the description adds substantive behavior: the action cannot be undone from here, an unknown event_id errors with nothing deleted, and this_and_future_events ends the series the day before instance_date while keeping earlier occurrences and dropping their completion marks. That is real consequence detail an agent cannot read off the annotations.

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 operation and the destructive warning, then the id rules, then the scope semantics, then the sibling routing. It is long for a three-parameter tool and repeats the scope enum text, but nearly every sentence carries decision-relevant information.

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?

Covers irreversibility, id sourcing, all three scope outcomes, edge cases for one-off events and unknown ids, and routing to alternatives. With an output schema present, return values need not be explained, so nothing material 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, and the description still adds meaning: instance_date is always required yet ignored when scope is all_events, and both ids must be copied from the same list_events entry. The series-ending semantics of this_and_future_events also go beyond the enum text, though most scope detail is duplicated from the schema.

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?

Opens with a specific verb and resource ("Remove a task from the timeline") and immediately scopes it to three cases: a one-off event, one occurrence, or the whole series. It also names what survives ("The task itself stays in its list"), which separates it cleanly from 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 Guidelines5/5

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

Explicit when-to-use alternatives are given: use update_event to move or change an event, and delete_tasks to remove the task itself. It also states a prerequisite for the ids (take event_id and instance_date from the same list_events entry) and a confirmation policy for ambiguous requests.

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