get_compliance_check
Check compliance for a selected APAC country by retrieving data protection framework, regulator, risks, and spam law information.
Instructions
Country-specific compliance: data protection framework, regulator, risks, spam law.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes |
Implementation Reference
- src/main.ts:158-167 (schema)The COMPLIANCE_CHECKS data store containing compliance data for 8 APAC countries — the backing data that the tool reads from.
const COMPLIANCE_CHECKS: Record<string, any> = { japan: { framework: "Personal Information Protection Act (APPI) — recently strengthened. Cross-border transfer requires explicit consent.", regulator: "PPC (Personal Information Protection Commission)", risks: "Fines + reputational damage in name-and-shame culture", spam_law: "Specified Commercial Transactions Act + Anti-Spam Law" }, singapore: { framework: "PDPA + Spam Control Act + Do Not Call (DNC) Registry", regulator: "PDPC", risks: "Fines up to S$1M + 3% turnover for serious breaches", spam_law: "Strict opt-in for SG numbers" }, korea: { framework: "Personal Information Protection Act (PIPA)", regulator: "PIPC + KCC", risks: "High fines, name-and-shame, criminal liability for directors", spam_law: "K-ISMS + IT Network Act" }, india: { framework: "DPDP Act 2023 + state-level laws", regulator: "Data Protection Board of India (forming)", risks: "Up to ₹250 crore fines for serious breaches", spam_law: "TRAI DLT registration for SMS/voice" }, australia: { framework: "Privacy Act 1988 + Australian Privacy Principles", regulator: "OAIC", risks: "Up to A$50M / 30% turnover for serious breaches (post-2022 reforms)", spam_law: "Spam Act 2003 — strict consent + identification" }, hongkong: { framework: "Personal Data Privacy Ordinance (PDPO)", regulator: "PCPD", risks: "Fines + criminal liability", spam_law: "Unsolicited Electronic Messages Ordinance — strict identification rules" }, taiwan: { framework: "Personal Data Protection Act (PDPA Taiwan version)", regulator: "MoJ + sector regulators", risks: "Fines + criminal liability for serious cases", spam_law: "Telecommunications Act + UEM rules" }, indonesia: { framework: "PDP Law 2022 + ITE Law", regulator: "KOMINFO + future PDP Authority", risks: "Up to 2% global turnover fines + criminal", spam_law: "ITE Law + telco regulations" } }; - src/main.ts:178-178 (registration)Tool registration: 'get_compliance_check' is listed with its name, description, and inputSchema requiring a 'country' param.
{ name: "get_compliance_check", description: "Country-specific compliance: data protection framework, regulator, risks, spam law.", inputSchema: { type: "object", properties: { country: { type: "string", enum: Object.keys(COMPLIANCE_CHECKS) } }, required: ["country"] } }, - src/main.ts:192-192 (handler)Tool handler: case 'get_compliance_check' in the CallToolRequestSchema switch — looks up country in COMPLIANCE_CHECKS, returns JSON with 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: "APAC Compliance Check", country, disclaimer: "General guidance, not legal advice.", ...d }, null, 2) }] }; }