Skip to main content
Glama

invoice_pay

Build the plan to pay an invoice from payer, with the token payer holds (default: the invoice token). Nothing is signed or sent here. Both wallets are screened first (payer_blocked, receiver_blocked); when the invoice has checks ["scorechain"] (see invoice_get), the creator chose and paid the Scorechain sanctions API, so this call sends the payer wallet and the receiver wallet to Scorechain, a third party (an invoice created before 22/10/2026 with the then-free Scorechain keeps running it without a charge). method "transfer": same token, a direct transfer built from the stored invoice (no fee, no gain; the receiver sees the payer as sender). method "swap": another token; amountIn is computed so the GUARANTEED minimum output covers the requested amount, the route is always the one with GAIN when there is one, and the output goes straight to the receiver (the transaction is public and signed by the payer, so the receiver can see the paying wallet on-chain). Any surplus over the requested amount goes to the receiver. plan has the same shape as a swap_build plan: on EVM sign steps[] in order with prepare_signing (approve steps first, then the transaction); on Solana pass {transaction, executionRef} to prepare_signing and POST the signed transaction to /v1/svm/execute. If simulation.status is approval_required, send the approve and call invoice_pay again. When the invoice has paid checks, the creator must have paid the analysis first (analysis_unpaid, 409). With "merkle-science" this call then sends the payer wallet and the receiver wallet to Didit/Merkle Science, and a HIGH or CRITICAL risk (score 70 or more) refuses with payer_blocked or receiver_blocked; the detail shows in invoice_get analysis.report. At most 3 different payer wallets are analysed per invoice by each paid check; a 4th gets analysis_attempts_exceeded (429). Since 23/10/2026 the payer proves the wallet BEFORE the paid analysis runs on it: over MCP that proof is the destination authorization signed by the payer for this invoice's receiver (destination_challenge with wallet = payer, receiver = the invoice receiver, chainId of the invoice, sign the message, then destination_authorize). Without it this call returns payer_signature_required (401) and no analysis slot is spent. Invoices with payerChecks and split.rule "flat" (since 16/11/2026; "brackets" from 10/11): nothing is paid first; the paid analysis runs HERE on BOTH wallets, the payer and the receiver, after the free screening, and the plan is the split that delivers split.receiverAmount to the receiver and split.fee to the Vurto fee wallet. A Vurto Dead Alive donation (invoice_get analysisOf "payer") takes as split.fee 2% of the amount, no floor, plus the price of each paid analysis the streamer chose for the donor wallet (since 16/11/2026, https://docs.vurto.cc/fees; payerChecks says which ran); before signing, split.fee must be at most 10% of the amount plus 1.20 USD and below the amount on a public donation (since 19/11/2026; 10% on one born on the V2), at most 2% of the amount plus 2.40 USD on any private invoice, the private donation included (one ceiling, no donation mark, since 19/11/2026; the private donation is created only while its fee fits it, else 503 private_donation_fee_above_ceiling), at most 2.40 USD, two consultations of 1.20 at most each (and below the amount), on a "flat" invoice, and at most 5% of the amount on a "brackets" one (pure percent since 16/11/2026, no fixed amount above it). The smallest donation is where its fee fits that ceiling, the same on EVM and Solana. A new public donation on EVM is paid through the VurtoPrivateSplit of its network (its pay, since 19/11/2026), which is paid only on the donation page: do not sign it here, the vurto-swap CLI refuses that contract. Older invoices with payerChecks: the creator pays the analysis first (analysis_unpaid, 409), and it runs HERE, on the payer wallet, after its free screening passes; no field switches it off. The payer proves the wallet first (destination_challenge/destination_authorize; payer_signature_required 401). Up to 2 different payer wallets run here; after that the plan comes out with warning, and the analysis runs on the report of a confirmed payment of the whole amount, with the result going to the creator. A transaction that reaches the receiver settles the invoice: the analysis refuses nothing after the money has arrived. analysis_tool_unavailable (503) means try again in a few minutes. The plan delivers the whole amount to the receiver. An invoice that carries split keeps it (see invoice_get split): method "transfer" is then ONE payment transaction (on EVM, sign the exact approve step first, then pay on the invoice split contract: VurtoInvoiceSplitV2 since 16/11/2026, VurtoInvoiceSplit before; on the V2 with a token whose EIP-2612 permit checks out (its DOMAIN_SEPARATOR matches the domain read from it: the USDC of Circle does, USDT and the BNB pegs do not) the plan also has plan.permit, an EIP-2612 typed data you may sign instead of the approve to send one payWithPermit transaction with the arguments of the pay step plus v, r, s) with split.receiverAmount to the receiver and split.fee to the Vurto fee wallet, and only that transaction settles it; analysis_offer_suspended (403) applies only to those. With another token, method "swap_then_transfer": plan is a swap into the PAYER's own wallet and next is this same call again, to build the split; on Solana method "swap" does both in one transaction. A receiver analysis (invoice_analysis_pay) only counts here if it was paid and reported first: open and unpaid, it does not hold this call, and the answer carries warning and receiverAnalysis. Paid and stale gets receiver_analysis_unpaid (409), and a rejected receiver gets receiver_blocked. With method "swap", pass invoiceId to prepare_signing so it points to the invoice report. Sign the transaction as returned: it is tied to this invoice and payer, so another invoice to the same recipient cannot claim it (tx_for_another_payment). A transfer built by hand, a native transfer and a ready-made route of a provider are not, and the first report the network confirms wins. If a transaction of yours ends as tx_for_another_payment, prove the wallet (destination_challenge with chargeId = the invoice id and chargeTxHash = the hash, then destination_authorize) and report it again. Then call invoice_report_payment with the hash (EVM) or signature (Solana). Errors: price_moved (the minimum fell below the request between quote and build — call again), no_route, native_sol_only (an invoice in SOL can only be paid in SOL), invoice_already_paid, private_invoice_vault_only (a private invoice: pay it on its page, through the Vurto Private Contract, never with this tool), private_invoice_paused (a private invoice created before 14/10/2026, which can no longer be paid). Both wallets are screened before the plan is built: the paying one (payer_blocked) and the receiving one (receiver_blocked). screening_unavailable (503) means the screening could not finish, try again in a few seconds.

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": {
      "id": "<id>",
      "payer": "<payer>"
    },
    "name": "invoice_pay"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesINV-XXXX-XXXX or the 8-character id.
payerYesThe wallet that will sign and pay, on the invoice network.
tokenInNoOptional: address/mint or symbol of the token the payer pays with. Omit to pay in the invoice token.
slippageBpsNoOptional, default 50. The guaranteed minimum is computed after it, so a tighter slippage asks the payer for less.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / receiverChecks
      Removed value: -{
      -  "description": "Optional: the analysis of the RECEIVING wallet the payer wants, when 0.3% of the amount is more than its price. There is then no separate charge: the analysis runs here and the payer pays the 0.3% on top, in this payment (1,000 USDC with merkle-science: the payer pays 1,003, the receiver gets 1,000). Needs the wallet proof (destination_challenge and destination_authorize) and the invoice token. Empty array gives it up. Below that amount it answers analysis_not_in_split: use invoice_analysis_pay.",
      -  "items": {
      -    "enum": [
      -      "scorechain",
      -      "merkle-science"
      -    ],
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
  2. Changed1 schema field changed
    • addedInput schema / properties / receiverChecks
      Added value: +{
      +  "description": "Optional: the analysis of the RECEIVING wallet the payer wants, when 0.3% of the amount is more than its price. There is then no separate charge: the analysis runs here and the payer pays the 0.3% on top, in this payment (1,000 USDC with merkle-science: the payer pays 1,003, the receiver gets 1,000). Needs the wallet proof (destination_challenge and destination_authorize) and the invoice token. Empty array gives it up. Below that amount it answers analysis_not_in_split: use invoice_analysis_pay.",
      +  "items": {
      +    "enum": [
      +      "scorechain",
      +      "merkle-science"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

The annotations already indicate a non-read-only, non-idempotent, open-world operation, and the description adds substantial context beyond them: third-party Scorechain and Didit/Merkle Science screening, authorization requirements, analysis-slot limits, fee ceilings, and many specific error codes. These disclosures are consistent with the annotations and materially help an agent understand side effects and failure modes.

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

Conciseness2/5

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

The description is an extremely long, dense paragraph mixing core instructions with version-dated fee rules, historical exceptions, and implementation details. Although the opening is front-loaded and much of the content is relevant, the sheer volume and lack of structure make it hard to scan and use efficiently.

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?

There is no output schema, and the description compensates by explaining the returned plan shape, permit data, next steps for EVM and Solana, warnings, and the follow-up reporting call. Given the tool's complexity, it provides enough context for an agent to invoke and continue the flow correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the parameters are already well documented. The description restates that tokenIn defaults to the invoice token but does not add much beyond the schema for slippageBps, and it refers to method "transfer" and "swap" even though no method parameter exists in the schema, which adds some ambiguity.

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?

The opening sentence states a specific verb and resource: build the payment plan for an invoice from a payer using a chosen token. It clearly distinguishes itself from execution tools by saying nothing is signed or sent, and from invoice_report_payment by instructing the caller to report afterward.

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?

The description gives extensive when-to-use and when-not-to-use guidance: private invoices must be paid on their page, Vurto Dead Alive donations on EVM must not be signed here, and invoice_analysis_pay only counts if paid and reported first. It also names follow-up tools such as prepare_signing, destination_challenge, destination_authorize, and invoice_report_payment.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources