purchase_credits
Instantly buy credits using a pre-saved Stripe payment method. CAUTION: This will charge the user's card immediately. Use only when balance is critical.
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": {
"payment_method_id": "<payment_method_id>"
},
"name": "purchase_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | No | The credit pack name (check list_credit_packs for prices). | |
| amount | No | Custom dollar amount (min $5). | |
| payment_method_id | Yes | Stripe PM ID (e.g., "pm_..."). |