Skip to main content
Glama

Cancel the paid plan

cancel_subscription
DestructiveIdempotent

Needs a key; costs no credits. Cancels the paid plan on the account that owns this key at the end of the period already paid for; it works until then and does not renew. Only when your user asks to cancel. A reason is required: Ask your user why they are cancelling. Do not guess or pick a reason for them. Send the matching reason id and their own words in comment (comment is required for reason "other"). 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). Undo with keep_subscription.

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

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy your user is cancelling, in their terms. Ask them; never guess.
commentYesYour user's own words about why, up to 500 characters. At least 3 characters when reason is "other"; an empty string only if they gave nothing beyond the reason.

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 (destructive=true, idempotent=true), the description discloses the credit cost (none), the auth requirement (needs a key), and the crucial behavioral nuance that the plan remains active until the paid period ends rather than terminating immediately. That end-of-period behavior is the single most consequential thing an agent could get wrong and it is stated plainly.

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 the highest-value facts (cost, auth, end-of-period timing, user-consent gate) before the long reason enumeration. The reason list is dense but each entry is a short id-to-label pair; only the repeated anti-guessing instruction slightly duplicates the schema text.

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 a destructive, two-parameter mutation with no output schema, the description covers cost, auth, timing, consent gating, reason selection, the "other" special case, and the reversal path. An agent has everything needed to invoke it correctly and to explain the outcome to the user.

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 the baseline is 3, but the description goes further by expanding each opaque enum id into a human-readable label ("too_expensive (Too expensive)"), which lets the agent map a user's complaint to the right id. It also reinforces the "other" comment requirement and the prohibition on fabricating a reason, though the length/character constraints themselves remain 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?

States a specific verb and resource ("Cancels the paid plan on the account that owns this key") plus the exact timing semantics ("at the end of the period already paid for; it works until then and does not renew"). It also implicitly separates itself from the reversal sibling by naming keep_subscription, so an agent can identify it without opening the 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?

Gives an explicit gating condition ("Only when your user asks to cancel") and names the alternative action for the opposite intent ("Undo with keep_subscription"). It also adds a procedural prerequisite — ask the user for a reason, never guess — which is exactly the guidance an agent needs before invoking.

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