Skip to main content
Glama

Swapper - XMR to USDC swaps

Get XMR/USDC swap quote

get_quote
Read-onlyIdempotent

Step 1. Quote Monero (XMR) <-> native USDC on Arbitrum One; no account or API key. Creates no order. Quotes are estimates. Buy XMR ("get me 1 XMR"): {direction:"u2x", receiveAmount:"1"}. Sell XMR: {direction:"x2u", amount:"0.5"}. direction plus exactly one of amount (what the user sends) or receiveAmount (what they want). Pass to if known. Next: create_swap with next.arguments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoDestination from the user: x2u an Arbitrum One 0x address, u2x a Monero address. Never guess.
basisNoreceiveAmount met by the estimate (default) or the provider minimum (if published).
chainNoDefault arbitrum (42161).
amountNoWhat the user SENDS (x2u: XMR, u2x: USDC). Digits and one dot; no commas or units.
detailNo
agentKeyNoOptional key from request_agent_key.
directionNoRequired. u2x: send USDC, get XMR. x2u: send XMR, get USDC.
requoteOfNoRe-quote this quoteId's stored parameters; pass it alone.
receiveAmountNoWhat the user wants to RECEIVE (u2x: XMR, x2u: USDC); needs direction.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
dataNo
nextYes
deltaNo
errorNo
quoteNo
stateNo
targetNo
quoteIdNo
agentKeyNo
directionNo
operationYes
guaranteedNo
acceptUntilNo
destinationNo
userMessageNo
expiresInSecNo
prerequisitesNo
minimumSwapUsdNo
acceptWindowSecNo
belowProviderMinimumNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / agentKey / description
      Previous value: -"From request_agent_key: lower fee."New value: +"Optional key from request_agent_key."
    • changedInput schema / properties / basis / description
      Previous value: -"receiveAmount target met by the estimate (default) or the provider minimum (only if one is published)."New value: +"receiveAmount met by the estimate (default) or the provider minimum (if published)."
  2. Changed2 schema fields changed
    • addedInput schema / properties / agentKey
      Added value: +{
      +  "description": "From request_agent_key: lower fee.",
      +  "pattern": "^swk_[a-f0-9]{40}$",
      +  "type": "string"
      +}
    • addedOutput schema / properties / agentKey
      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