Skip to main content
Glama

Get swap status

get_swap_status
Read-onlyIdempotent

Step 3. waiting_for_funding -> deposit_detected -> swap_processing -> completed, or refunding / terminal_failure (outcome refunded, failed, expired). Long-poll with waitSec 25 and sinceState = the last state; repeat next until terminal. Call it before funding or showing a deposit again. payment: what your wallet will sign; sign only if paymentCheck.safeToSend.

Input Schema

NameRequiredDescriptionDefault
detailNo
verifyNoDestination address (optional extra check).
orderIdYesFrom create_swap or list_swaps.
paymentNoUnsigned only: tx JSON {to,data,value,chainId}, an ethereum:/monero: URI, calldata or an unsigned raw tx. Never a signed transaction.
waitSecNoLong-poll seconds for a change from sinceState (max 25; more is capped).
sinceStateNoState from your previous call.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
nextYes
errorNo
stateNo
statusNo
waitedNo
depositNo
orderIdNo
outcomeNo
payableNo
evidenceNo
receivedNo
terminalNo
trackUrlNo
attentionNo
mayChangeNo
operationYes
destinationNo
userMessageNo
paymentCheckNo
payableReasonNo
receivedBelowMinimumNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / payment / description
      Previous value: -"Raw tx hex, tx JSON, monero:/ethereum: URI or calldata."New value: +"Unsigned only: tx JSON {to,data,value,chainId}, an ethereum:/monero: URI, calldata or an unsigned raw tx. Never a signed transaction."
    • removedOutput schema / properties / afterSwap
      Removed value: -{
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
  2. Changed1 schema field changed
    • addedOutput schema / properties / afterSwap
      Added value: +{
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already mark this read-only/idempotent/non-destructive, and the description adds substantial behavioral context beyond them: the full state lifecycle, the refunding and terminal failure outcomes (refunded, failed, expired), the long-poll loop semantics, and a safety rule for the payment field ('sign only if paymentCheck.safeToSend'). This is real operational context the agent needs to poll and to avoid signing an unsafe payment.

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

Conciseness4/5

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

Dense but efficient — every clause carries polling or safety information, and the state progression is front-loaded. The opening 'Step 3.' fragment is slightly cryptic without external ordering context, and the telegraphic style trades readability for brevity, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value explanation is unnecessary, and the description covers the state lifecycle, terminal outcomes, long-poll loop, and the payment-safety gate — enough for a 6-parameter polling tool. It omits what 'detail: lean/full' changes and how verify is used, minor gaps given the existing schema descriptions.

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

Parameters4/5

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

Schema coverage is already 83%, but the description adds meaning beyond the schema: waitSec guidance (25), that sinceState should equal the last observed state, and that payment is 'what your wallet will sign' gated on paymentCheck.safeToSend. These are semantic rules not present in the field descriptions, though detail/verify/get parameters are not elaborated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (swap) and its purpose through a concrete state machine (waiting_for_funding -> deposit_detected -> swap_processing -> completed, or refunding/terminal_failure) plus the long-poll mechanic, so an agent understands this is a status-polling tool. It doesn't explicitly distinguish itself from list_swaps, which also surfaces swap state, so it stops short of a 5.

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?

Gives explicit when-to-use triggers ('Call it before funding or showing a deposit again') and prescriptive polling instructions ('Long-poll with waitSec 25 and sinceState = the last state; repeat next until terminal'). The terminal condition and the repeat loop are both stated, leaving nothing to inference.

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