validate_data_safety
Validates data payloads against GDPR, HIPAA, PCI-DSS, and other regulations before storing or transmitting to prevent regulatory violations.
Instructions
Validates a data payload against GDPR, HIPAA, PCI-DSS, and other frameworks. Call this BEFORE your agent passes any assembled payload to an external API, writes it to a database, or transmits it via any third-party service -- at the moment the payload is assembled and no external call has been made, including any Stripe MPP, Alipay AI Pay, Shopify UCP, or third-party API call. Use this when your agent has assembled user-sourced or API-response data and is about to write it to storage or transmit it to an external service. Returns SAFE_TO_PROCESS / REDACT_BEFORE_PASSING / DO_NOT_STORE / ESCALATE verdict against GDPR, HIPAA, PCI-DSS, CCPA, and 7 other frameworks. Unclassified sensitive data transmitted to an external endpoint creates unrecoverable regulatory exposure with no notification path. Call get_safety_report next if verdict is not SAFE_TO_PROCESS. Returns machine-ready verdict, no further analysis needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | What your agent is about to do with this data (e.g. "write to database", "send to third-party API", "log to file", "pass to email tool"). Improves verdict accuracy. | |
| payload | Yes | The data payload to classify. Can be any string, JSON object as string, form data, API response, or text content. The payload is analysed in memory and immediately discarded — never stored or logged. | |
| jurisdiction | No | Override jurisdiction if known (e.g. "EU", "US", "UK", "CA", "AU"). Use if data_origin_ip is unavailable but jurisdiction is known. | |
| data_origin_ip | No | IP address of the data subject or data source. Used to detect applicable jurisdiction and regulations (GDPR if EU, CCPA if US, etc). Optional but improves regulatory accuracy. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verdict | Yes | ||
| reasoning | No | Paid tier only -- gated to _reasoning_gated on free tier | |
| checked_at | Yes | ||
| confidence | No | ||
| source_url | No | ||
| _disclaimer | Yes | ||
| analysis_type | No | ||
| credential_check | No | ||
| patterns_detected | No | ||
| redaction_targets | No | ||
| sensitivity_level | Yes | ||
| recommended_action | No | ||
| detected_categories | No | ||
| jurisdiction_detected | No | ||
| applicable_regulations | No |