Skip to main content
Glama

bitcoin-stratigraphy

Submit ZK Proof

proof.submit

PURPOSE: Verifies Groth16/Poseidon BN254 coordinates, indexes their lifecycle in process memory, and attempts Nostr NIP-78 publication for a valid proof. USAGE: Use to submit proof coordinates for lifecycle lookup and optional Nostr publication. Do NOT use when only validating an encoded proof against telemetry data; use proof.verify instead. PARAMETERS: proof is an object containing pi_a as three decimal strings, pi_b as three pairs of decimal strings, and pi_c as three decimal strings; publicSignals is exactly five decimal strings ordered as blockHeight, thermodynamicHash, timestamp, valuationSat, and snapshotDigest; snapshotDigest accepts a decimal field digest or IPFS CID and, when supplied, must equal publicSignals[4]. BEHAVIOR: Validates and indexes Groth16/BN254 ZK proof attestations through a bounded process-memory lifecycle; records can be refreshed or evicted, so the index is neither durable nor append-only. Valid proofs may be published as NIP-78 attestations. This MCP API exposes no deletion tool. Rate limit: 60 req/min per IP shared across /mcp. RETURNS: Object containing proofHash, status as verified or invalid, submittedAt, and attestationStatus describing Nostr publication or why it was not attempted. ERRORS: -32602 (Invalid Parameters) for malformed coordinates, signals, fields, or a snapshotDigest mismatch; HTTP 429 (Rate Limit) when the shared limit is exceeded; cryptographic rejection is returned as status invalid and publication failure is reported by attestationStatus. No 402 payment required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
proofYesGroth16/Poseidon zk-SNARK proof coordinates over the BN254 curve.
publicSignalsYesPublic signals ordered as blockHeight, thermodynamicHash, timestamp, valuationSat, and snapshotDigest.
snapshotDigestNoDecimal field digest or IPFS CID that must equal publicSignals[4] when supplied.1

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYesImmediate Groth16 verification result for the submitted proof and public signals.verified
proofHashYes0x-prefixed lowercase hexadecimal SHA-256 digest of the canonical proof.0x1a2b3c4d5e6f789001234567890abcdef1234567890abcdef1234567890abcd
submittedAtYesISO 8601 UTC date string format.2026-09-19T06:20:00.000Z
attestationStatusYesNostr NIP-78 publication result: broadcast_confirmed, broadcast_failed, not_configured, or not_broadcast_invalid_proof.broadcast_confirmed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only broadly signal readOnly=false, idempotent=false, and destructive=false. The description adds substantial behavioral context: records live in process memory, can be refreshed or evicted, are neither durable nor append-only, valid proofs may be published to Nostr, rate limits are shared across /mcp, and no deletion endpoint exists. It also clarifies error semantics and that publication failure is surfaced through attestationStatus.

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 long but organized into labeled sections (PURPOSE, USAGE, PARAMETERS, BEHAVIOR, RETURNS, ERRORS), making it skimmable and front-loaded with purpose. Each section provides operationally relevant information for a complex tool, and there is no filler or redundant prose.

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?

For a tool with nested parameters, side effects, external publication, lifecycle behavior, and multiple error modes, the description covers everything an agent needs: usage boundary, parameter shapes, invariants, return fields, error codes, rate limits, and payment requirements. Combined with the rich schema and annotations, nothing essential is missing.

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%, and the schema already documents proof structure, the five-signal ordering, and the snapshotDigest equivalence constraint. The description summarizes these constraints clearly, but it does not add meaning beyond what the schema already provides. Per the high-coverage baseline, 3 is appropriate.

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 action set: verifies Groth16/BN254 coordinates, indexes them through a lifecycle, and attempts Nostr NIP-78 publication. It clearly differentiates from proof.verify by naming the sibling in the usage section, so an agent can distinguish submission from pure validation without inspecting the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The USAGE section explicitly says when to use this tool ('submit proof coordinates for lifecycle lookup and optional Nostr publication') and when not to ('Do NOT use when only validating an encoded proof against telemetry data; use proof.verify instead'). This is direct alternatives-and-exclusions guidance with nothing left to inference.

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.

Resources