Skip to main content
Glama
@odatano/nightgate-mcp

@odatano/nightgate-mcp

Official
by ODATANO

submit_vault_call

Build, prove, sign, and submit any AttestationVault call in one sponsored transaction, then wait for on-chain confirmation; retries are deduplicated.

Instructions

Run any AttestationVault call in one go: build, prove and sign it here with the caller seed, a sponsor pays, and the tool waits until it landed. Same calls and params as build_sponsorable_transaction: the ZK claims over a hidden field (proveFieldPredicate, proveFieldEquality, proveFieldMembership), the claims across two documents (proveFieldsUnchangedExcept, proveFieldsDiffer), disclosure (grantDisclosure, revokeDisclosure), passports and anchoring. The witness from prepare_document_proof is used here and never sent. Returns { status, attesterId, contractAddress, txHash, transactionHash, timings, check }; check is the free verify call that shows the effect on-chain. A failed job says in next 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": {
      "call": "<call>",
      "params": "<params>"
    },
    "name": "submit_vault_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
callYesWhich circuit to call
paramsYesThe call parameters, listed per call in build_sponsorable_transaction
docPairNoWITNESS { schema, openingA, openingB } for proveFieldsUnchangedExcept and proveFieldsDiffer
merkleProofNoWITNESS for the proveField* calls, as prepare_document_proof returns it for that field
idempotencyKeyNoDedupes retries of the same call
contractAddressNoAttestationVault address (64 hex); default NIGHTGATE_SANDBOX_VAULT, else the shared sandbox vault of the network (preprod, preview)
compiledArtifactRefNoVault lineage, default 'attestation-vault-32' (the sandbox vaults); 'attestation-vault' for a 16-slot vault

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.22.0
    • changedInput schema / properties / contractAddress / description
      Previous value: -"AttestationVault address (64 hex); default the shared sandbox vault of the network (preprod, preview)"New value: +"AttestationVault address (64 hex); default NIGHTGATE_SANDBOX_VAULT, else the shared sandbox vault of the network (preprod, preview)"
  2. 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 at all, the description carries the full burden and does: it declares this is a mutating submit-and-wait operation (sponsor pays, tool blocks until the transaction lands), that the witness is consumed locally and never transmitted, and that failures surface remediation in `next`. The deduplication guarantee, including survival across a server restart only when idempotencyKey is supplied, is exactly the behavioral context an agent cannot get from structured fields.

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?

Front-loaded with what the tool does, then witnesses, return shape, failure handling, and retry semantics in a sensible order with no filler sentences. It is dense and long, and enumerating the circuit families plus the returned field list leans on detail the schema partially repeats.

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 seven-parameter, nested-object, mutation tool with no output schema, the description supplies both the return shape ({ status, attesterId, contractAddress, txHash, timings, check }) and the meaning of `check` as the free verify call showing on-chain effect. Nothing an agent needs to invoke or recover from this call 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?

Schema description coverage is 100%, so the baseline is 3; the description goes beyond it by explaining that the witness comes from prepare_document_proof for that field and is never sent, and by spelling out the idempotencyKey dedup semantics that the schema only labels as "Dedupes retries of the same call". It does not restate the contractAddress default or the compiledArtifactRef lineage, which the schema already covers.

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 first sentence names a specific verb chain and resource ("Run any AttestationVault call ... build, prove and sign it here") and explicitly relates it to the sibling build_sponsorable_transaction as the same calls and params but executed end-to-end. An agent can tell it apart from the build-only sibling without opening either schema.

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?

It states the prerequisite witness source (prepare_document_proof), that params per call are documented under build_sponsorable_transaction, and explicit retry rules: rerun with the same arguments after a cutoff/pending result to pick up the same job, and use a new idempotencyKey only for a genuinely separate call. That is when-to-use plus when-not-to-reuse guidance, not inference.

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