Skip to main content
Glama
ODATANO

@odatano/nightgate-mcp

Official
by ODATANO

attest_agent_output

Anchor an agent's output provenance on the Midnight blockchain, creating a tamper-evident envelope that anyone can verify independently by re-hashing.

Instructions

Anchor agent-output provenance on the Midnight chain: "agent X produced output O from input I at time T". Builds the canonical v1 envelope server-side, hashes it and anchors it; the response returns the envelopeJson any third party can re-hash and check via verify_attestation, without trusting this server. Async: returns { jobId, status } immediately; poll get_job_status until succeeded or failed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentIdYesAgent identity, ideally a registered grantee id
modelIdNoOptional model identifier
inputHashYesCommitment to the agent input (64 hex)
sessionIdYesWallet session id that signs and submits
outputHashYesCommitment to the produced output (64 hex)
policyHashNoOptional commitment to the governing policy (64 hex)
producedAtNoOptional ISO-8601 production time, defaults to now
storageRefNoWhere output/envelope live, defaults to agent-output://<agentId>
idempotencyKeyNoDedupes retries
contractAddressYesAttestationVault deployment
sponsorSessionIdNoOptional second session that pays the dust fee
compiledArtifactRefNoContract artifact ref, defaults to 'attestation-vault'
Behavior4/5

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

The description discloses key behaviors: server-side envelope construction, hashing, anchoring, immediate async response with {jobId, status}, polling requirement, and the trust model ('without trusting this server'). It omits details like fees or permission requirements, but since no annotations exist, this is a solid disclosure of core behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

The description is two dense sentences that front-load the core purpose and then concisely explain the async flow. Every clause adds essential information without redundancy.

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?

Given the tool's complexity (12 parameters, async, no output schema), the description explains the initial response, the polling action, and the eventual deliverable (envelopeJson). It is slightly ambiguous about which response contains the envelopeJson, but overall it is sufficiently complete for an agent to use it.

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?

The input schema covers 100% of parameters with meaningful descriptions, so the baseline is 3. The description adds conceptual mapping (agent X, output O, input I, time T) but provides no additional parameter-level guidance beyond what the schema already offers.

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 description opens with a specific action: 'Anchor agent-output provenance on the Midnight chain' and elaborates with the semantic 'agent X produced output O from input I at time T'. This clearly distinguishes the tool from siblings like verify_attestation and anchor_document.

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?

The description provides clear context: it is async, returns a jobId/status immediately, and instructs polling get_job_status until completion. It also mentions that third parties can verify via verify_attestation. However, it does not explicitly state when not to use this tool or name alternative attestation/document tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ODATANO/NIGHTGATE-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server