Skip to main content
Glama
@odatano/nightgate-mcp

@odatano/nightgate-mcp

Official
by ODATANO

send_token

Sends NIGHT or a chosen token from a wallet to shielded or unshielded addresses, with the sponsor paying the fee, for payouts, salaries, or invoice settlements.

Instructions

Send an amount from this wallet to another address, with the sponsor paying the fee: a payout, a salary, an invoice settlement. The address decides what moves. To a shielded address (mn_shield-addr_...) a shielded token goes: the transfer is built and proven here from the wallet's coins (at most maxInputs of them), and the server records the declared type and amount. To an unshielded address (mn_addr_...) NIGHT goes, or the unshielded tokenType given: the transfer is built and signed here from the wallet's unshielded coins, which sync on first use, and the server reads type, amount and recipient from it. One such payment or NIGHT pay-in runs at a time. get_swap_wallet shows what the wallet holds of either kind. Only the fee-unpaid bytes go to the server. The recipient needs nothing but its address. Needs sponsorTransfer in the grant and the type on the sponsor's list; an unshielded address also needs allowUnshieldedOffers on the grant. The tool also waits for the block (about a minute more) and then carries the instance's signed receipt; if that wait runs out, receipt is null and the same call again fetches it. The tool waits until the job settled (about 1 minute) and returns { status, txHash, transactionHash, result }. failed: next says what to do. If the call was cut off or came back pending, run it again with the same arguments: it picks up the job it started and submits nothing new (the answer says deduplicated). With an idempotencyKey that also holds after a restart of this server. A second, separate call with the same arguments needs a new idempotencyKey.

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": {
      "amount": "<amount>",
      "to": "<to>"
    },
    "name": "send_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe recipient's address as its get_attester_identity shows it: shieldedAddress (mn_shield-addr_...) or nightAddress (mn_addr_...)
amountYesAtoms to send; a decimal string is exact
tokenTypeNoRaw token type (64 hex), what derive_token_type or mint_token returns; required for a shielded address, default NIGHT for an unshielded one
idempotencyKeyNoDedupes retries

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.23.0
    • changedInput schema / properties / to / description
      Previous value: -"The recipient's shielded address (mn_shield-addr_...), as its get_attester_identity or get_swap_wallet shows it"New value: +"The recipient's address as its get_attester_identity shows it: shieldedAddress (mn_shield-addr_...) or nightAddress (mn_addr_...)"
    • changedInput schema / properties / tokenType / description
      Previous value: -"Raw token type (64 hex), what derive_token_type or mint_token returns"New value: +"Raw token type (64 hex), what derive_token_type or mint_token returns; required for a shielded address, default NIGHT for an unshielded one"
    • changedInput schema / required
      Previous value: -[
      -  "tokenType",
      -  "amount",
      -  "to"
      -]New value: +[
      +  "amount",
      +  "to"
      +]
  2. Addedv0.20.3

TDQS

A4.4/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 burden and does so: sponsor pays the fee, only fee-unpaid bytes reach the server, the server records declared type/amount for shielded but reads them from the transaction for unshielded, only one payment or NIGHT pay-in runs at a time, and it blocks until the job settles (~1 minute) before returning. It also documents grant requirements and deep retry/dedup behavior, including that idempotency holds across a server restart.

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 core purpose is front-loaded, but the text is dense and repetitive about waiting: it first says it waits for the block and may return a null receipt, then separately says it waits until the job settled (~1 minute) and returns a status object, which reads as two overlapping wait stories. Fragments like 'The address decides what moves' and 'One such payment or NIGHT pay-in runs at a time' add length without much precision.

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?

No output schema exists, and the description largely compensates by naming the return shape { status, txHash, transactionHash, result }, the receipt behavior, and the 'failed: next says what to do' recovery path. It still leaves `result` and the txHash vs transactionHash distinction unexplained, and the 'next' field is referenced without context.

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 already 100%, but the description adds real meaning on top: the `to` prefix determines what asset moves, `tokenType` defaults to NIGHT for unshielded addresses, and `idempotencyKey` is clarified far beyond the schema's 'Dedupes retries' (reuse the same args to resume a pending job; a second distinct call needs a new key). It does not explain the maxInputs reference to any parameter, leaving a small gap.

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?

States a specific verb/resource ('Send an amount from this wallet to another address') and immediately clarifies the sponsor-fee model and the payout/salary/settlement use case. It distinguishes the shielded vs unshielded paths, which is the real branching an agent needs to understand before calling, and it is plainly distinct from siblings like burn_token or get_swap_wallet.

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?

Gives clear conditional guidance: shielded address means a shielded token from the wallet's coins (max maxInputs), unshielded address means NIGHT or the given tokenType, and it names get_swap_wallet for inspecting balances. Prerequisites (sponsorTransfer in the grant, allowUnshieldedOffers, type on the sponsor's list) are spelled out. It never explicitly says when NOT to use it or names a write-path alternative, so a point is withheld.

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