cancel_subscription
Cancel a customer subscription
This record as markdown: /tools/stripe/cancel-subscription.md
What cancel_subscription does on Stripe
AI agents call cancel_subscription to permanently remove resources in Stripe, typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.
Why cancel_subscription is rated Critical
Canceling a subscription is a destructive action that terminates an ongoing financial arrangement. While not a direct money transfer (Financial), it irreversibly severs a customer's active subscription with permanent effects—the subscription ceases immediately and cannot be automatically restored through this tool. This ranks higher than Write (which is reversible) and Execute (which has variable effects).
From the tool's definition Tool name 'cancel_subscription' combined with description 'Cancel a customer subscription' indicates irreversible termination of an active subscription, which cannot be undone without manual intervention.
Risk signalsEnds recurring revenue permanently
Attacks that exploit this kind of access
The rule that runs cancel_subscription safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Stripe, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For cancel_subscription, this is the rule to start with:
cancel_subscription is removed from the agent's tool list entirely, so the agent never calls it. The rest of the server keeps working.
The button opens the PolicyLayer dashboard: create your workspace, connect Stripe, apply this rule, and every cancel_subscription call is checked against it from then on.
Questions about cancel_subscription
Cancel a customer subscription. It is categorised as a Destructive tool in the Stripe MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.
Register the Stripe MCP server in PolicyLayer and add a rule for cancel_subscription: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Stripe. Nothing to install.
cancel_subscription is a Destructive tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the cancel_subscription rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for cancel_subscription. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
cancel_subscription is provided by the Stripe MCP server (@modelcontextprotocol/server-stripe). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Stripe, and thousands of servers like it.
Across the catalogue