Skip to main content
Glama
@odatano/nightgate-mcp

@odatano/nightgate-mcp

Official
by ODATANO

sponsor_finalized_transaction

Submit a finalized, fee-unpaid transaction so the sponsor pays the fee and broadcasts it on-chain while preserving the builder’s identity.

Instructions

Hand a FINALIZED, fee-unpaid transaction to the sponsor: one that was built, proven and signed elsewhere (build_sponsorable_transaction with bind:true, or the @odatano/nightgate-tx txbuilder, so the caller's key never left its machine). The sponsor pays the fee and submits; the on-chain effect carries the BUILDER's identity, not the sponsor's. The server picks the wallet that pays, applies its contract and circuit list and refuses anything outside it. The transaction expires with its TTL (default 30 min), so hand it over promptly. This is the SERIAL channel; for parallel submission build with bind:false and use sponsor_unbound_transaction. 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_finalized_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 (bind:true) on this server; the bytes never pass through the conversation
finalizedTxB64NoBase64 of the caller-finalized, fee-unpaid transaction, only when neither txId nor file is available: long base64 copied through a model loses characters
idempotencyKeyNoDedupes retries; the request is also fingerprinted by the transaction bytes

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?

No annotations are supplied, so the description carries the full burden and does so: the server picks the paying wallet, enforces its contract and circuit list and refuses anything outside it, the transaction expires with its TTL (default 30 min), the call blocks until the job settles (~1 min), and the return shape { status, txHash, transactionHash, result } is spelled out. Deduplication behavior on retry, including survival across a server restart with an idempotencyKey, is disclosed in detail.

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?

Dense and front-loaded: the core action and the finalized/fee-unpaid precondition come first, then serial-vs-parallel routing, then timing and recovery semantics. It is long, and the retry/idempotency material is heavier than strictly needed, but essentially every sentence carries operational information.

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, yet the description names the return fields, the blocking duration, and the failure path (`next` says what to do). Combined with the TTL, wallet enforcement, and dedup rules, an agent has everything needed to invoke this correctly on a mutation-like, async-settling operation.

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; the description adds genuine meaning on top by tying txId to a prior build_sponsorable_transaction (bind:true) call on this server and by explaining that re-running with the same arguments reattaches to the existing job rather than submitting again. The idempotencyKey nuance (persisting across restart, but a separate call needing a new key) extends beyond the schema's one-line field description.

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 on a specific object: hand a FINALIZED, fee-unpaid transaction to the sponsor, which pays the fee and submits. It even clarifies the unusual ownership semantics (the on-chain effect carries the BUILDER's identity, not the sponsor's) and explicitly separates itself from the sibling serial/parallel channels.

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?

Gives explicit preconditions (transaction must already be built, proven and signed; built with bind:true or via the txbuilder) and names the alternative path: for parallel submission build with bind:false and use sponsor_unbound_transaction. It also states the retry rule and when a new idempotencyKey is required.

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