Skip to main content
Glama
outreach-prospector-mcp

outreach-prospector-mcp

validate_outreach_payload

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
bodyYesFull outbound email or DM body checked for unreplaced `{...}` template braces, `localhost`/`127.0.0.1` URLs, and em/en dashes.
subjectYesEmail subject line checked for unreplaced `{...}` template placeholders, localhost links, and em/en dashes.
headlineNoOptional prospect LinkedIn headline (e.g. 'CMO at Stripe'); when paired with `company_name`, verifies all company tokens appear in the headline.
company_nameNoOptional target company name (e.g. 'Stripe, Inc.'); normalized into `clean_company` and matched against `headline`.
contact_nameNoOptional recipient full name; parsed into `safe_first_name` while blocking non-human role words ('Marketing Team', 'Operations Lead').
recipient_emailYesCandidate recipient email address checked against 75+ generic/shared inbox prefixes (e.g. 'patrick@stripe.com' passes; 'info@stripe.com' fails).

Output Schema

NameRequiredDescriptionDefault
validNoTrue only if zero compliance violations were detected.
reasonsNoHuman-readable list of every triggered violation.
clean_companyNoNormalized company name with legal suffixes removed.
safe_first_nameNoSanitized human first name or 'there' fallback.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv1.2.1
    • addedInput schema / properties / body / description
      Added value: +"Full outbound email or DM body checked for unreplaced `{...}` template braces, `localhost`/`127.0.0.1` URLs, and em/en dashes."
    • addedInput schema / properties / company_name / default
      Added value: +""
    • addedInput schema / properties / company_name / description
      Added value: +"Optional target company name (e.g. 'Stripe, Inc.'); normalized into `clean_company` and matched against `headline`."
    • addedInput schema / properties / contact_name / default
      Added value: +""
    • addedInput schema / properties / contact_name / description
      Added value: +"Optional recipient full name; parsed into `safe_first_name` while blocking non-human role words ('Marketing Team', 'Operations Lead')."
    • addedInput schema / properties / headline / default
      Added value: +""
    • addedInput schema / properties / headline / description
      Added value: +"Optional prospect LinkedIn headline (e.g. 'CMO at Stripe'); when paired with `company_name`, verifies all company tokens appear in the headline."
    • addedInput schema / properties / recipient_email / description
      Added value: +"Candidate recipient email address checked against 75+ generic/shared inbox prefixes (e.g. 'patrick@stripe.com' passes; 'info@stripe.com' fails)."
    • addedInput schema / properties / subject / description
      Added value: +"Email subject line checked for unreplaced `{...}` template placeholders, localhost links, and em/en dashes."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "clean_company": {
      +      "description": "Normalized company name with legal suffixes removed.",
      +      "type": "string"
      +    },
      +    "reasons": {
      +      "description": "Human-readable list of every triggered violation.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "safe_first_name": {
      +      "description": "Sanitized human first name or 'there' fallback.",
      +      "type": "string"
      +    },
      +    "valid": {
      +      "description": "True only if zero compliance violations were detected.",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observedv1.2.0

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, yet the description still adds real value: failure semantics ("never throws on violations, instead setting `valid=false` and listing every failed rule in `reasons`") and the offline/deterministic guarantee. It does redundantly restate `readOnlyHint=true` and "zero ... mutations", which are already in the structured fields, keeping it from a 5.

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?

It is front-loaded with purpose, verdict shape, and safety profile before the rule list and the sibling pointer, so the most decision-relevant content comes first. A few clauses are redundant ("offline", "zero network calls", "read-only", "Purely deterministic" all convey the same property), costing some density.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a deterministic validator with an output schema present, nothing an agent needs is missing: it covers what is checked, what happens on failure, that it is non-throwing, and which alternative to use for generation. Return-value structure is named but not over-explained, which is appropriate given the output schema.

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% and the per-parameter descriptions already spell out the concrete checks (placeholder braces, localhost URLs, em/en dashes, generic inbox prefixes, headline-vs-company matching). The description mostly restates those same rules rather than adding syntax, format, or edge-case meaning, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ("Audits an outbound email or DM payload") plus scope ("against 5 hard pre-send compliance gates") and the exact verdict shape. It explicitly distinguishes itself from the sibling `draft_outreach_email`, so an agent can route correctly without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the use condition plainly ("Use as the final pre-send gate on externally written copy") and names the alternative with the selection criterion ("if you want the server to generate and validate the email in one step, call `draft_outreach_email` instead"). This is explicit when-to-use and when-to-use-something-else guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.