topup_endpoint_with_payment
Complete an endpoint credit top-up after you have obtained a valid signed x402 payment (v2 or v1). Accepts either a dashboard PAT with mcp:endpoints:write or mcp:* or a legacy endpoint API key. If the reply is HTTP 202 with status settlement_pending (or fulfilment_pending / needs_review), the payment may already have gone through: do NOT sign a new payment; call this tool again later with the SAME paymentPayload (pending top-ups are also credited automatically). One payment tops up once: a repeat returns already_applied; reuse for another endpoint returns 409 payment_already_used (nothing charged).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>",
"topupAmount": "<topupAmount>",
"paymentPayload": "<paymentPayload>"
},
"name": "topup_endpoint_with_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Slug of the endpoint to top up | |
| apiKey | No | Legacy endpoint API key (x402_*) | |
| accessToken | No | Your dashboard MCP personal access token (sgl_pat_*). Can be omitted when the connection sends Authorization: Bearer sgl_pat_* | |
| topupAmount | Yes | USDC amount to add, minimum 1 | |
| paymentPayload | Yes | Signed x402 payment from the paying client (v2 relayed as PAYMENT-SIGNATURE, v1 as X-Payment), as JSON or base64 string |