Get a MyOTP credit top-up quote
get_topup_quoteGet the live price and payment options for buying MyOTP credits, without making a purchase. Use this when generate_otp or another send fails with HTTP 403 insufficient balance / NoBalance, or before calling top_up_credits to show the cost. Returns USDC and card client commands and never exposes the configured API key.
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_topup_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| credits | No | Number of credits to quote. Integer from 25 to 50,000; defaults to 100. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | Top-up limits: unit price, minimum, maximum and the card cap. | |
| credits | Yes | The number of credits priced. | |
| methods | Yes | Human-readable list of the accepted payment methods. | |
| currency | Yes | Always 'usd'. | |
| amount_usd | Yes | Total price in US dollars, as a decimal string. | |
| how_to_pay | Yes | Ready-to-run client commands for this amount. | |
| max_credits | Yes | ||
| min_credits | Yes | ||
| price_per_credit_usd | Yes | Unit price. Currently 0.02. |