Skip to main content
Glama

Cancel monthly plan

cancel_subscription
DestructiveIdempotent

Cancel this account's monthly plan at the end of the paid period: no further renewal is charged, the remaining monthly credit stays usable until the period ends and then expires, and topped-up credit and automatic top-up are untouched. Succeeds and changes nothing when the cancellation is already scheduled. Resuming a plan set to end needs a person: update_subscription with cancelAtPeriodEnd false returns a confirmUrl; once the plan has ended, a new one is started with create_subscription_link. Fails with subscription_missing or subscription_canceled when no plan is running. Same data as PATCH /v1/subscription with cancelAtPeriodEnd true (response schema in /openapi.json).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cancel_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds substantial context beyond them: remaining monthly credit stays usable then expires, topped-up credit and automatic top-up are untouched, and repeated calls are no-ops. It even names the failure codes (subscription_missing, subscription_canceled) and points to /openapi.json for the response shape. It does not mention auth scope or whether the schedule can be inspected before/after, which is why this is a strong 4 rather than a 5.

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 outcome the caller cares about, then the side-effect guarantees, then the alternatives and failure modes. Three dense sentences with no filler, though the final clause about matching the PATCH endpoint and /openapi.json is more implementer-facing than caller-facing.

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?

There is no output schema, and the description compensates by naming the error codes and pointing to the response schema at /openapi.json. For a zero-parameter state-mutating tool, an agent has everything it needs: effects, idempotency, credit consequences, escape hatches, and failure signals.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; it does clarify the equivalence to PATCH /v1/subscription with cancelAtPeriodEnd true, which helps an agent map the call's semantics. Baseline 4 for a no-parameter tool is appropriate.

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?

Names a specific verb and resource ('Cancel this account's monthly plan') and immediately pins the timing ('at the end of the paid period'), which is the non-obvious part of the operation. It also explicitly separates itself from update_subscription (resume path) and create_subscription_link (post-expiry path).

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 explicit when-to-use, what happens on a redundant call ('succeeds and changes nothing when the cancellation is already scheduled'), the alternative for resuming ('update_subscription with cancelAtPeriodEnd false returns a confirmUrl'), and the alternative once the plan has ended ('create_subscription_link'). Alternatives and their selecting conditions are both stated.

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.