Skip to main content
Glama

SendGuard

Preflight an outbound email

preflight_email
Idempotent

Check an email before an AI agent sends it using SendGuard's Email Preflight API. Returns allow, delay, requires_approval or block with reason codes (recipient validity, sender authentication, content risk, sensitive industries, volume limits) and recommendations. Your sender or workflow must enforce the decision. Does not send email. Without an API key: 3 free checks per day per IP.

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": {
      "from_email": "<from_email>",
      "to_email": "<to_email>"
    },
    "name": "preflight_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoEmail body as plain text
intentNoPurpose, for example cold_outbound or follow_up
policyNoPolicy: default, balanced, strict, growth, enterprise, healthcare or recruiting
subjectNoEmail subject
agent_idNoYour agent identifier (API key callers); used for per-agent limits
to_emailYesRecipient address
from_emailYesSender address the agent will send from
campaign_idNoCampaign or sequence identifier (optional); keep it the same for every step of one sequence
relationshipNoRelationship, for example new_prospect or existing_customer
workspace_idNoYour workspace identifier (API key callers)
sequence_stepNoStep of a multi-step sequence: 1 or omitted for the first touch, 2+ for follow-ups. With campaign_id, follow-ups are checked for spacing and a step cap instead of being treated as duplicates
recipient_sourceNoWhere the address came from, for example apollo, website, referral
recipient_companyNoRecipient company name
recipient_countryNoRecipient country as ISO 3166-1 alpha-2, for example DE
recipient_industryNoRecipient industry, for example healthcare

Output Schema

NameRequiredDescriptionDefault
billingYes
reasonsNo
approvalNo
decisionYesallow, delay, requires_approval or block
next_stepYes
confidenceYes
risk_scoreYes
delay_secondsNo
recommendationsNo
suggested_emailNo
recipient_statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / campaign_id / description
      Previous value: -"Campaign identifier (optional)"New value: +"Campaign or sequence identifier (optional); keep it the same for every step of one sequence"
    • addedInput schema / properties / sequence_step
      Added value: +{
      +  "description": "Step of a multi-step sequence: 1 or omitted for the first touch, 2+ for follow-ups. With campaign_id, follow-ups are checked for spacing and a step cap instead of being treated as duplicates",
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnly=false, idempotent=true, destructive=false; the description adds substantial context beyond that: the decision vocabulary (allow/delay/requires_approval/block), the reason-code categories, the caller's enforcement responsibility, and the unauthenticated rate limit of 3 free checks per day per IP. What's missing is behavior on repeat checks or what gets persisted per call, which is why this isn't 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?

Four short sentences, front-loaded with the purpose and outcome set, followed by the enforcement caveat and the free-tier limit. No filler, though the API-branding phrase adds little an agent needs.

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

Completeness4/5

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

For a 15-parameter, safety-critical pre-send check, the definition covers outcome shape, enforcement responsibility, and rate limiting, and an output schema exists so return values needn't be spelled out. Fine as-is, though a note on what happens with repeated identical checks (relevant given idempotentHint=true) would round it out.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter is already documented; the description adds meaning at the outcome level by tying reason codes to the inputs that drive them (recipient validity, sender authentication, content risk, sensitive industries, volume limits). With the schema carrying full param semantics, this is a baseline-3-or-better case with useful cross-linking.

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?

States a specific verb and resource ("Check an email before an AI agent sends it") plus the API it wraps, then immediately enumerates the four possible outcomes. An agent can tell exactly what this does and what it produces, and none of the sibling tools (account, pricing, signup) overlap with it.

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

Usage Guidelines4/5

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

Gives clear context for use — pre-send check by an agent — and an important boundary: "Does not send email" plus "Your sender or workflow must enforce the decision." It does not name alternative tools or explicit when-not-to-use conditions, but the usage window is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources