Update monthly plan
update_subscriptionChange this account's monthly plan; send at least one of tier, cancelAtPeriodEnd and exhaustionMode. Applied directly: a lower tier (takes effect from the next period, the current tier and credit stay), cancelAtPeriodEnd true (the plan ends after the paid period) and exhaustionMode cap (also turns off automatic top-up). NOT applied from here: a higher tier, cancelAtPeriodEnd false (resuming a plan set to end) and exhaustionMode topup, because they raise or re-enable recurring charges. For those the call changes nothing and returns a confirmUrl (single use, valid for 24 hours) that a person must open and confirm in the portal - nothing is charged from here. When a call contains such a change, nothing in it is applied and the other requested changes are listed as not applied, so send them in a separate call; two changes that both need confirmation are rejected with validation, send those one at a time. Fails with subscription_missing or subscription_canceled when no plan is running, and with invalid_tier for the tier the plan already has when no other tier is scheduled. A tier the plan is already switching to counts as done, so repeating the same call after a failure is safe: what already holds is skipped and only the rest is applied. The one exception is going back to the current tier, which cancels the scheduled change: a repeat then gets invalid_tier because there is nothing left to cancel, so send only the remaining fields. On a plan set to end a tier change alone fails with invalid_state (undo the cancellation first); sent together with cancelAtPeriodEnd true it is a repeat and counts as done. Same data as PATCH /v1/subscription (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": "update_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | Tier to switch to from the next period: 490, 990 or 1990. A tier higher than the current one is not applied here, it returns a confirmUrl for a person. | |
| exhaustionMode | No | cap: nothing is bought once the monthly credit is used up, applied now. topup: credit is bought from the saved card instead, not applied here: it returns a confirmUrl for a person. | |
| cancelAtPeriodEnd | No | true ends the plan after the paid period. false resumes a plan that is set to end, which is not applied here: it returns a confirmUrl for a person. |