Skip to main content
Glama
@odatano/nightgate-mcp

@odatano/nightgate-mcp

Official
by ODATANO

verify_attestation

Verifies a live Midnight AttestationVault record for an attester's payload hash via attesterId+payloadHash or bound documentId, without crawlers or txHash; returns false if absent.

Instructions

Verify against LIVE Midnight contract state that an attester's record of a payload hash stands in an AttestationVault (crawler-free, no txHash needed). A record is ONE attester's attestation of ONE payload (ledger key recordKey(attesterId, payloadHash)): name it by attesterId + payloadHash, or by a bound documentId, which resolves to exactly one record and reveals its attester. Optionally also checks that the anchored content root / schema id match. Returns verified:false (not an error) when absent; the result carries attesterId, payloadHash, recordKey and documentId. bindingRegistered is only about documentId lookups: true when the vault registrar assigned that id to this attester. A record anchored without a document id reports false, and that is fine. Free: it reads the public verify service.

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

Input Schema

NameRequiredDescriptionDefault
networkNoRead from another network public indexer instead of the configured one
schemaIdNoOptional anchored schema id to check; the result reports schemaOk, so an examiner can pin the canonical field list
attesterIdNoThe attester whose record to check (64 hex; get_attester_identity for this server's own). Required unless documentId is given
documentIdNoA bound document id (64 hex): resolves the record through the vault's document bindings
contentRootNoOptional anchored content root to check (64 hex)
payloadHashNoThe attested payload hash (sha256, 64 hex). Required with attesterId; next to documentId it must match the bound record
contractAddressNoAttestationVault address (64 hex); default NIGHTGATE_SANDBOX_VAULT, else the shared sandbox vault of the network (preprod, preview)
compiledArtifactRefNoContract artifact ref, defaults to 'attestation-vault-32'; '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. Changed10 schema fields changedv0.18.3
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / attesterId
      Added value: +{
      +  "description": "The attester whose record to check (64 hex; get_attester_identity for this server's own). Required unless documentId is given",
      +  "pattern": "^[0-9a-fA-F]{64}$",
      +  "type": "string"
      +}
    • changedInput schema / properties / compiledArtifactRef / description
      Previous value: -"Contract artifact ref, defaults to 'attestation-vault'"New value: +"Contract artifact ref, defaults to 'attestation-vault-32'; 'attestation-vault' for a 16-slot vault"
    • changedInput schema / properties / contractAddress / description
      Previous value: -"AttestationVault contract address"New value: +"AttestationVault address (64 hex); default the shared sandbox vault of the network (preprod, preview)"
    • removedInput schema / properties / contractAddress / minLength
      Removed value: -1
    • addedInput schema / properties / contractAddress / pattern
      Added value: +"^[0-9a-fA-F]{64}$"
    • addedInput schema / properties / documentId
      Added value: +{
      +  "description": "A bound document id (64 hex): resolves the record through the vault's document bindings",
      +  "pattern": "^[0-9a-fA-F]{64}$",
      +  "type": "string"
      +}
    • changedInput schema / properties / payloadHash / description
      Previous value: -"The attested payload hash (sha256, 64 hex)"New value: +"The attested payload hash (sha256, 64 hex). Required with attesterId; next to documentId it must match the bound record"
    • addedInput schema / properties / schemaId
      Added value: +{
      +  "description": "Optional anchored schema id to check; the result reports schemaOk, so an examiner can pin the canonical field list",
      +  "pattern": "^[0-9a-fA-F]{64}$",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "contractAddress",
      -  "payloadHash"
      -]
  3. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/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 well: it declares the read is against LIVE contract state via the public verify service, that it is free, that it is crawler-free and needs no txHash, and that an absent record returns verified:false rather than throwing. It also pre-empts a likely misreading by explaining that bindingRegistered=false is normal for records anchored without a document id. It does not mention rate limits or any auth prerequisites, which keeps it from a 5.

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 the core action and scope, and every clause carries information (record definition, two naming paths, optional checks, false-vs-error semantics, bindingRegistered caveat, cost). The single dense paragraph with nested parentheticals makes it slightly harder to scan than a structured alternative, but there is no filler.

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?

For an eight-parameter read tool with no output schema and no annotations, the description is largely self-sufficient: it names the returned fields (attesterId, payloadHash, recordKey, documentId), the boolean outcome, and the bindingRegistered meaning, and it describes the documentId-resolution behavior. It could say more about the schemaOk result and how the network/contractAddress override affects the verdict, but nothing essential for calling it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all eight parameters including the 64-hex patterns and the default vault/artifact refs. The description adds a little relational meaning (documentId resolves to exactly one record and reveals its attester; payloadHash must match the bound record), but most of that is also in the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (verify) and a precise resource (an attester's record of a payload hash inside an AttestationVault), and defines the ledger key recordKey(attesterId, payloadHash), so an agent knows exactly what object it is querying. It adds differentiators like 'crawler-free, no txHash needed', but never contrasts itself with the sibling verify_predicate, leaving that one boundary to inference.

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?

Explains the two valid lookup paths (attesterId + payloadHash, or a bound documentId that resolves to exactly one record) and the optional contentRoot/schemaId cross-checks, which is real when/how guidance. It also says verified:false is a normal outcome rather than an error, preventing misuse of failure handling. It stops short of stating exclusions, e.g. when a caller should prefer verify_predicate instead.

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