Purchase Credits
purchase_creditsCreate a Stripe checkout session to purchase credits. Select a package (100-10000 credits) and get a payment URL; credits are added after successful payment.
Instructions
Starts a credit purchase: creates a Stripe checkout session for the chosen package and returns a payment URL to present to the user. Does NOT charge immediately and does NOT add credits until the user completes payment — credits are then added automatically. Requires authentication. Packages: credits_100, credits_500, credits_2000, credits_10000 (see get_config for current prices).
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": {
"package_id": "<package_id>"
},
"name": "purchase_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_id | Yes | Credit package to purchase: credits_100, credits_500, credits_2000, or credits_10000 |