Skip to main content
Glama

Turbo Notify: WhatsApp for AI agents

Cancel a calendar event already sent

cancel_calendar_event
Destructive

Cancel a WhatsApp calendar event this number already sent.

The event stays in the chat marked as canceled, and WhatsApp tells the guests. Send the same name and start_at the event has, plus the details you want the canceled card to still show (description, end_at, join_link, location, has_reminder with reminder_offset_sec, extra_guests_allowed): the canceled event is shown with what you send here, and anything you leave out disappears from it.

Cancel when the date, time or place change and the guests must accept again: cancel the old event here, then send the new one with send_calendar_event, because the old answer does not carry over to a new event. To correct a mistake (a typo, the description, a link) use edit_calendar_event instead, and the guests keep their answer. A cancel does not change the entry a guest already added to their own calendar with the card's "Add to calendar" button. It stays on the old date, and adding again creates a second entry, which only the guest can delete.

Only a calendar event can be canceled. Using this tool on any other message answers invalid_request: message_not_editable; to take back a message of another kind, use delete_message.

Only a message sent THROUGH Turbo Notify can be canceled. One typed on the phone itself belongs to the same number but cannot be canceled here, and neither can a message received from someone else.

The 15-minute limit for a text or a caption does not apply to a calendar event.

The cancel is accepted at once and the outcome arrives as an event: message.edited when it worked, message.edit.failed when WhatsApp or the platform could not apply it. Read them with list_events.

The number first appears online and its unread messages in that conversation are marked as read, then the cancel happens. Opening the conversation this way is automatic and uses no quota of its own.

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": {
      "message_id": "<message_id>",
      "name": "<name>",
      "start_at": "<start_at>"
    },
    "name": "cancel_calendar_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe event's title, up to 200 characters.
end_atNoWhen the event ends. ISO 8601 with an offset, and later than `start_at`.
locationNoWhere the event takes place: a map pin with an optional name and address.
start_atYesWhen the event starts. ISO 8601 with an offset, for example `2026-09-10T14:00:00Z`. A time without an offset is rejected.
join_linkNoA link guests can open to join, for example a video call.
message_idYesMessage id (`msg_…`), as returned by a send or by `list_messages`.
descriptionNoDetails shown on the event, up to 2000 characters.
has_reminderNoSet to true to remind guests before the event. Off when left out.
number_aliasNoWhich of the organization's WhatsApp numbers this acts on: `main`, the alias of an extra number, or the number's `id` (`num_…`), which stays the same when the alias is renamed. Call `list_numbers` to see them. Defaults to the main number.main
reminder_offset_secNoHow many seconds before the event the reminder goes off, for example 600 for ten minutes. Only takes effect together with `has_reminder`.
extra_guests_allowedNoSet to true to let guests bring extra people. Off when left out.

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds much beyond them: the event persists marked as canceled, guests are notified, omitted fields disappear (replacement semantics), the guest's own calendar entry is unaffected and re-adding duplicates, the 15-minute edit limit doesn't apply, and the result is asynchronous via message.edited / message.edit.failed readable with list_events. It even discloses the side effect that the number goes online and unread messages get marked as read.

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 purpose and the core replacement-semantics warning. It is long and dense across eight paragraphs, but each block carries distinct, load-bearing information (workflow, error code, provenance limits, async outcome, side effect); minor redundancy in the repeated 'only ... can be canceled' framing keeps it from a 5.

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 an 11-parameter destructive mutation with an output schema, this covers the operational contract: required matching fields, side effects, failure mode, and how the outcome arrives. An agent could call this correctly without further exploration.

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 3 is the floor, and the description earns above it by explaining the non-obvious rule that name and start_at must match the original while the remaining fields overwrite the canceled card and any omitted field disappears. It does not cover number_alias or message_id beyond what the schema says, so it is not exhaustive.

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?

First sentence gives a specific verb and resource with scope: "Cancel a WhatsApp calendar event this number already sent." It distinguishes itself from the three siblings that matter (send_calendar_event, edit_calendar_event, delete_message) explicitly in the body.

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?

Gives explicit when-to-use (date/time/place changed and guests must re-accept) with a defined two-step workflow, names the alternative for corrections (edit_calendar_event, guests keep their answer), and names delete_message for non-event messages. Also states when it cannot be used at all: messages typed on the phone or received from others.

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.