Upgrade checkout link
cooper_upgrade_linkUse this when the human wants to upgrade, or a limit was hit and they agree to pay. Requires auth. Creates a Stripe Checkout session; no charge happens until the human completes checkout in their browser. Inputs: plan (required; starter or pro), email (optional receipt email), client_id (optional idempotency key). Returns {url, session_id, plan}: give the url to the human; never open or complete it yourself.
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": {
"plan": "<plan>"
},
"name": "cooper_upgrade_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | Paid plan to check out | |
| No | Optional receipt email for the Stripe customer | ||
| client_id | No | Optional idempotency key for the Checkout session |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Checkout URL for the human. Never open or complete it yourself. | |
| plan | No | Plan id: free, starter, or pro. | |
| session_id | No | Stripe Checkout session id. |