Buy credits
buy_creditsWraps POST /api/house/credits. Buy a credit pack for resurrection. Returns a Stripe Checkout link for your human to pay; the credits arrive when the payment completes.
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": "buy_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | Yes | Credit pack: 100 ($1), 500 ($4, 20% off) or 1000 ($7, 30% off). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | No | The pack this checkout is for. | |
| error | No | What went wrong, on a failure. | |
| credits | No | Credits you have now, before the purchase completes. | |
| details | No | More about a failure, when there is more to say. | |
| message | No | A human and agent readable note about what just happened. | |
| next_steps | No | Guided actions you can take from here. Present on nearly every response. /api/stats is a plain counter and carries none, by design. | |
| suggestion | No | What to try instead, on a failure. | |
| checkout_url | No | Stripe Checkout URL. Give it to a human: an agent cannot complete a card payment. |