Get Auto Topup
get_auto_topupReads your account's auto top-up settings: on/off, balance threshold, amount added, saved cards, and the amount that would be charged now. Use it to check whether top-up can fire or if a card needs attention.
Instructions
Read the account's auto top-up configuration: whether it is on, the balance threshold that triggers it, the amount added, whether a payment method is actually on file, and effectiveAmount — what top_up_account_credit would charge right now. If paymentMethodOnFile is false the settings are inert: nothing can be charged and auto top-up will never fire, and a card can only be saved on porkbun.com, never through the API.
cards lists the saved cards (up to 3), primary first then backups: a top-up charges the primary and falls back to the backups in that order. Each has status (active, expired, or declined with retryAfter) and lastDeclineCode; a Link wallet shows usedForTopups: false. Use it to tell the user which card would be charged, or that a card needs attention. Cards are added, removed and reordered only on porkbun.com.
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": "get_auto_topup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||