Skip to main content
Glama

submit_consent_revoke

Revoga um consent event on-chain (DPDP §6(4) — direito de retirada). CRÍTICO: o programa exige require_keys_eq!(rec.user, signer) — então o caller DEVE passar userSignerBase58 (a secret key base58 do próprio user, 64 bytes). Sem isso, a tx falha. Pra produção, use o SDK; esta tool é para validation.

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": {
      "consentPda": "<consentPda>",
      "reason": "<reason>",
      "userSignerBase58": "<userSignerBase58>"
    },
    "name": "submit_consent_revoke"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesMotivo da revogação (≤64 bytes). Ex: "DPDP_SEC12_REQUEST_2026-04-22".
consentPdaYesPDA do consent record a revogar (base58).
userSignerBase58YesSecret key base58 do USER que criou o consent. Obrigatório — apenas o user pode revogar seu próprio consent (enforçado on-chain).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the on-chain constraint require_keys_eq!(rec.user, signer), the concrete failure mode ('Sem isso, a tx falha'), the 64-byte key format, and that the tool is validation-only. It omits post-revocation state effects (irreversibility, on-chain cost) and any return information.

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?

Front-loads the critical constraint after a one-line purpose statement and wastes little space. There is mild duplication: the description and the schema both explain that only the user can revoke and that the key is mandatory.

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 3-required-parameter mutation tool with no annotations and no output schema, the description covers purpose, authorization rule, failure mode, key format, and deployment scope. An agent has everything needed to call it correctly or to decide not to.

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 would be 3, but the description adds the enforcement mechanism behind userSignerBase58 (on-chain signer equality) and the consequence of omitting it, which the schema only states as 'Obrigatório'. consentPda and reason get no extra meaning beyond their schema text.

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 ('Revoga um consent event on-chain') plus the legal basis (DPDP §6(4), direito de retirada), so the operation is unambiguous. It also scopes itself as a validation tool rather than the production path, though it never names a sibling tool it should be preferred over.

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

Usage Guidelines4/5

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

Gives an explicit usage exclusion ('Pra produção, use o SDK; esta tool é para validation') and a hard precondition (the caller must supply the user's own base58 secret key). It does not contrast with the other revoke_* or submit_* siblings, so the routing guidance is contextual rather than exhaustive.

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