Skip to main content
Glama

verify_proof

Verifies a ZK proof on-chain against ZKProofport's pinned verifier for its circuit and chain, returning valid:true or an error and refusing mismatched verifier addresses or issuer anchors.

Instructions

Step 4 (optional): Verify a ZK proof on-chain against ZKProofport's own pinned verifier contract for the circuit and chain. Pass the full generate_proof result object directly. The result's verifierAddress is only compared with the pinned one: a different address is refused, never called. Issuer anchors are checked too (OIDC provider key against Google/Microsoft's published keys; Coinbase/GIWA signer-list root). Returns { valid: true } if the proof is valid, otherwise { valid: false, error }.

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": {
      "result": "<result>"
    },
    "name": "verify_proof"
  }
}

Input Schema

NameRequiredDescriptionDefault
resultYesFull result object from generate_proof — pass it directly without extracting fields
min_scoreNohuman_passport: the threshold you asked for, in points. The proof's threshold must equal it; omit it and the threshold is not compared.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.52
    • addedInput schema / properties / result / properties / oprfEnvironment
      Added value: +{
      +  "description": "Wallet circuits: the OPRF environment the result says it was made in. Only compared: the key is chosen by the proving service this server is configured for, and a result naming another is refused",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.2.49
    • addedInput schema / properties / min_score
      Added value: +{
      +  "description": "human_passport: the threshold you asked for, in points. The proof's threshold must equal it; omit it and the threshold is not compared.",
      +  "type": "number"
      +}
  3. Changed4 schema fields changedv0.2.47
    • changedInput schema / properties / result / properties / verification / properties / chainId / description
      Previous value: -"Chain ID (e.g. 8453 for Base, 84532 for Base Sepolia)"New value: +"Chain the result names; selects the pinned verifier for the circuit on that chain"
    • changedInput schema / properties / result / properties / verification / properties / rpcUrl / description
      Previous value: -"RPC URL for the chain"New value: +"Ignored: verification uses its own public RPC for the chain, never one a result names"
    • changedInput schema / properties / result / properties / verification / properties / verifierAddress / description
      Previous value: -"Verifier contract address"New value: +"Verifier address the result names; compared with the pinned verifier, refused if different"
    • changedInput schema / properties / result / properties / verification / required
      Previous value: -[
      -  "verifierAddress",
      -  "chainId",
      -  "rpcUrl"
      -]New value: +[
      +  "verifierAddress",
      +  "chainId"
      +]
  4. First observedv0.2.9

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does substantial work: it discloses that a mismatched verifierAddress is refused and never called, that issuer anchors (OIDC keys, Coinbase/GIWA signer root) are checked, and that verification uses its own public RPC rather than any rpcUrl in the result. It stops short of stating latency, cost, or failure modes such as unsupported circuits.

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?

The text is dense but front-loaded: purpose first, then the critical 'pass the whole object' instruction, then the security constraints, then the return shape. Every clause carries information, though the sentence about verifierAddress comparison partly restates the schema.

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

Completeness5/5

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

There is no output schema, and the description supplies the return contract explicitly ('{ valid: true }' or '{ valid: false, error }'). For a nested two-parameter verification tool with no annotations, it covers the refusal semantics and trust model an agent needs to call it safely.

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 result, verification fields, and rpcUrl being ignored. The description reinforces the compare-only semantics of verifierAddress but adds no new meaning, and it never mentions the min_score threshold parameter, leaving that entirely to the schema.

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 and resource ('Verify a ZK proof on-chain against ZKProofport's own pinned verifier contract') and scopes it by circuit and chain. Placing it as 'Step 4 (optional)' clearly distinguishes it from the sibling generate_proof and the rest of the pipeline.

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 tells the agent exactly what input to pass ('the full generate_proof result object directly'), which is the main usage hazard for this tool. It is marked optional in the workflow, giving implicit when-to-use context, but it never states when an agent should skip verification or what to do on a false result.

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