Skip to main content
Glama

submit_composed_attestation

Composed Stack: submete attestation compressed atomicamente — Shadow Drive upload (immutable) + SP1 verify CPI + Light Protocol leaf insert + Squads vault authority gating. ~$0.03/op vs $0.34 LOCKED rent do flow regular. Requer SP1 proof v6 (356 bytes), public_inputs (96 bytes), payload arbitrário (uploaded a Shadow Drive). Authority é Squads vault[3] Compliance Authority PDA (pode revocar via revoke_composed_attestation).

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>",
      "payloadBase64": "<payloadBase64>",
      "payloadFilename": "<payloadFilename>",
      "jurisdiction": "<jurisdiction>",
      "authorityPubkey": "<authorityPubkey>",
      "stateTreePubkey": "<stateTreePubkey>",
      "stateQueuePubkey": "<stateQueuePubkey>",
      "shdwStorageAccount": "<shdwStorageAccount>"
    },
    "name": "submit_composed_attestation"
  }
}

Input Schema

NameRequiredDescriptionDefault
subjectYesSubject pubkey base58 (a quem a attestation se refere).
proofHexYes356-byte SP1 v6 Groth16 proof (hex).
expiresAtNoUnix timestamp expiração; omitir = no expiry (i64::MAX).
jurisdictionYesJurisdição (mapeada pra code 0..14 no leaf).
commitmentHexYes32-byte ZK commitment hex (deve bater com publicInputs[32..64]).
payloadBase64YesPayload completo (DPIA PDF, evidence JSON, etc.) em base64. Será uploaded a Shadow Drive imutável.
authorityPubkeyYesSquads vault[3] Compliance Authority PDA (pode revocar). Lookup em scripts/squads-config.json.
payloadFilenameYesFilename pro Shadow Drive (deve incluir extensão, ex: dpia-q2-2026.pdf).
publicInputsHexYes96-byte ABI-encoded PublicValuesStruct (hex).
stateTreePubkeyYesLight Protocol State Tree pubkey (alocada via scripts/init-cmt.ts; lookup em scripts/cmt-config.json).
stateQueuePubkeyYesLight Protocol State Queue pubkey paired with stateTreePubkey.
shdwStorageAccountYesShadow Drive storage account pubkey (alocado via scripts/init-shdw-storage-account.ts).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/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 substantial work: it discloses atomicity, that the payload is uploaded immutably to Shadow Drive, the proof version and byte sizes required, the per-operation cost, and that the authority is a Squads vault[3] PDA capable of later revocation. It does not cover failure/rollback semantics, signing requirements, or idempotency, which keeps it below 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is front-loaded with the pipeline, which is good, but it is delivered as one dense run-on paragraph mixing Portuguese and English with heavy jargon. The cost comparison earns its place; the phrasing could be tightened and broken into scannable clauses without losing information.

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 12-parameter atomic multi-protocol write with no annotations and no output schema, the description covers prerequisites, authority model, cost, and the revocation path. It leaves out what the call returns (e.g., the attestation/leaf address), error or failure behavior, and whether re-submission is permitted, which an agent needs before invoking a mutation of this complexity.

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 all 12 parameters including the proof size, commitment/publicInputs relationship, and jurisdiction mapping. The description reinforces a few of these (356-byte proof v6, 96-byte public inputs, payload destination) but adds no syntax or format detail beyond what the schema states, so the baseline of 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?

The description names a specific verb and resource ('submete attestation compressed atomicamente') and enumerates the exact pipeline stages: Shadow Drive upload, SP1 verify CPI, Light Protocol leaf insert, Squads vault authority gating. It also names the sibling that handles the inverse operation (revoke_composed_attestation), so the agent can tell this apart from a plain submission. It stops short of 5 because the dense protocol jargon makes the core action harder to parse than it needs to be.

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?

Usage is only implied: the cost contrast ('~$0.03/op vs $0.34 LOCKED rent do flow regular') hints that this is the cheaper composed path versus the regular flow, and the revoke reference points at the lifecycle alternative. There is no explicit 'use this when…' statement and no direct comparison against siblings like submit_compliance_attestation or submit_lgpd_attestation, which share the submission role.

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