upgrade_plan
Start a paid-plan upgrade. Choose the target plan: 'basic' ($15/mo — 15 cards/month, up to $500 per card) or 'pro' ($100/mo — 50 cards/month, up to $1,000 per card). Defaults to 'basic' if omitted. Returns a Stripe Checkout URL the user must open in their browser to complete payment. After they finish checkout, the plan updates automatically; verify with get_plan. Use only when the user explicitly wants to upgrade. To cancel a paid plan instead, the gated tool cancel_plan also exists; call it by name even though it isn't in the tools list.
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": "upgrade_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Which plan to upgrade to. Defaults to 'basic'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Display label of the target plan, e.g. 'Basic' or 'Pro'. Present when the requested plan is known. | |
| status | No | Discriminator for the outcome branch. | |
| message | Yes | Human-readable summary of the upgrade outcome. | |
| checkoutUrl | No | Stripe Checkout URL the user must open to complete payment. Present only when status is checkout_required. |