get_compliance_check
Check data privacy compliance for Latin American countries under laws like LGPD, LFPDPPP, and Habeas Data. Select a country to verify requirements.
Instructions
Country-specific compliance: LGPD (BR), LFPDPPP (MX), Habeas Data (CO), Ley 25.326 (AR), Ley 19.628 (CL), Ley 29733 (PE).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes |
Implementation Reference
- src/main.ts:144-146 (registration)Tool registration in ListToolsRequestSchema handler listing its name, description, and input schema.
{ name: "get_compliance_check", description: "Country-specific compliance: LGPD (BR), LFPDPPP (MX), Habeas Data (CO), Ley 25.326 (AR), Ley 19.628 (CL), Ley 29733 (PE).", inputSchema: { type: "object", properties: { country: { type: "string", enum: Object.keys(COMPLIANCE_CHECKS) } }, required: ["country"] } }, { name: "get_full_latam_pack", description: "Complete LATAM pack for fine-tuning or full agent context.", inputSchema: { type: "object", properties: {}, required: [] } } ] - src/main.ts:158-158 (handler)Handler logic in CallToolRequestSchema that looks up the country in COMPLIANCE_CHECKS and returns compliance data with a disclaimer.
case "get_compliance_check": { const d = COMPLIANCE_CHECKS[country]; if (!d) throw new Error(`Unknown: ${country}`); return { content: [{ type: "text", text: JSON.stringify({ module: "LATAM Compliance Check", country, disclaimer: "General guidance, not legal advice.", ...d }, null, 2) }] }; } - src/main.ts:144-144 (schema)Input schema requiring a 'country' parameter from enum of COMPLIANCE_CHECKS keys.
{ name: "get_compliance_check", description: "Country-specific compliance: LGPD (BR), LFPDPPP (MX), Habeas Data (CO), Ley 25.326 (AR), Ley 19.628 (CL), Ley 29733 (PE).", inputSchema: { type: "object", properties: { country: { type: "string", enum: Object.keys(COMPLIANCE_CHECKS) } }, required: ["country"] } }, - src/main.ts:126-133 (helper)COMPLIANCE_CHECKS data object mapping each country (mexico, brazil, colombia, argentina, chile, peru) to its compliance framework details.
const COMPLIANCE_CHECKS: Record<string, any> = { mexico: { framework: "LFPDPPP — Federal Law of Personal Data Protection in Possession of Private Parties", regulator: "INAI (Instituto Nacional de Transparencia, Acceso a la Información y Protección de Datos Personales)", risks: "Fines + reputational damage; ARCO rights enforcement", spam_law: "LFPDPPP requires consent + opt-out" }, brazil: { framework: "LGPD (Lei Geral de Proteção de Dados Pessoais) — modeled on GDPR", regulator: "ANPD (Autoridade Nacional de Proteção de Dados)", risks: "Up to 2% of revenue, capped at R$50M per infraction. Active enforcement since 2021.", spam_law: "Marco Civil + LGPD opt-in requirements" }, colombia: { framework: "Ley 1581 (general) + Ley 1266 (financial) — Habeas Data", regulator: "SIC (Superintendencia de Industria y Comercio)", risks: "Active fines, treatment of sensitive data scrutinized", spam_law: "Anti-spam regulations under Habeas Data" }, argentina: { framework: "Ley 25.326 — Personal Data Protection Law", regulator: "AAIP (Agencia de Acceso a la Información Pública)", risks: "Fines + corrective measures; recognized as adequate by EU", spam_law: "Federal commerce regulations apply" }, chile: { framework: "Ley 19.628 — Personal Data Protection (existing); new comprehensive PDP Law in implementation 2024-2025", regulator: "Council for Transparency (during transition); future PDP Authority", risks: "Fines escalating with new law", spam_law: "Consumer protection law applies" }, peru: { framework: "Ley 29733 — Personal Data Protection", regulator: "ANPDP (Autoridad Nacional de Protección de Datos Personales)", risks: "Fines + corrective measures", spam_law: "ANPDP guidelines on direct marketing" } };