Skip to main content
Glama

cancel_subscription

DestructiveIdempotent

Cancel your user's paid plan at the end of the current billing period. Only call this when your user asked to cancel. A reason is required: ask your user why they are cancelling and pass their answer; never pick a reason for them. Reasons: got_what_i_needed (I got the data I needed), too_expensive (Too expensive), missing_data (Missing data or features I need), reliability (Errors or slow responses), not_using (Not using it enough), switched (Switched to another service), other (Something else). "other" needs a comment. keep_subscription undoes it. Costs no quota.

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

Input Schema

NameRequiredDescriptionDefault
clientNoYour name, such as Claude Code or Cursor.
reasonYesWhy your user is cancelling, in their words mapped to one id. Ask them; never guess.
commentNoYour user's own words about why. Required when reason is other.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true) the description discloses that cancellation is deferred to period end rather than immediate, that it is reversible via keep_subscription, and that it costs no quota. These are exactly the behavioral facts an agent needs before invoking a destructive mutation.

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, timing, and the usage gate before the enumeration. The inline list of all seven reason ids with labels is somewhat long and partly duplicates the schema enum, but it earns most of its space because the agent must relay those options to the user.

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?

No output schema exists, yet the description covers timing, reversibility, quota cost, required user interaction, and the reason/comment rule for a small 3-parameter tool. Nothing an agent needs to call it correctly 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 baseline is 3; the description exceeds it by glossing each reason id with a human-facing label and by stating the conditional requirement that 'other' needs a comment. It does not explain the optional `client` parameter, which is the only remaining gap.

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?

States a specific verb and resource ('Cancel your user's paid plan') plus the timing ('at the end of the current billing period'), which an agent cannot infer from the name alone. It also names the sibling that reverses it ('keep_subscription undoes it'), making it distinguishable from that alternative.

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 gating condition: 'Only call this when your user asked to cancel,' which rules out proactive cancellation. It names the alternative (keep_subscription) and its effect, and gives procedural guidance for collecting the required reason ('ask your user why... never pick a reason for them').

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