Skip to main content
Glama

Get one swap

swap_status
Read-onlyIdempotent

Full state of ONE swap: status, both legs (chain, asset, amount, escrow, funding/claim/refund tx), timelocks, addresses and the hashlock. Use it to follow a swap through settlement; to list swaps use list_swaps.

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>"
    },
    "name": "swap_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSwap id from list_swaps or the thread once agreed

Output Schema

NameRequiredDescriptionDefault
swapNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / swap / properties / dealUrl
      Added value: +{
      +  "description": "The deal page on the Hashlock site — where a person without a wallet here accepts as initiator, funds and claims",
      +  "type": "string"
      +}
  2. Changed4 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / id / description
      Added value: +"Swap id from list_swaps or the thread once agreed"
    • addedInput schema / properties / id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "swap": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "id": {
      +          "description": "Swap id",
      +          "type": "string"
      +        },
      +        "secretCiphertext": {
      +          "description": "Revealed secret, plain hex",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "status": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds that this is the settlement-tracking view with escrow and tx detail, but says nothing about behavior on a missing/unknown id or whether results change mid-settlement, which is the kind of context an annotation cannot convey.

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?

Two sentences, front-loaded with the return payload and closed with the routing hint. The field list is long but each item is a distinct piece of the swap state; nothing is redundant padding.

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 a full output schema and rich annotations, the description need only establish scope and routing, which it does. The only gap is the error/not-found case for a single-record lookup, a minor omission given the schema and annotations carry the rest.

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% and the single 'id' parameter is already documented in-schema as coming from list_swaps or the agreed thread. The description adds no further meaning about the identifier (e.g., accepted formats, what happens with an unknown id), so baseline 3 applies.

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 description names a specific verb and resource ('Full state of ONE swap') and enumerates the returned facets (status, both legs, escrow, tx hashes, timelocks, addresses, hashlock). The capitalized 'ONE' and the explicit contrast with list_swaps make it unmistakable against siblings.

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?

It states the use case ('follow a swap through settlement') and names the alternative tool for the other mode ('to list swaps use list_swaps'). The agent can route between single-swap lookup and listing without 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.