cancel_subscription

Cancel a recurring subscription. By default cancels immediately. Set at_period_end to true to let it run until the current billing period ends.

Server Tru tru-mcp
Category Financial
Risk class Critical
Parameters 21 required

What cancel_subscription does on Tru

AI agents use cancel_subscription to commit financial operations through Tru — usually the final step of a payment, billing, or trading workflow. A call moves real money.

ParameterTypeRequiredDescription
at_period_end boolean If true, the subscription stays active until the end of the current billing period (default: false, cancels immediately)
subscription_id string Yes The subscription ID to cancel

Parameters from the server's own tool schema.

Why cancel_subscription needs a policy

Cancelling a subscription is a financial action that terminates a recurring payment commitment. It can have immediate revenue/service impact and may be irreversible (especially with 'cancels immediately' default), making it both Financial and potentially Destructive in nature. Financial takes precedence as the highest severity category.

From the tool's definition 'Cancel a recurring subscription' and 'cancels immediately' — directly terminates a financial obligation/recurring billing arrangement

Questions about cancel_subscription

What does the cancel_subscription tool do? +

Cancel a recurring subscription. By default cancels immediately. Set at_period_end to true to let it run until the current billing period ends. It is categorised as a Financial tool in the Tru MCP Server, which means it involves financial transactions. Block by default and require explicit approval.

What parameters does cancel_subscription accept? +

cancel_subscription accepts 2 parameters: at_period_end, subscription_id. Required: subscription_id. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on cancel_subscription? +

Register the Tru 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 Tru. Nothing to install.

What risk level is cancel_subscription? +

cancel_subscription is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.

Can I rate-limit cancel_subscription? +

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.

How do I block cancel_subscription completely? +

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.

What MCP server provides cancel_subscription? +

cancel_subscription is provided by the Tru MCP server (tru-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.