Skip to main content
Glama

List your swaps

list_swaps
Read-onlyIdempotent

Your swaps (agreed deals), 20 per page by default, each with its status and both legs. Use it to find a swap; for one swap's full state use swap_status. Cursor-paginated.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_swaps"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size, 1-100
cursorNonextCursor from the previous page; omit for the first page

Output Schema

NameRequiredDescriptionDefault
swapsNo
nextCursorNoPass as cursor; null = last page

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / swaps / items / 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 / cursor / description
      Added value: +"nextCursor from the previous page; omit for the first page"
    • addedInput schema / properties / limit / description
      Added value: +"Page size, 1-100"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "nextCursor": {
      +      "description": "Pass as cursor; null = last page",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "swaps": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "id": {
      +            "description": "Swap id",
      +            "type": "string"
      +          },
      +          "secretCiphertext": {
      +            "description": "Revealed secret, plain hex",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "status": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds genuinely useful behavior beyond them: 20-per-page default, cursor-based pagination, and per-item contents. It doesn't discuss scoping to the authenticated user beyond the word 'your', which is a minor gap.

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

Conciseness5/5

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

Three short sentences, front-loaded with the resource and its contents, followed by the routing rule and pagination note. No filler words or repeated information.

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

Completeness5/5

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

It is a read-only, two-parameter list tool with an output schema and full annotation coverage, so the description doesn't need to explain return values. Scope, default page size, pagination mechanics, and the sibling alternative are all present, leaving no material gap for correct invocation.

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 100%, so both parameters are already documented, and this establishes the baseline of 3. The description goes one better by disclosing the default page size of 20, which the schema does not state, and by reinforcing the cursor flow.

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?

States a specific verb and resource ('Your swaps (agreed deals)') plus the shape of each result: status and both legs. It explicitly distinguishes itself from the sibling swap_status, so an agent can pick between them without opening a schema.

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 both directions: use this one to 'find a swap', and use swap_status for 'one swap's full state'. The alternative is named and the condition selecting it is 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.