Skip to main content
Glama

Swapper - XMR to USDC swaps

Create XMR/USDC swap order

create_swap
Idempotent

Step 2. Creates the order from get_quote's next.arguments (quoteId, plus to if the quote had none): one order per quote; moves no funds. An order cannot be cancelled; unfunded, it expires. Retry with the same arguments: the default idempotencyKey returns the same order. Fund once, only while payable is true: before signing deposit.payment, get_swap_status {orderId, payment} must return paymentCheck.safeToSend. Next: get_swap_status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoDestination, only if the quote had none (next.missing). Never guess.
detailNo
quoteIdYesFrom get_quote's next.arguments.
idempotencyKeyNoOptional; default q_<quoteId>. Reuse on every retry. A custom key: a fresh random UUID per intent.
quoteIntentDigestNoFrom next.arguments: create fails if the quote's terms differ.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
dataNo
nextYes
errorNo
queueNo
stateNo
depositNo
orderIdNo
payableNo
replayedNo
trackUrlNo
fromQueueNo
operationYes
recoveredNo
destinationNo
userMessageNo
payableReasonNo
idempotencyKeyNo
expectedReceiveNo
reconfirmRequiredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / fromQueue
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / idempotencyKey
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • addedOutput schema / properties / queue
      Added value: +{
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
  3. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources