validate_outreach_payload
Audits outbound email or DM payloads before sending, checking generic inboxes, placeholders, localhost links, dashes, and headline-company matches; returns a JSON verdict with failure reasons.
Instructions
Audits an outbound email or DM payload against 5 hard pre-send compliance gates and returns a JSON verdict ({valid, reasons, safe_first_name, clean_company}). Purely deterministic, offline, read-only check (readOnlyHint=true) with zero network calls or mutations: never throws on violations, instead setting valid=false and listing every failed rule in reasons so the caller can abort sending. Validates recipient_email against 75+ generic/role inbox prefixes (info@, careers@, dataprotection@), scans subject and body for unreplaced {placeholder} braces, localhost/127.0.0.1 URLs, and prohibited em/en dashes, and cross-checks headline against company_name when both are supplied. Use as the final pre-send gate on externally written copy; if you want the server to generate and validate the email in one step, call draft_outreach_email instead.
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": {
"recipient_email": "<recipient_email>",
"subject": "<subject>",
"body": "<body>"
},
"name": "validate_outreach_payload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Full outbound email or DM body checked for unreplaced `{...}` template braces, `localhost`/`127.0.0.1` URLs, and em/en dashes. | |
| subject | Yes | Email subject line checked for unreplaced `{...}` template placeholders, localhost links, and em/en dashes. | |
| headline | No | Optional prospect LinkedIn headline (e.g. 'CMO at Stripe'); when paired with `company_name`, verifies all company tokens appear in the headline. | |
| company_name | No | Optional target company name (e.g. 'Stripe, Inc.'); normalized into `clean_company` and matched against `headline`. | |
| contact_name | No | Optional recipient full name; parsed into `safe_first_name` while blocking non-human role words ('Marketing Team', 'Operations Lead'). | |
| recipient_email | Yes | Candidate recipient email address checked against 75+ generic/shared inbox prefixes (e.g. 'patrick@stripe.com' passes; 'info@stripe.com' fails). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | No | True only if zero compliance violations were detected. | |
| reasons | No | Human-readable list of every triggered violation. | |
| clean_company | No | Normalized company name with legal suffixes removed. | |
| safe_first_name | No | Sanitized human first name or 'there' fallback. |