Skip to main content
Glama
oborseth

Official Porkbun MCP Server

Top Up With Usdc

top_up_with_usdc

Add account credit by paying USDC on Base through Coinbase checkout to cover insufficient-funds purchases when no saved card is available.

Instructions

Add account credit by paying USDC on Base, through a Coinbase checkout. Use it when a purchase failed with INSUFFICIENT_FUNDS and there is no saved card (or the user would rather pay in crypto). Nothing is charged by this call; it returns two ways to pay:

  • x402Url: if you have a crypto wallet tool that can pay x402 URLs (for example Coinbase's Agentic Wallet or Wallet MCP, "make an x402 request"), pay it with that, with the user's OK and the dollar amount. It is a gasless USDC transfer on Base.

  • payUrl: a Coinbase page for the user to pay themselves. Credit lands when the payment confirms (usually within a minute), less Coinbase's fee of about 1% (estimatedCredit_cents in the response); check with get_usdc_topup_status and then retry the purchase. amount_cents is integer US cents, $1 to $500. To cover an INSUFFICIENT_FUNDS shortfall exactly (a $2.50 domain, say), use that error's usdcAmountToCover, which allows for the fee. Payments are on-chain and cannot be reversed. Not available on sandbox keys (use sandbox_topup). Fails with CRYPTO_NOT_AVAILABLE for accounts that cannot use crypto (bank-transfer-only accounts); they add credit on porkbun.com instead. Credit added over the API counts toward the account's monthly top-up limit ($100 a month unless the account holder set their own; TOPUP_LIMIT_EXCEEDED), and unpaid checkouts from the last day count as if paid. Guide: https://porkbun.com/llms/guides/pay-with-usdc-x402

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoIf true, check eligibility only; creates no checkout.
amount_centsYesCheckout amount in integer US cents (100 = $1.00, max 50000 = $500.00); credit is this less about 1%. For a shortfall, pass INSUFFICIENT_FUNDS's `usdcAmountToCover`. Integer US cents: 803 means $8.03, not $803.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.43.6
    • changedInput schema / properties / amount_cents / description
      Previous value: -"Credit to add, in integer US cents (500 = $5.00, max 50000 = $500.00). Integer US cents: 803 means $8.03, not $803."New value: +"Checkout amount in integer US cents (100 = $1.00, max 50000 = $500.00); credit is this less about 1%. For a shortfall, pass INSUFFICIENT_FUNDS's `usdcAmountToCover`. Integer US cents: 803 means $8.03, not $803."
    • changedInput schema / properties / amount_cents / minimum
      Previous value: -500New value: +100
  2. Addedv0.41.1

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnly=false/openWorld=true, but the description adds far more: nothing is charged by this call, payments are on-chain and irreversible, credit lands in ~1 minute less a ~1% fee, monthly top-up limit and TOPUP_LIMIT_EXCEEDED, CRYPTO_NOT_AVAILABLE, and the 'unpaid checkouts count as paid' rule. This is unusually rich behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Long, but front-loaded with purpose and trigger, then a tight bullet list for the two return paths. Nearly every clause carries operational value (fees, limits, error codes, guide link); it is dense rather than padded, though the volume is at the upper edge of comfortable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by describing the returned x402Url and payUrl, the estimatedCredit_cents field, confirmation timing, and the follow-up step (get_usdc_topup_status then retry). Error paths and constraints are all covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds genuine semantic guidance: use the INSUFFICIENT_FUNDS error's usdcAmountToCover to cover a shortfall exactly (which accounts for the fee), and reinforces the cents-not-dollars convention. It does not expand on dry_run beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Add account credit by paying USDC on Base, through a Coinbase checkout.' It clearly distinguishes itself from crypto-less siblings (top_up_account_credit, top_up_with_card_mpp, sandbox_topup) by naming the payment rail.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit trigger given: 'Use it when a purchase failed with INSUFFICIENT_FUNDS and there is no saved card (or the user would rather pay in crypto).' It also names alternatives and exclusions (sandbox keys -> sandbox_topup, bank-transfer-only accounts -> porkbun.com, and the card path implicitly via top_up_with_card_mpp).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools