Top up credits
top_upLinks to buy more credits: a one-click top-up link for a pack (opens Stripe Checkout, no login) plus the billing page. Give the link to the user; the tool never charges anything itself. Omit pack to get the suggested one.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "top_up"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | No | small = 100 credits ($27), medium = 300 ($75), large = 1000 ($249). Default: the suggested pack. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packs | Yes | ||
| message | Yes | Ready-to-show sentence with the links. | |
| top_up_url | Yes | One-click Stripe Checkout link; opens without a login. Hand it to the user. | |
| billing_url | Yes | The billing page in the app. | |
| upgrade_url | No | Set when a plan upgrade would be cheaper than packs. | |
| suggested_pack | Yes |