Skip to main content
Glama
@odatano/nightgate-mcp

@odatano/nightgate-mcp

Official
by ODATANO

my_swap_offers

List the swap offers you posted, including open, filled, expired, and retired, with filters by status or last change and an optional wait for updates.

Instructions

The offers this caller posted on the board (a token: its grant's), open and closed, ordered by last change: what is still open, what filled (filledTxHash), what expired or was retired. status narrows to one state, since to offers changed after an instant, waitMs holds an empty answer until one of them changes. 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.

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

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 50
sinceNoISO timestamp; only offers changed after it
statusNoDefault all
waitMsNoHold the call while nothing matches, up to this many ms (at most 25000)

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

A3.8/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 by last change, the long-poll behavior of waitMs, status narrowing, and the exact row fields returned. It also states privacy exclusions ('Never the poster or the half's nullifiers'). It omits auth requirements, rate limits, and pagination behavior beyond the schema's limit parameter.

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 dense but front-loads the core purpose and then enumerates return fields and filter semantics; every clause carries information. The phrasing is occasionally awkward, notably 'since to offers changed after an instant,' but there is little wasted text.

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?

For a four-parameter read/list tool with no output schema and no annotations, the description covers the return shape, filtering behavior, long-poll semantics, and privacy constraints thoroughly. The main gaps are pagination/limit behavior and auth expectations, which are either schema-covered or left implicit.

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 real meaning: status narrows to one state, since filters to offers changed after an instant, and waitMs holds an empty answer until one changes. It does not discuss the limit parameter or pagination, leaving that entirely to 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 specifies the resource and scope precisely: 'The offers this caller posted on the board,' which distinguishes it from a board-wide listing. It also says the offer half should be fed to read_swap_offer or take_swap_offer, clarifying its role. It does not explicitly name list_swap_offers as the alternative for non-caller offers, and the verb is implicit rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the caller-scoped phrasing and by the downstream routing to read_swap_offer/take_swap_offer. The parameter interactions for status, since, and waitMs are explained, which helps an agent decide how to call it. However, there is no explicit when-to-use/when-not guidance or named alternative for listing other callers' offers.

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