Skip to main content
Glama

record_pipeda_consent

Registra consent granular conforme PIPEDA Schedule 1 (Canadá). Inclui consent_form (express/implied/opt-out — Princípio 4.3.6), bitmap principles_evidenced (1-10), opcional cross_border_destination (ISO-3166 alpha-2, Princípio 4.1.3). Para flag RROSH (DPA 2018 §10.1) use tool separada.

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>",
      "purposeCode": "<purposeCode>",
      "purposeText": "<purposeText>",
      "consentForm": "<consentForm>",
      "principlesEvidenced": "<principlesEvidenced>"
    },
    "name": "record_pipeda_consent"
  }
}

Input Schema

NameRequiredDescriptionDefault
subjectYesPubkey do sujeito (base58).
storageUriNoURI off-chain pro consent form assinado. Max 128 bytes.
consentFormYes1=express, 2=implied (reasonable expectation), 3=opt-out (limited circumstances).
purposeCodeYesCódigo u16 da finalidade (taxonomia off-chain).
purposeTextYesTexto humano da finalidade — sha256-hashed pra purpose_hash on-chain.
principlesEvidencedYesBitmap u16 — bit N (1-indexed) = Princípio N evidenciado. Comum: 0xFE (P2-P8), 0x3FE (P2-P9).
crossBorderDestinationNoISO-3166-1 alpha-2 country code (e.g. "US"). Omitir se não há transferência.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It conveys that this is a registration/write operation and ties fields to PIPEDA principles (4.3.6, 4.1.3), but says nothing about whether records are immutable, what authentication or role is required, what happens on a duplicate subject/purpose pair, or what a call returns.

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 compact sentences, front-loaded with the regulatory scope before field details, with no filler. The dense mixture of Portuguese prose and English field names is functional but slightly harder to scan than necessary.

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 write tool with no annotations and no output schema, the description covers purpose and field meaning adequately because the schema is fully documented. It falls short on write-lifecycle behavior — persistence model, idempotency, and return shape — which an agent needs before invoking a consent-registration mutation.

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 explains every parameter including the consentForm enum values and the principles bitmap examples. The description restates the same semantics (express/implied/opt-out, bitmap 1-10, ISO-3166 alpha-2) with only the marginal addition of the PIPEDA principle citations, so 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 clear verb-plus-resource ('Registra consent granular') scoped to PIPEDA Schedule 1 (Canadá), with the specific fields it captures. The jurisdictional scoping helps distinguish it from generic siblings like submit_consent_record, though the description never names that sibling to make the split unambiguous.

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?

Provides one explicit exclusion — RROSH/DPA 2018 flags belong to a separate tool — which is genuine routing guidance. But it never says when to prefer this over submit_consent_record or fetch_consent_record, and gives no prerequisites or preconditions for registration.

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