Skip to main content
Glama
@odatano/nightgate-mcp

@odatano/nightgate-mcp

Official
by ODATANO

sponsor_unbound_transaction

Sponsors an unbound, signed transaction by adding the fee, binding it, and submitting it to NIGHTGATE; waits for settlement and returns status and transaction hash.

Instructions

Hand an UNBOUND (pre-binding), proven and signed transaction to the sponsor, the PARALLEL channel: one built by build_sponsorable_transaction, or by the @odatano/nightgate-tx txbuilder's buildSponsorable({ bind: false }) (the caller's key never left its machine). The sponsor adds its fee, binds and submits, several transactions at once. The server picks the wallet that pays and applies the same contract and circuit list as sponsor_finalized_transaction. Contract state is account-style: two sponsored calls against the SAME contract in one block conflict, the loser lands on-chain but its call does not apply and the job ends failed with errorCode CHAIN_EXECUTION_FAILED (the transaction hash is in the error); then REBUILD the transaction against the current contract state and sponsor again (never resubmit the same bytes). 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

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

Input Schema

NameRequiredDescriptionDefault
fileNoPath of a file holding the transaction, as base64 text or raw bytes (outFile of a build tool, or written by the txbuilder)
txIdNotxId returned by build_sponsorable_transaction on this server; the bytes never pass through the conversation
unboundTxB64NoBase64 of the caller-built, proven and signed UNBOUND transaction, only when neither txId nor file is available: long base64 copied through a model loses characters
idempotencyKeyNoDedupes retries of the SAME bytes; a rebuilt transaction is a new key

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.3

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden and does: it discloses the ~1 minute blocking wait, the returned shape { status, txHash, transactionHash, result }, the account-style conflict semantics for two calls against the same contract in one block, the resulting CHAIN_EXECUTION_FAILED errorCode, and the dedup/persistence behavior 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.

Conciseness4/5

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

The critical routing information (what the input is, preferred source, failure recovery) is front-loaded and every sentence carries operational content. It is dense and would scan better as short bulleted clauses, but there is no filler or repetition of schema fields.

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 blocking, mutating, fee-sponsoring submission tool with four optional inputs and no output schema, the description covers input provenance, timing, return shape, failure codes, recovery steps, and retry idempotency. An agent has everything needed to call it and to react to its outcomes.

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 cross-parameter meaning the schema cannot: a preference order among txId/file/unboundTxB64, the rationale that txId keeps bytes out of the conversation, and the rule that idempotencyKey dedupes the same bytes while a rebuilt transaction needs a new key.

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 action ('hand an UNBOUND (pre-binding), proven and signed transaction to the sponsor') plus the resource and the exact producers of the input (build_sponsorable_transaction, txbuilder's buildSponsorable({bind:false})). The 'UNBOUND (pre-binding)' qualifier plus the reference to sponsor_finalized_transaction lets an agent separate it from the finalized-transaction sibling without opening schemas.

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

Usage Guidelines5/5

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

Explicitly says where the transaction comes from, which input to prefer (txId, then file, then unboundTxB64), and what to do on each failure path: rebuild against current contract state after CHAIN_EXECUTION_FAILED, never resubmit identical bytes, rerun with identical arguments after a cutoff, and mint a new idempotencyKey for a genuinely separate call. That covers when-to-use, when-not, and the alternatives.

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