Skip to main content
Glama

API Keg — MailPreflight Email QA & Deliverability

Audit Outbound Email Template

audit_email_template
Read-onlyIdempotent

Runs a full pre-send deliverability, merge-tag, link-hygiene, Gmail 102KB clipping, and cross-client CSS compatibility audit (Outlook Windows, Gmail, Apple Mail Dark Mode) on an HTML email. Pricing: $0.003 USD per email template preflight audit (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.

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": {
      "html": "<html>"
    },
    "name": "audit_email_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesComplete outbound HTML email payload to inspect for Gmail 102KB clipping, Outlook/Gmail/Dark Mode CSS support, link hygiene, and spam triggers.
subjectNoOptional Subject header evaluated for unmerged placeholders, fake Re:/Fwd: prefixes, ALL-CAPS shouting, and punctuation triggers.
plainTextNoOptional text/plain MIME companion body checked for unmerged placeholders and unsubscribe compliance.
preheaderNoOptional preview/preheader snippet checked for unmerged merge tags and spam triggers.
emailCategoryNoOutbound email class controlling compliance rules (marketing and cold_outreach require an unsubscribe mechanism).transactional

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the safety profile is covered. The description adds genuinely new behavioral context beyond them: a per-call cost of $0.003 USD via x402 micropayment, which matters for deciding whether to call it. It does not describe the shape of the audit result, which is the remaining gap.

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?

The value proposition and audited dimensions are front-loaded in the first sentence, and pricing follows immediately. The trailing '?dry_run=true on REST' sentence is written for a different transport and reads as noise in an MCP context, costing it a point.

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

Completeness3/5

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

With five parameters fully documented and no output schema, an agent knows exactly what to send but not what it will get back beyond a generic 'audit'. For a tool returning findings across five distinct check categories, a hint at the report structure (per-issue list, severity, pass/fail) would materially improve call planning.

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%, including the enum semantics of emailCategory (marketing/cold_outreach require an unsubscribe mechanism), so the schema already carries the parameter meaning. The description adds no further per-parameter detail such as format expectations or how subject/preheader interact with the html body, 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?

States a specific verb ('Runs a full pre-send ... audit') on a specific resource ('an HTML email') and enumerates the exact checks performed (deliverability, merge tags, link hygiene, Gmail 102KB clipping, cross-client CSS for Outlook Windows, Gmail, Apple Mail Dark Mode). That enumerated scope makes it unmistakable versus the sibling extract_plain_text_fallback, which by name only extracts text.

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

Usage Guidelines3/5

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

The phrase 'pre-send' establishes the usage moment clearly, and the pricing line signals this is a metered call. However, there is no explicit when-not guidance, and the only alternative suggested is 'Pass ?dry_run=true on REST', which is not a parameter of this tool and cannot be acted on by an MCP caller.

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