Skip to main content
Glama
@odatano/nightgate-mcp

@odatano/nightgate-mcp

Official
by ODATANO

post_swap_offer

Publish a signed maker half to the swap offer board so takers can find it through list_swap_offers, optionally restricting access with a one-time taker secret and expiry.

Instructions

Post a maker half on the server's offer board, so takers find it with list_swap_offers instead of receiving the offer file out of band. The server checks it like a half it would sponsor (one token type given, one wanted, both on its list, never NIGHT) and records its terms; the half itself stays signed by the maker. The offer closes when a swap that spends one of its inputs lands, on expiry, or by retire_swap_offer. Needs postSwapOffer in an agent grant's allowedActions. Returns { offerId, status, terms }. With directed: true only a taker who knows the returned takerSecret can have the swap sponsored: hand that secret to your counterparty, it is shown once.

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": {
      "offer": "<offer>"
    },
    "name": "post_swap_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoUp to 8 tags for list_swap_offers
offerYesThe maker half, as offer file text or base64: offer file text (swapoffer1...) or base64 of the serialized, proven transaction
directedNotrue: the offer can only be taken with the takerSecret this call returns; for an invoice or an agreed OTC deal
expiresAtNoISO timestamp; at most 90 days ahead

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.20.3
    • addedInput schema / properties / directed
      Added value: +{
      +  "description": "true: the offer can only be taken with the takerSecret this call returns; for an invoice or an agreed OTC deal",
      +  "type": "boolean"
      +}
  2. Addedv0.18.3

TDQS

A4.7/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 server-side validation rules, that the maker's signature stays on the half, the closure conditions, the required grant action postSwapOffer, and the returned shape.

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 primary action and follows with the validation, lifecycle, authorization, return, and directed-offer details. Every sentence adds relevant information with no filler.

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?

There is no output schema, but the description names the return fields { offerId, status, terms }. It also covers authorization, validation, lifecycle, and directed-offer secret handling, making it complete for an agent to invoke the tool correctly.

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 beyond the schema. It explains that directed offers require the returned takerSecret and that the secret is shown only once, which is behaviorally important for interpreting the directed parameter.

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 verb and resource: post a maker half on the server's offer board. It also distinguishes the result from out-of-band offer delivery by saying takers find it with list_swap_offers.

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 gives clear usage context: post a maker half so takers can discover it via list_swap_offers, and use directed: true for invoice or agreed OTC deals. It does not explicitly say when not to use this versus build_swap_offer, but the main selection guidance is present.

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