Skip to main content
Glama

erase_attestation_payload

LGPD Art. 18 right-to-erasure composer. Revokes the attestation on-chain (compliance-registry.revoke_attestation) and returns structured erasure guidance for the off-chain payload based on the storage backend (IPFS → rotate KEK; Shadow Drive → close account; mock → local delete).

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": {
      "attestationPda": "<attestationPda>",
      "reason": "<reason>",
      "eraseBackend": "<eraseBackend>"
    },
    "name": "erase_attestation_payload"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesMotivo da erasure (≤64 bytes). Selado on-chain em revocation_reason.
eraseBackendYesBackend onde o ciphertext vive. Determina a estratégia de erasure off-chain.
storageRefUriNoURI canônico do blob (ex.: `ipfs://bafy...` ou `shdw://{account}/{filename}`). Preservado no retorno pra auditoria.
attestationPdaYesPDA da attestation (base58) a revogar on-chain.
altSignerBase58NoSecret key base58 opcional. Se a attestation foi criada com signer ≠ server wallet, passar aqui. Apenas o issuer original pode revogar.

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; it does disclose the on-chain side effect (calling revoke_attestation) and the per-backend erasure strategies. It omits irreversibility, permission requirements (only the original issuer may revoke, which only appears in the schema), and any failure/pagination behavior.

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?

Two dense sentences, front-loaded with the legal basis and the on-chain action before the off-chain clause; nothing is padding. The parenthetical action list is compact and scannable, though the density makes it slightly hard to parse on first read.

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 mutation tool with five parameters, no annotations and no output schema, the description should say more about what the structured erasure guidance contains and about irreversibility/authorization. It covers the core flow and backend strategy but leaves the return shape and safety profile under-specified.

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 baseline would be 3; the description adds real meaning by mapping each eraseBackend enum value to its concrete off-chain action (IPFS rotate KEK, Shadow Drive close account, mock local delete). The other params (attestationPda, reason, storageRefUri, altSignerBase58) are left entirely to the schema.

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 compound verb+resource: revokes the attestation on-chain via compliance-registry.revoke_attestation and returns backend-specific erasure guidance. It is clearly distinguishable in function from a plain revoke tool, but it never names the sibling revoke_compliance_attestation / revoke_composed_attestation tools it overlaps with.

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?

Frames the tool as the 'LGPD Art. 18 right-to-erasure' path, which gives implied usage context, and the backend mapping tells the agent the tool covers off-chain payloads too. However, there is no explicit when-not guidance and no routing to the plain revoke siblings for cases where only on-chain revocation is wanted.

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