Skip to main content
Glama
@odatano/nightgate-mcp

@odatano/nightgate-mcp

Official
by ODATANO

list_swap_offers

Lists open or closed swap offers with token-type, tag, status, and change-time filters, and can wait for new or updated offers to poll the board.

Instructions

Offers on the server's board. Without status: the open ones, newest first. status filled | retired | expired | all reads the closed ones instead, ordered by last change; since keeps offers changed after that instant, so status all + since polled repeatedly is the board's change feed. With waitMs the server holds an empty answer until an offer matches or the time is up, so a watcher makes one call per change instead of one per interval. Filters are exact 64-hex token types and one tag. Each row: offerId, the offer half (feed it to read_swap_offer or take_swap_offer), gives/wants type and amount, tags, expiresAt, postedAt, status, filledTxHash, closedAt, changedAt. Never the poster or the half's nullifiers. Every token may read the board.

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_swap_offers"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoOnly offers carrying this tag
limitNoDefault 50
sinceNoISO timestamp; only offers changed after it
statusNoDefault open
waitMsNoHold the call while nothing matches, up to this many ms (at most 25000)
givesTypeNoOnly offers that give this token type
wantsTypeNoOnly offers that want this token type

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.23.0
    • changedInput schema / properties / waitMs / description
      Previous value: -"Hold the call while nothing matches, up to this many ms (at most 25000); needs NIGHTGATE 0.38.0"New value: +"Hold the call while nothing matches, up to this many ms (at most 25000)"
  2. Addedv0.18.3

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses ordering (newest first vs by last change), the blocking/long-poll behavior of waitMs, and the permission model ("Every token may read the board"). It even states what is deliberately withheld (never the poster or the half's nullifiers), though it does not state pagination/limit behavior beyond the schema's default.

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?

The listing behavior is front-loaded in the first sentence and every subsequent sentence adds distinct information (closed-set ordering, change-feed pattern, watcher semantics, filter format, row shape, omissions, access). The telegraphic, clause-heavy style ("status filled | retired | expired | all reads the closed ones instead") is dense enough that a reader may need to re-parse it, which keeps it just short of a 5.

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?

For a 7-parameter, zero-required read tool with no output schema and no annotations, the description supplies the missing return contract by enumerating each row's fields and explicitly naming the excluded fields, plus access permissions and ordering. Nothing an agent needs to call this correctly or interpret the response is absent.

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 the baseline is 3, but the description adds meaning the schema does not: status values shift the result set and the sort order, since combined with all yields a change feed, waitMs is framed as a watcher mechanism, and filters are constrained to exact 64-hex token types and a single tag. That is real semantic value beyond the terse per-parameter schema text.

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?

"Offers on the server's board" plus the enumeration of status/since/tag/type filters makes clear this is a read of the board listing, and the parenthetical "feed it to read_swap_offer or take_swap_offer" explicitly separates it from the single-offer read and take siblings. An agent can tell what this returns and how it differs from the per-offer tools without opening the 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?

It gives explicit mode selection: no status means open offers newest-first; filled/retired/expired/all means closed ones ordered by last change. It also names the intended polling pattern (status=all + since as a change feed, waitMs as a one-call-per-change watcher) and routes to read_swap_offer/take_swap_offer for acting on a row, so when-to-use and how-to-use are both covered.

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