Get Balance
get_balanceCheck your Porkbun account's available credit balance before buying domains, renewals, or transfers. Returns the balance in cents and a readable amount to confirm if a purchase will go through.
Instructions
Get the available account credit balance for the authenticated Porkbun account. Returns the balance in cents (integer) and a human-readable display string (e.g. $12.34). Call it before offering to buy anything: a purchase is paid from this prepaid balance, not charged to a card, so this number decides whether a registration, renewal or transfer goes through as-is. If it is short and the account has a saved card, top_up_account_credit adds credit in one call (ask the user first, with the amount); get_auto_topup reports whether a card is on file. Without a card, or if you do not charge cards on a user's behalf, the user adds credit with buy account credit at https://porkbun.com/account/credit.
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_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||