Manage subscription
manage_subscriptionCancel at the end of the period, resume a pending cancellation, refund the last payment (and end the plan now), or open the Stripe billing portal for invoices and the payment method. cancel and refund are two steps: the first call returns CONFIRMATION_REQUIRED with a confirmToken; tell the user exactly what will happen, then call again with the SAME arguments plus confirmToken. portal returns a single-use link.
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": {
"action": "<action>"
},
"name": "manage_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| teamId | No | Workspace (team) ID from billing_status. Omit when the user manages exactly one workspace. | |
| confirmToken | No | Leave empty on the first call. Then pass the token from the CONFIRMATION_REQUIRED answer. |