Skip to main content
Glama

Swap status

swap_status
Read-only

Check the status of one swap or list every swap made by this kit, including stage, outcome, deadlines, and transaction details; read-only and changes nothing.

Instructions

Show the status of one swap, or of every swap this kit has made. Read-only and instant: it reads the kit's local swap records and changes nothing. Returns swaps, a list (empty when swap_id is unknown). Each entry has swap_id, stage and stage_label, step and steps_total, done, outcome (delivered, settled, refunded or failed), usdc_in, bsv_quoted, bsv_received once settled, deliver_to, eta_minutes, deadlines, txids with explorer links, needs_attention and what_to_do. To wait for the next change, use wait_for_swap rather than calling this in a loop.

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

Input Schema

NameRequiredDescriptionDefault
swap_idNoOptional swap_id from swap_asset_to_bsv. Omit it to list every swap this kit has made.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.22
    • addedInput schema / properties / swap_id / description
      Added value: +"Optional swap_id from swap_asset_to_bsv. Omit it to list every swap this kit has made."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false; the description still adds real value by saying it reads local kit records, is instant, and changes nothing, plus the empty-list-when-unknown edge case. It stops short of disclosing record retention or size limits on the returned list, so it is not fully complete, but it goes well beyond the annotations.

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?

Front-loaded with purpose and scope, then safety, then return shape, then the alternative — a sensible order with no filler sentences. The return-field enumeration runs long as a single dense clause, which is the only readability cost; given the absence of an output schema, that enumeration earns most of its space.

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 burden of describing returns and does so thoroughly: the fields, the outcome enum values, the empty-list case, and the needs_attention/what_to_do signals. It omits pagination or any cap on the all-swaps listing, a notable gap for the unbounded mode of a tool that can be called with no filter.

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% and the schema already documents swap_id including 'omit to list every swap', so the description is largely restating it. It does reinforce the param's provenance (from swap_asset_to_bsv) which helps the agent know what value to pass, but adds little that is genuinely new.

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 ('Show the status of one swap, or of every swap this kit has made') and makes the two scopes explicit up front, so an agent can distinguish it from swap_asset_to_bsv or wallet_info immediately.

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 explicitly: omit swap_id to list all swaps, and use wait_for_swap rather than polling this tool in a loop. That is a named alternative plus the condition that selects it, which is exactly what prevents the wrong call pattern.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.