Skip to main content
Glama

rta — zero-knowledge proof of a threshold

Verify a zero-knowledge proof of a threshold

verify_proof
Read-onlyIdempotent

Verify a Groth16 zero-knowledge proof that a hidden value reached a threshold — for example 'the account balance is at least 1000'. The verifier learns that the threshold is met and never learns the value: the public signals are empty by construction. Returns whether the proof is valid, the predicate, and what the proof does NOT disclose. Use when a counterparty must show a threshold was met without revealing the number. A one-time nonce is required so the same proof cannot be replayed.

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": {
      "predicate": "<predicate>",
      "proof": "<proof>",
      "nonce": "<nonce>"
    },
    "name": "verify_proof"
  }
}

Input Schema

NameRequiredDescriptionDefault
nonceYesOne-time nonce obtained from POST /v1/nonce.
proofYesThe Groth16 proof as produced by snarkjs.
predicateYesWhich predicate the proof is for, e.g. balance_threshold.
public_signalsNoPublic signals of the proof (usually empty: that is the point).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds real context beyond them: public signals are empty by construction and a one-time nonce prevents replay. It does not resolve whether verification consumes the nonce server-side, which is exactly the detail that sits in tension with idempotentHint=true on a repeated identical call.

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?

Four sentences, front-loaded with what is verified and followed by the privacy property and the usage rule. Slight redundancy between 'the verifier learns that the threshold is met and never learns the value', 'the public signals are empty by construction', and 'without revealing the number' — the privacy point is made three times.

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?

With no output schema, the description steps in to describe the return payload (validity, predicate, non-disclosure) and explains the nested proof object's origin (snarkjs). It leaves out failure behavior for malformed versus invalid proofs and the nonce lifecycle, which matter for a verification endpoint with an external nonce dependency.

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 coverage is 100%, so the baseline is 3; each parameter already carries a description including the nonce source endpoint and the emptiness of public_signals. The description adds the rationale for the nonce (anti-replay), but says nothing new about the 'proof' object shape or which predicate strings are valid.

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 verb and resource — verifying a Groth16 zero-knowledge threshold proof — plus a concrete example ('the account balance is at least 1000'). The cryptographic scheme and the threshold predicate distinguish it clearly from the only listed sibling, list_predicates, which merely enumerates predicates.

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?

Gives an explicit use case: 'Use when a counterparty must show a threshold was met without revealing the number.' That is a clear triggering condition, but there are no exclusions, no prerequisites spelled out (e.g., where to obtain a predicate name), and no routing toward list_predicates for discovering valid predicate values.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.