Skip to main content
Glama
SMSTunnel

SMSTunnel

Cancel a scheduled text

cancel_scheduled_text
DestructiveIdempotent

Cancel a text scheduled with send_sms (send_at), before it goes out, by its scheduledId. It is then never sent. - Cancel only a text the user asked to cancel.

Instructions

Cancel a text scheduled with send_sms (send_at), before it goes out, by its scheduledId. It is then never sent.

  • Cancel only a text the user asked to cancel. When it is not clear which one, list them with list_scheduled_texts and ask the user.

  • A text that already went out can't be canceled; the answer says what happened to it.

  • A canceled text can't be brought back: to send it after all, schedule it again with send_sms, with the user's OK.

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": {
      "scheduledId": "<scheduledId>"
    },
    "name": "cancel_scheduled_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
scheduledIdYesThe scheduledId that send_sms or list_scheduled_texts returned.

Output Schema

NameRequiredDescriptionDefault
toYes
errorNoWhy it failed, e.g. limit_reached or phone_not_found.
sendAtNoWhen it goes out (or went out), ISO 8601 in UTC.
statusYesscheduled, sent, failed or canceled.
messageYes
phoneIdNoThe phone named when it was scheduled; without it, the default phone sends it.
messageIdNoSet once it went out; pass it to get_message_status.
scheduledIdYesPass it to cancel_scheduled_text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

A4.9/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, so the description does not need to re-announce that this is a mutation; instead it explains the consequence (the message is never sent), the irreversibility ("can't be brought back"), and the failure behavior for already-sent messages ("the answer says what happened to it"). Those are behavioral traits the annotations cannot express, and nothing in the text conflicts with them.

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?

The effect of the call is front-loaded in the first sentence, and the three bullets each carry a distinct, load-bearing rule (confirmation scope, already-sent failure, irreversibility plus recovery). There is no filler or repetition of the annotation or schema fields.

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?

This is a single-parameter mutation whose output schema already covers the return shape, so the description only needs to cover intent, safety, and edge cases, which it does. An agent has everything required to decide whether to call it, how to obtain the scheduledId, and what to do when the cancel cannot succeed.

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% and the schema already names scheduledId with its provenance, so the baseline would be 3; the description adds value by tying the identifier back to the producing tools (send_sms with send_at, or list_scheduled_texts) and to the pre-send timing window. It does not restate the length constraints, but those are already fully documented in 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?

The description gives a specific verb and resource ("Cancel a text scheduled with send_sms") plus the scoping constraint "before it goes out, by its scheduledId" and the net effect "It is then never sent." That is enough for an agent to separate it from send_sms (which creates the schedule) and list_scheduled_texts (which enumerates them) without opening 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 Guidelines5/5

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

It states the positive condition (cancel only a text the user asked to cancel), the disambiguation path when the target is ambiguous (list with list_scheduled_texts and ask the user), the negative case (an already-sent text can't be canceled), and the recovery path (re-schedule with send_sms with the user's OK). Both when-to-use and when-not-to-use are explicit, along with named alternatives.

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