Skip to main content
Glama

issue_pipa_zk_identity

Emite uma ZK identity attestation no pipa_korea_zk_identity program (PIPA Korea Art. 24 — i-PIN replacement). Requer SP1 v6 Groth16 proof real (356 bytes) + public_inputs (96 bytes) onde public_inputs[32..64] = subject_commitment. 4 kinds: 1=age_gate_19, 2=korean_resident, 3=kyc_verified, 4=domestic_representative.

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": {
      "subjectCommitmentHex": "<subjectCommitmentHex>",
      "attributeKind": "<attributeKind>",
      "attributeMetadataHashHex": "<attributeMetadataHashHex>",
      "proofHex": "<proofHex>",
      "publicInputsHex": "<publicInputsHex>"
    },
    "name": "issue_pipa_zk_identity"
  }
}

Input Schema

NameRequiredDescriptionDefault
proofHexYes356-byte hex SP1 v6 Groth16 proof. Gerar via mesma pipeline que compliance-registry / consent-manager.
expiresAtNoUnix timestamp opcional de expiração.
storageUriNoURI off-chain (max 128 bytes).
attributeKindYes1=age_gate_19, 2=korean_resident, 3=kyc_verified, 4=domestic_representative.
publicInputsHexYes96-byte hex ABI-encoded PublicValuesStruct. public_inputs[32..64] DEVE ser igual a subjectCommitmentHex.
subjectCommitmentHexYes32-byte hex commitment (Poseidon ou sha256 de identity_secret + salt). Sem PII.
attributeMetadataHashHexYes32-byte hex sha256 dos metadados off-chain (issuance details, validity).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose substantive behavior: exact proof artifact requirements (356-byte SP1 v6 Groth16), the 96-byte public-inputs binding where public_inputs[32..64] must equal subject_commitment, the four attribute kinds, and the note that commitments must be PII-free. It still omits what happens on failure, whether the call is an on-chain write with cost/irreversibility, and any permission or replay constraints.

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?

Dense and front-loaded: it leads with the action and target program, then the hard requirements, then the kind enumeration. The kind list is repeated verbatim in the schema and the sentence is packed with mixed-language technical shorthand, but no sentence is wasted.

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?

For a 7-parameter mutation tool with no annotations and no output schema, the description covers inputs and preconditions well but says nothing about the result (attestation identifier, transaction/address, error behavior) or side effects of issuance. Adequate to attempt the call, not complete enough to predict its outcome.

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 every parameter is already documented, and the description's parameter content (the kind enumeration and the public_inputs/subject_commitment linkage) largely duplicates what the schema states. It does reinforce the cross-parameter consistency constraint, but adds little meaning the schema does not already provide; baseline 3 applies.

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 ('Emite uma ZK identity attestation') and names the target program and legal basis (pipa_korea_zk_identity, PIPA Korea Art. 24, i-PIN replacement), which is far more than a restatement of the tool name. It does not contrast itself with plausible siblings such as cvm_generate_zk_proof or zk_compliance_attest, so an agent must infer the boundary itself.

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?

The description implies issuance as the use case and states a hard precondition (a real SP1 v6 Groth16 proof plus matching public inputs), which effectively tells the agent when the call can succeed. However, it offers no explicit when-to-use vs. when-not guidance and never points to an alternative tool for generating the proof or for verification.

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