Skip to main content
Glama

submit_verified_compliance_attestation

Submete uma attestation ZK-verified no compliance-registry (create_verified_attestation). Faz CPI ao SP1 verifier program antes de gravar. commitmentHex deve equalar a subject_commitment (bytes[32..64] do publicInputs). Requer proof SP1 v6 (356 bytes) + public_inputs (96 bytes).

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": {
      "subject": "<subject>",
      "commitmentHex": "<commitmentHex>",
      "proofHex": "<proofHex>",
      "publicInputsHex": "<publicInputsHex>"
    },
    "name": "submit_verified_compliance_attestation"
  }
}

Input Schema

NameRequiredDescriptionDefault
subjectYesSubject pubkey base58.
proofHexYes356-byte SP1 v6 Groth16 proof (hex).
expiresAtNoUnix timestamp expiração.
storageUriNoURI off-chain (max 128 bytes).
commitmentHexYes32 bytes hex (deve bater com bytes[32..64] do publicInputs).
schemaIdBase58NoSchema ID opcional.
publicInputsHexYes96-byte ABI-encoded PublicValuesStruct (hex).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a meaningful trait: a CPI to the SP1 verifier program runs before the write, so unverified submissions are rejected. It leaves out failure behavior, permissions/authority required, gas/cost, and whether the resulting attestation is immutable or revocable.

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 short sentences, front-loaded with the action and contract, then verification behavior, then the numeric invariant, then payload sizes. Dense and nearly waste-free; the final size sentence partially duplicates the schema.

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

Completeness3/5

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

Covers the core call requirement and the critical matching constraint well for a ZK-verification tool with no output schema. Still thin on the mutation profile — no statement of required signer authority, irreversibility, or what error surfaces when verification or the commitment check fails.

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 coverage is 100%, so the baseline is 3, but the description adds a genuine cross-field invariant: commitmentHex must equal bytes[32..64] of publicInputs, tying two parameters together in a way the per-field schema cannot express. The proof and public-input byte sizes are largely restated from the schema, capping the added value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Submete uma attestation ZK-verified no compliance-registry') and names the underlying contract call (create_verified_attestation). The 'ZK-verified' plus SP1-proof-required framing implicitly separates it from plain sibling submissions like submit_compliance_attestation, though no sibling is named.

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

Usage Guidelines3/5

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

Prerequisites are stated clearly (needs an SP1 v6 356-byte proof and 96-byte public inputs), which tells the agent when this tool is callable. However, there is no explicit routing guidance — it never says to use submit_compliance_attestation instead when no ZK proof is available.

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