Skip to main content
Glama
@odatano/nightgate-mcp

@odatano/nightgate-mcp

Official
by ODATANO

get_swap_wallet

Reads the caller wallet's shielded and unshielded balances, spendable coins, pending swap halves, and reserved coins to show what swaps can fund without spending.

Instructions

What the wallet of this MCP server (the caller seed) holds, shielded and unshielded. Shielded: address, public keys, and per token type the balance of the free coins, their number, spendable, the most ONE swap half can give (what its largest coins hold, up to maxInputs coins), and pending, what the halves built here bring back once their swaps land (the change and the wanted coins). While a half can still land the wallet is worth balance plus pending; a half can give only from balance, and revert_swap_offer moves a dropped half back into it. Also lists the halves built here that are not handed over yet (pendingHalves, with those of an earlier process marked restored) and the coins the SDK holds reserved (reserved, each with its ttl); one posted with post_swap_offer carries offerId and boardStatus and leaves the list once its offer filled. A maker half whose offer expired or was retired 15 minutes ago and that went into no job is released here on its own (released). Unshielded, under unshielded: the address a sender pays NIGHT to (mn_addr_...) and per token type, NIGHT first, the balance of the free coins, their number and reserved, what a payment built here holds until it landed. A first sync of the shielded coins from genesis takes about 5 minutes, during which the answer is { synced: false, syncingSeconds }: call again; the unshielded coins sync in seconds. Spends nothing.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.3

TDQS

A4.3/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 load and does so well: it declares 'Spends nothing', explains that a first shielded sync from genesis takes about five minutes and returns { synced: false, syncingSeconds } requiring a re-call, notes unshielded sync is seconds, and discloses the non-obvious side effect that an expired maker half with no job is released here on its own.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is largely justified because there is no output schema to explain the returned fields, but it arrives as a single dense block of run-on prose mixing shielded, unshielded, pending, reserved, and sync topics. Sentence-level economy is poor and a structured breakdown would make the same information far easier to parse.

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 no output schema and no annotations, the description supplies what an agent needs: the shape of the response per section, meanings of pending, restored, reserved, offerId, boardStatus, and released, plus the sync-state edge case. Nothing material for calling or interpreting it is missing.

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?

The tool takes zero parameters, so the baseline is 4; there is nothing for the description to disambiguate at the input level. Its detail is spent (appropriately) on return-field semantics rather than inputs.

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 opens with a specific statement of what the tool reports: the shielded and unshielded holdings of this MCP server's wallet (the caller seed). An agent can distinguish it from list_swap_offers, get_swap_offer, or get_usage without opening any schema, since it is the only one that reports balances, pending halves, and reserved coins together.

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 rather than stated: you call it to inspect what you can spend before building or reverting halves, and it does say to call again while syncing. There is no explicit when-not guidance and no named alternative (e.g., for offer-level detail), so guidance is adequate but inferential.

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