Skip to main content
Glama
ODATANO

@odatano/nightgate-mcp

Official
by ODATANO

prove_field_predicate

Prove a hidden document field meets a threshold (<= or >=) without revealing the value, using zero-knowledge and a Merkle inclusion path; returns an async job ID.

Instructions

Issue a zero-knowledge field-bound predicate proof: prove that a hidden field of an anchored document satisfies "value <= threshold" or "value >= threshold" WITHOUT revealing the value. Needs the depth-4 Merkle inclusion path of the field in the anchored content root. value/threshold are scaled integers (decimal strings); the value is a witness and never persisted. If contentRoot is supplied it is anchored first. A false predicate fails at local proving time, nothing is submitted. Async: returns { jobId, status } immediately; poll get_job_status until succeeded or failed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirsYesExactly 4 booleans; true means the current node is the LEFT child
unitNoInformational unit, e.g. kWh
valueYesScaled integer field value (witness only, never persisted)
fieldKeyYesCanonical field id (64 hex, public)
siblingsYesDepth-4 Merkle inclusion path: exactly 4 sibling digests (64 hex each)
predicateYesPredicate operator
sessionIdYesWallet session id that signs and submits
thresholdYesScaled integer threshold (same scaling as value)
contentRootNoOptional Merkle root (64 hex) to anchor first
payloadHashYesAttestation payload hash (64 hex)
idempotencyKeyNoDedupes retries
contractAddressYesAttestationVault deployment
sponsorSessionIdNoOptional second session that pays the dust fee
compiledArtifactRefNoContract artifact ref, defaults to 'attestation-vault'
Behavior5/5

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

With no annotations, the description carries the full burden and fulfills it thoroughly: it discloses the zero-knowledge property, that the value is a witness and never persisted, that a false predicate fails locally with nothing submitted, and the immediate async return. It also adds context about scaling and contentRoot anchoring, offering a comprehensive behavioral profile.

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?

Every sentence earns its place: the first sentence states the primary function, subsequent sentences cover prerequisites, scaling, anchoring, failure behavior, and the async pattern. The description is tightly written with no fluff and is appropriately front-loaded.

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 a complex 14-parameter tool with no output schema, the description covers the core aspects: purpose, prerequisites, behavioral nuances, and the return format. It could further describe error scenarios or the verification flow, but the essential operational context is complete.

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 adds value beyond the schema by explaining the scaled integer semantics for value and threshold, the witness-only role of value, the depth-4 Merkle path requirement for siblings/dirs, and the contentRoot anchoring behavior. This enriches the parameter understanding.

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 verb phrase 'Issue a zero-knowledge field-bound predicate proof' and precisely defines the predicate as 'value <= threshold' or 'value >= threshold' while emphasizing non-revelation. It clearly differentiates from verification siblings (verify_*) by focusing on proof generation, and the singular 'field' distinguishes it from the plural sibling 'prove_field_predicates_batch'.

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 concrete usage context: it requires the depth-4 Merkle inclusion path, explains the optional contentRoot anchoring behavior, and describes the async flow with get_job_status polling. It does not explicitly name the batch alternative or state 'when not to use', but the strong contextual detail makes the intended use unambiguous.

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