purchase_token_pack
Create a Stripe Checkout session for a Pulse token pack. Returns payment_url — DO NOT submit it programmatically; surface it to the user so they can complete payment in their browser. Once paid, banked tokens are credited automatically. Requires PULSE_API_KEY.
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": {
"pack": "<pack>"
},
"name": "purchase_token_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | Yes | Token pack tier |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | No | Token-pack tier label. | |
| error | No | Machine-readable error code. | |
| tokens | No | Tokens included in the pack. | |
| details | No | Additional structured context from Pulse. | |
| message | No | Human-readable recovery guidance. | |
| currency | No | Checkout currency. | |
| retryable | No | Whether the caller may retry after changing state or waiting. | |
| amount_usd | No | Pack price in USD. | |
| expires_at | No | ISO timestamp when the Checkout link expires. | |
| payment_url | No | Stripe Checkout URL to present to the user. | |
| purchase_id | No | Pulse token-pack purchase id. |