Skip to main content
Glama

Cancel scheduled email

cancel_scheduled_email
DestructiveIdempotent

Cancel a pending scheduled send by its scheduleId; the draft stays in Drafts, preserving the content.

Instructions

Cancel a pending scheduled send by its scheduleId. The draft stays in the Drafts folder, so the content is not lost. Get the scheduleId from send_email or forward_email with sendAt, or from list_scheduled_emails.

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": {
      "scheduleId": "<scheduleId>"
    },
    "name": "cancel_scheduled_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountIdNoAccount to operate on. Optional when exactly one account is connected.
scheduleIdYes

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.26.0
    • addedInput schema / properties / accountId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 512,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Account to operate on. Optional when exactly one account is connected."
      +}
  2. Changed1 schema field changedv0.19.0
    • addedInput schema / properties / scheduleId / maxLength
      Added value: +512
  3. Changed1 schema field changedv0.11.1
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  4. Changed1 schema field changedv0.11.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "draftId": {
      +          "type": "string"
      +        },
      +        "draftKept": {
      +          "const": true,
      +          "type": "boolean"
      +        },
      +        "scheduleId": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "scheduleId",
      +        "draftId",
      +        "draftKept"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "data"
      +  ],
      +  "type": "object"
      +}
  5. Addedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is known. The description adds genuinely non-obvious behavioral context that softens the destructive hint: the draft remains in the Drafts folder and the content is not lost. It does not say what happens if the send time has already passed or what error surfaces for an invalid ID.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with the core action and the most agent-relevant reassurance (draft not lost) front-loaded, followed by ID sourcing. No redundant restatement of the name or title.

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 two-parameter mutation with an output schema available, the description covers the action, the ID source, and the side effect on the draft. The remaining gap is edge-case behavior around already-sent or invalid schedules, which is minor at this complexity.

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 50%, with accountId documented in the schema but scheduleId left bare. The description compensates by explaining that scheduleId identifies a pending scheduled send and naming the three sibling tools that produce one, which is meaning the schema does not supply.

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 description opens with a specific verb and resource ('Cancel a pending scheduled send') qualified by 'by its scheduleId', which pins down both the action and the object. An agent can distinguish this from delete_draft or archive_emails 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?

It gives concrete routing guidance for the hard part of using the tool: where the scheduleId comes from (send_email or forward_email with sendAt, or list_scheduled_emails). It does not explicitly state when not to use it, e.g. versus deleting the draft outright, so it stops short of full alternative coverage.

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