Skip to main content
Glama
oborseth

Official Porkbun MCP Server

Top Up With Card Mpp

top_up_with_card_mpp

Create a payment link that adds Porkbun account credit by card when a purchase fails for insufficient funds. Get the payUrl, then pay it with an MPP-capable wallet to apply the credit.

Instructions

Get a payment link that adds account credit when paid with the user's CARD over MPP (Machine Payments Protocol), using a Stripe Shared Payment Token from their agent wallet (Stripe's Link Agent Wallet). Use it when a purchase failed with INSUFFICIENT_FUNDS and no card is saved at Porkbun. Nothing is charged by this call. Pay the returned payUrl with an MPP-capable wallet tool, for example Stripe's Link CLI or its MCP server (link-cli mpp pay <payUrl> -X POST --context "..."). Link rejects a --context shorter than 100 characters, and the payment fails without it: write one or two full sentences the user will read when approving, saying what it is for and the dollar amount (e.g. "Adding $20.00 of prepaid credit to my Porkbun account so my AI assistant can register the domains I asked for."). Word it freshly for each payment; Link can refuse a repeat of an identical request. The link answers 402 with the terms, the wallet asks the user to approve the amount, and the credit is added immediately (the response shows the new balance). Tell the user the dollar amount first. The link is single-use, valid 15 minutes. amount_cents is integer US cents, $5 to $500; same limits as card top-ups. Not available on sandbox keys (use sandbox_topup). If you cannot pay MPP links, top_up_with_usdc or the user adding credit at porkbun.com are the alternatives.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoIf true, check eligibility and limits only; creates no link.
amount_centsYesCredit to add, in integer US cents (500 = $5.00). Integer US cents: 803 means $8.03, not $803.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 the safety profile (non-read-only, open-world, non-idempotent), and the description adds rich behavior beyond them: 'Nothing is charged by this call,' single-use link valid 15 minutes, the 402/approval flow, immediate credit with new-balance response, and the --context minimum-length and fresh-wording constraints.

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?

Front-loaded with the core purpose and trigger, then flows into operational detail. Dense but nearly every sentence carries actionable guidance (context length, single-use, expiry, alternatives), though it runs long and could be trimmed slightly.

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, so the description carries the return burden and does: it returns a payUrl, the response shows the new balance, and the 402 terms flow is explained. Complete for an agent to invoke and interpret results.

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 the baseline is 3, but the description reinforces the amount_cents bounds of $5-$500 and the integer-cents semantics, adding context beyond the schema. dry_run is only covered by the schema, so it isn't a full 5.

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?

States a specific verb+resource: obtaining a payment link that adds account credit paid by CARD over MPP via a Stripe Shared Payment Token. It clearly distinguishes itself from siblings like top_up_with_usdc, sandbox_topup, and top_up_account_credit 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 condition is given ('when a purchase failed with INSUFFICIENT_FUNDS and no card is saved at Porkbun'), plus named alternatives for when not to use it (top_up_with_usdc, manual top-up at porkbun.com, sandbox_topup for sandbox keys). Routes the agent well.

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