Buy MyOTP credits
top_up_creditsPrepare or complete an autonomous MyOTP credit purchase with USDC or card through Machine Payments Protocol (MPP). Use this when generate_otp or another send fails with HTTP 403 insufficient balance / NoBalance. The tool quotes first, then returns a structured 402 challenge and exact retry details for the agent's own MPP client; if fetch is already wrapped by a credential-carrying MPP runtime, it returns the credited response directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| credits | Yes | Number of credits to buy. Integer from 25 to 50,000. | |
| dry_run | No | If true, return only the quote and explanation without requesting a payment challenge. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote | No | The quote for the requested credits (dry run and 402 results). | |
| retry | No | The request to replay with a payment credential (402 result). | |
| offers | No | Decoded Payment offers from the WWW-Authenticate challenge (402 result). | |
| status | No | 'credited' or 'already_credited' (settled result). | |
| balance | No | Account balance in credits after the top-up (settled result). | |
| credits | No | Credits bought in this call (settled result). | |
| payment | No | Payment method and reference (settled result). | |
| plan_id | No | ||
| currency | No | ||
| amount_usd | No | Amount paid in US dollars (settled result). | |
| how_to_pay | No | Ready-to-run client commands (402 result). | |
| challengeId | No | The MPP challenge id from the 402 response. | |
| explanation | No | What happened and what the caller must do next (dry run and 402 results). |