Skip to main content
Glama
ODATANO

@odatano/nightgate-mcp

Official
by ODATANO

list_swap_offers

List and filter swap offers on the board, including a change feed for polling, and optionally wait for a matching offer before returning.

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.

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); needs NIGHTGATE 0.38.0
givesTypeNoOnly offers that give this token type
wantsTypeNoOnly offers that want this token type

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.3

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so well: it documents ordering, waitMs holding behavior, version requirement, read authorization, returned row fields, and privacy exclusions. These are exactly the operational details an agent needs before calling.

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 description is front-loaded with default behavior and every clause adds operational detail, including a useful row-field list because there is no output schema. It is somewhat dense and semicolon-heavy, which reduces readability slightly.

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?

Given seven optional parameters, no output schema, and no annotations, the description is complete enough to call the tool correctly. It explains return fields, privacy exclusions, mode interactions, and the long-poll behavior.

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 meaningful semantics for status, since, waitMs, and exact filter constraints. The limit parameter is left to the schema, but overall the description adds substantial value beyond the schema.

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 clearly states the resource (offers on the server's board) and the main modes (open default, closed statuses, change feed). It does not explicitly name `my_swap_offers` as the sibling for the caller's own offers, so sibling differentiation is mostly implicit.

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 concrete selection rules: no status means open offers; status filled/retired/expired/all reads closed offers; status all plus since polled repeatedly becomes the change feed; waitMs enables long-poll watching. It also explains that the offer half should be fed to read_swap_offer or take_swap_offer.

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