Skip to main content
Glama
@odatano/nightgate-mcp

@odatano/nightgate-mcp

Official
by ODATANO

retire_swap_offer

Remove a swap offer from the board as its poster, keeping reserved coins locked until revert_swap_offer or the 15-minute release returns them; returns retired or the offer's final status.

Instructions

Take an offer off the board. Only its poster may; the coins behind the half stay reserved until revert_swap_offer releases the half built here (or until the 15-minute release of get_swap_wallet). Returns { offerId, status }: retired, or the status of an offer already closed (expired, retired, filled), so a lapsed offer answers expired instead of an error.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "offerId": "<offerId>"
    },
    "name": "retire_swap_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
offerIdYesThe board entry

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 discloses authorization (poster only), coin-reservation behavior, release dependencies, return shape, and status handling. It even explains that a lapsed offer returns expired rather than an error.

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?

The description is front-loaded with the core action, then adds authorization and lifecycle details, then return behavior. It is dense but every sentence contributes useful information and no wording is wasted.

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 one-parameter mutation tool with no annotations and no output schema, the description is complete enough to call correctly. It covers authorization, side effects, release timing, return values, and edge-case statuses.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the single offerId parameter is already fully documented with its UUID format in the schema. The description references offerId in the return value but adds no further meaning or constraints beyond what the schema provides.

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?

The description states a specific action and resource: taking a swap offer off the board. It also distinguishes the tool from revert_swap_offer and get_swap_wallet by explaining that those release the reserved half, while this tool retires the offer itself.

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

Usage Guidelines4/5

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

It names relevant alternatives, revert_swap_offer and get_swap_wallet, and gives the precondition that only the poster may retire the offer. It does not explicitly spell out when not to use this tool, so it falls short of a full when/when-not guide.

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