Approval Before Payment: Designing a Deny-by-Default Gate for Paid Agent Tools
An agent that can discover tools freely should not also be able to spend freely. That separation is what makes a paid MCP workflow manageable for a company: discovery stays open, and a payment-required response becomes a decision a named person has to make. Skavio x402 MCP is a developer-facing product for MCP and x402 v2 verification of native Circle USDC, public chain inspection and conditional Base USDC payment challenges. The policy layer around it is still something a company has to design for itself: who approves, what exactly they approve, how long that approval lasts, and how the company avoids confusing a signed challenge with a finished job. This guide walks through that layer as an integration pattern, not as a documented built-in feature of the product.
Discovery is open. Payment is a decision.
The first design rule is architectural, not procedural: treat tool discovery and paid invocation as two different kinds of action with two different permission models. Tool discovery is separate from payment in the described flow, so it can be treated more like a read-only integration: allow listing and schema inspection in a controlled test, while requiring an explicit elevation before any tool invocation that returns a payment challenge. A paid invocation is different. When the paid tool responds with a payment-required challenge, the client has reached a policy decision point, not an ordinary transport error. HTTP 402 conventionally means Payment Required, and the correct reflex in an approval-gated design is to stop and escalate — not to retry, and certainly not to let the agent start signing. Skavio's product description treats tool discovery and payment as distinct actions, and the published documentation is the authoritative reference for discovery, challenges and verification. Your approval gate should mirror that separation rather than flatten it.
- Allow discovery-only calls in a sandbox or controlled default configuration; require an explicit, per-request elevation for any tool invocation that returns a payment challenge.
- Do not wire automatic retry logic to a 402 response. A bounded number of attempts followed by escalation to a human is safer than a retry loop.
- Keep the free discovery smoke test separate from production credentials, so a schema check cannot accidentally become a spend.
What the approver must actually see
A useful approval is specific enough to be wrong. If the approver only sees the phrase 'agent wants to pay for a tool', the approval is theatre: it transfers no information and blocks nothing. The reviewer needs two views of the same event — a plain-language summary that a non-engineer can read, and the raw request terms as the system exposed them. From the challenge, that means the network, the asset, the recipient address, the amount and any expiry detail. From the request, that means the tool name, the parameters being sent and the request identifier. Anything unexpected is a reason to reject rather than a detail to smooth over: a payment challenge on a network your company does not use, or an amount outside whatever ceiling you have written down, should fail closed. The gate described here is an integration pattern around Skavio x402 MCP; the published product description does not document a built-in approval dashboard, role model or spending-limit feature.
- Render the summary and the raw terms side by side so the approver can spot a mismatch between what the agent says it will do and what the challenge actually asks for.
- Reject, do not negotiate, when the network, asset, recipient or amount differs from the approved policy for that tool.
- Bind the approval to the request identifier, so approving one request never silently authorises the next one.
Bind each approval to one request with a short-lived token
The cleanest way to prevent approval drift is to make the approval itself a scoped artefact. When an approver accepts, the system issues a short-lived token that names the exact request identifier and a digest of the payment challenge it was granted for. An executor process — not the approving person, and preferably not the same service that runs the agent — presents that token alongside the request. If the parameters changed, if the challenge was re-issued with different terms, or if the token has expired, execution is blocked and the cycle restarts with a fresh approval. That single rule covers most of the failure modes that matter: replayed approvals, stale quotes, and the quiet scope creep that happens when an agent summarises an old approval as if it covered a new call. Keeping the approver, the spender and the agent as three separate roles is the point, not an administrative overhead.
- Store the approval as a record — approver, decision, timestamp, request identifier, challenge digest, expiry — rather than as a boolean flag.
- Give the executor controlled wallet access only; the approver's decision should not require the approver to touch wallet material.
- Block on: no approval, expired approval, changed request parameters, or an unexpected network.
Keep four states apart: approved, signed, verified, complete
Most of the confusion in agent payment workflows comes from collapsing states that are genuinely distinct. An approval is not a payment. A wallet signature on a challenge is not independently settled revenue. A confirmed transfer is not proof that the tool ran, and a returned tool result is not proof that the value was correct. Skavio x402 MCP includes public chain inspection as part of its developer-facing scope, so settlement evidence can be checked against the chain rather than inferred from an HTTP response. That check is still a separate step from task completion, and it remains separate from bookkeeping, tax treatment or legal payment acceptance, which stay human responsibilities. Network fees also belong here: the cost of moving USDC on a network is not the same thing as the tool's quoted price, and blending the two makes reconciliation harder later.
- Record the tool name, request identifier, challenge digest, approver, decision, timestamp, transaction hash, verification result and task outcome as separate fields.
- Use stable request identifiers or idempotency keys for retries, and reconcile payment state and task state independently after an interruption.
- Retain only the data the company needs for the audit record; do not let the log become a wallet archive.
Roll it out in the order that fails safely
The safest sequence for a small team is dull on purpose. Start with a discovery-only test: connect an MCP client you have reviewed, list the tools, read the schema, and stop there. In that test, no payment step is invoked. Next, run one owner-approved low-value invocation against a test setup where a debit cannot reach a production wallet, and walk the full cycle — challenge, approval, execution, chain verification, task outcome — with someone watching each transition. Only then consider letting an agent run against real funds under policy, and only with the approval gate already in place. Two hygiene rules apply throughout. Keep wallet material and private signatures out of MCP client configuration, prompts and application logs. And keep wallet authorisation distinct from API bearer keys and other application credentials, so a leaked application credential does not double as a spending capability.
- Write down what the agent may never do without approval, and enforce it in code rather than in a prompt instruction.
- Test the rejection paths deliberately — expired token, mismatched network, altered amount — before testing the happy path at scale.
- Consult the published Skavio x402 MCP documentation before enabling live payments; it is the authoritative reference for discovery, challenges and verification.