Skip to main content
Glama

Cancel a subscription

cancel_subscription
Destructive

IRREVERSIBLE: Cancel a subscription

Cancels at the end of the term: everything keeps working until endDate, then the plan ends.

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": {
      "subscriptionId": "<subscriptionId>",
      "body": "<body>"
    },
    "name": "cancel_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe request fields as one JSON object.
confirmNoLeave out on the first call. EchoCall then answers with a confirmation value. Ask the user for a clear yes, then repeat the call with the same arguments and this value.
subscriptionIdYessubscriptionId

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the safety bar is met structurally; the description still adds real information by explaining that the plan does not end immediately but at `endDate`. The one weak spot is the tension between the "IRREVERSIBLE" banner and the deferred effect, which is not reconciled (it never says whether the cancellation can be undone before `endDate`).

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?

Two short sentences with the irreversible warning front-loaded ahead of the behavioral detail, which is the right ordering. Minor waste: the first line repeats the tool title before delivering new information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-idempotent mutation with no output schema, the description covers the essential timing consequence but says nothing about what the caller gets back, whether errors surface for already-cancelled or non-existent subscriptions, or how the cancellation relates to a resumable wind-down period. Annotations plus the schema carry most of the remaining weight, keeping it merely adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the two-step `confirm` handshake plus the nested `body.reason` field are documented in the schema itself, so the baseline applies. The description adds no parameter-level meaning, not even noting that a `reason` is accepted or what `subscriptionId` refers to.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ("Cancel a subscription") and adds a concrete effect ("Cancels at the end of the term: everything keeps working until `endDate`"). It is not a tautology and the end-of-term behavior implicitly separates it from an immediate-effect cancellation, but it never names a sibling such as cancel_pending_plan_change or resume_subscription to route the agent explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: an agent learns that the subscription is cancelled at period end, which is useful context for deciding whether to call it now. There is no statement of when this tool should be chosen over adjacent tools (e.g. cancelling a pending plan change, or undoing a cancellation with resume_subscription), and no prerequisites beyond the confirmation flow that lives in the schema.

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.