Skip to main content
Glama

Track a swap (can wait for you)

get_swap_status
Read-only

Check a swap by deposit address. Set wait_seconds (up to 25) and the server waits for the status to change before answering, so you need fewer calls. Statuses: PENDING_DEPOSIT, PROCESSING, SUCCESS, INCOMPLETE_DEPOSIT, REFUNDED, FAILED. final=true means done.

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": {
      "deposit_address": "<deposit_address>"
    },
    "name": "get_swap_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
routeNoPass 'fast' if the swap was created with speed='fast' (the reply says route='fast').
deposit_memoNodeposit_memo, if one was returned.
wait_secondsNo0-25. Server-side wait for a status change (long-poll).
deposit_addressYesdeposit_address returned by create_swap or pay_exact.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / route
      Added value: +{
      +  "description": "Pass 'fast' if the swap was created with speed='fast' (the reply says route='fast').",
      +  "enum": [
      +    "best_price",
      +    "fast"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only and open-world safety, and the description adds genuinely new behavior: a server-side wait of up to 25 seconds that blocks until a status change, plus the full status vocabulary and the meaning of `final=true`. It does not cover error cases (unknown deposit address, missing memo) or what happens when the wait times out, keeping it short of a 5.

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?

Three short sentences, front-loaded with the lookup key and the wait behavior, then the status list. The enumeration of six statuses is the bulkiest part but still earns its place since there is no output schema. No filler wording.

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?

With no output schema, the description carries the return-value burden and does so by enumerating statuses and explaining the `final` flag. It is nearly complete for a single-record status check; only failure/timeout behavior and the meaning of a non-final response after the wait expires are missing.

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 coverage is 100%, so every parameter is already documented, and the description's only added detail is restating the 25-second cap on wait_seconds. The `route` and `deposit_memo` parameters get no treatment in the description beyond what the schema says, and `final=true` is a response field rather than a parameter.

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 opens with a specific verb and resource ("Check a swap by deposit address") and the title names the tracking role, so the agent knows exactly what is being looked up. It does not name a sibling alternative (e.g. check_payment or get_receipt) to contrast against, so differentiation is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives useful operational guidance for when to use the long-poll behavior ("Set wait_seconds ... so you need fewer calls"), which implies this is the polling tool rather than a one-shot read. But it never says when to prefer this over other lookup tools, nor any prerequisite such as the swap needing to have been created first.

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.