Skip to main content
Glama

polar-sh

Cancel a subscription

polar_cancel_subscription
Destructive

Cancel a subscription at the end of its current period. The customer keeps access until then. Polar: PATCH /v1/subscriptions/{id}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
subscription_idYesThe subscription to cancel.
customer_cancellation_reasonNoWhy the customer is leaving, for your churn reporting.
customer_cancellation_commentNoThe customer's own words.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only provide destructiveHint=true, so the description carries most of the load and does so well: it discloses that cancellation is deferred to period end and that the customer retains access until then. It omits whether the action is reversible/undoable and any permission or idempotency requirements, which keeps it short of 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with zero filler; the critical behavioral fact (end-of-period, access retained) is front-loaded and the API mapping is relegated to the tail.

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

Completeness4/5

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

For a mutation tool with only a destructiveHint annotation and no output schema, the description covers the essential non-obvious behavior (deferred cancellation, retained access). It leaves out reversibility and auth expectations, so it is complete but not exhaustive.

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%, so all three parameters (including the two cancellation-reason fields) are already documented in the schema. The description adds no parameter-level meaning, so the baseline of 3 applies.

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?

States a specific verb (cancel) and resource (subscription) plus the timing scope ('at the end of its current period'). It is clearly distinguishable from the get/list subscription siblings, though it never names an alternative to contrast against.

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 implied by the purpose (call this when you want to cancel), and the end-of-period detail clarifies intent, but there is no explicit when-to-use/when-not guidance or comparison to sibling tools such as polar_get_subscription or polar_list_subscriptions.

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.