Skip to main content
Glama

register_ccpa_optout

Registra um opt-out CCPA §1798.135 (Califórnia) no ccpa_optout_registry program. 3 kinds: 1=sale, 2=share, 3=sensitive. PDA usa hash do consumidor (não pubkey direta) — ledger sem PII, conforme CCPA §1798.100(c) data minimization.

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": {
      "optoutKind": "<optoutKind>",
      "viaGpc": "<viaGpc>"
    },
    "name": "register_ccpa_optout"
  }
}

Input Schema

NameRequiredDescriptionDefault
viaGpcYesSe foi disparado pelo Global Privacy Control signal (Cal. Code Regs. tit. 11 §7025).
consumerIdNoID opaco do consumidor (NÃO wallet pubkey). Será sha256-hashed.
optoutKindYes1=sale (§1798.120), 2=share (CPRA cross-context), 3=sensitive (§1798.121).
storageUriNoURI off-chain pra evidência (form, GPC header). Max 128 bytes.
consumerCommitmentHashHexNo32-byte hex do commitment do consumidor (alternativa a consumerId).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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 does disclose meaningful behavior: the ledger stores no PII and the consumer is sha256-hashed rather than a raw pubkey, per §1798.100(c) data minimization. It omits other important traits for an on-chain write — whether registration is idempotent, what happens on duplicate opt-outs, gas/cost, reversibility, or required signer/permissions.

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?

Three short sentences with the core action front-loaded and the compliance rationale last — nothing is padded. The kind mapping duplicates the schema's optoutKind description, a small redundancy in an otherwise tight definition.

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 five-parameter, two-required write tool with 100% schema coverage, no output schema, and no annotations, the description supplies exactly the missing context an agent would not get from structured fields: the on-chain target, the no-PII hashing model, and the statutory basis.

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 all five parameters are already documented in the schema, including the kind enum mapping and the consumerId hashing note. The description merely restates the 1/2/3 kind mapping and the hashing behavior, adding no syntax, constraints, or precedence rules (e.g. consumerId vs. consumerCommitmentHashHex) beyond 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 verb and resource: registers a CCPA §1798.135 opt-out in the named ccpa_optout_registry program, and enumerates the three opt-out kinds. It is clearly a jurisdiction-specific registration tool, implicitly separable from register_popia_io, but it never explicitly contrasts itself with that sibling.

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 context of use is implied by the name and the citation of the California statute, so an agent can infer when to reach for it. However, there is no explicit when-to-use vs. when-not guidance, no mention of the POPIA sibling for other jurisdictions, and no prerequisite or duplicate-handling guidance.

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