Skip to main content
Glama

zk_snark_groth16_proof_verifier

Validate Groth16 zk-SNARK proofs off-chain on the BN254 curve before they trigger gas-expensive on-chain calls.

Instructions

Verifies off-chain zk-SNARK Groth16 cryptographic proofs over the BN254/alt_bn128 pairing curve, guaranteeing proof validity before gas-expensive on-chain calls. (0.050 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations provided, the description carries the disclosure burden. It does add meaningful behavioral context: the verification is off-chain, it is a cost-saving pre-check, and it costs 0.050 USDC on Base L2. However, it does not disclose what happens for invalid proofs, whether a payment is required up front, or what the return value looks like.

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 a single, dense sentence with the core action and curve front-loaded, followed by a useful cost parenthetical. Every element earns its place, and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's cryptographic complexity, no output schema, no annotations, and a generic payload parameter, the description is not complete enough for confident invocation. It explains why to use the tool but leaves the actual input format and result contract unspecified.

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 baseline is 3 even though the tool description adds no parameter-specific detail. The schema's 'payload' description is generic and does not explain how to encode the Groth16 proof, verification key, or public inputs, and the description does not compensate for that.

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 states a specific verb ('Verifies'), a precise resource ('off-chain zk-SNARK Groth16 cryptographic proofs'), and the specific curve ('BN254/alt_bn128 pairing curve'). It also clarifies the intended domain ('before gas-expensive on-chain calls'), which helps distinguish it from sibling signature or Merkle verifiers.

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?

It gives clear usage context: verify Groth16 proofs off-chain before spending gas on-chain, and communicates the cost. It does not explicitly name sibling alternatives or provide when-not-to-use exclusions, so it stops short of full routing guidance.

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

Deploy Server

Other Tools