Skip to main content
Glama
This connector has been deprecated

Replaced by Inviomail.

Duplicate listing under a wrong namespace; the canonical listing is de.inviomail/mcp

Preview newsletter content

preview_campaign_content
Read-onlyIdempotent

Renders the complete editorial candidate native inviomail contentJson for a draft newsletter with the authenticated tenant's current typography, link defaults, footer, signature, responsive behavior, and inviomail credit. Conditional blocks require the tenant's conditional-content capability; the backend rejects unauthorized candidates. Conditional blocks are included together in this editorial candidate; the inviomail Admin UI separately provides complete evaluated visual previews for actual recipient variants. Do not include footer, signature, unsubscribe text, inviomail credit, or separate responsive variants in contentJson. It returns email HTML, plain text, and normalized content without saving anything. Use the contentRevision from get_campaign_content as expectedContentRevision. Validate first and pass normalizedContent when valid. New or changed image sources must be tenant-owned URLs returned by inviomail media tools. Button blocks support bold (default true) and optional fontSize (integer 10–30 px) for desktop; omit fontSize to inherit tenant body typography. Optional mobileFontSize (integer 16–24 px) controls mobile text separately, with tenant bodyMobilePx as the readability floor; omit it to retain the mobile standard. Long button labels wrap automatically. Own contact fields are supported only in heading.text and text.html, including two-column children: {{custom.key}} or {{custom.key | default: "replacement text"}}. Read list_contact_fields first and use its permanent keys; offer active fields for new insertion. Existing archived references still resolve. Missing/blank values use the fallback or empty text. Escape fallback JSON and HTML correctly; do not split a token with inline markup. Tenant validation reports invalid syntax, unsupported locations and unknown keys. Custom field placeholders are not supported in subjects, preheaders, buttons, URLs, footers, signatures or DOI emails.

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": {
      "campaignId": "<campaignId>",
      "expectedContentRevision": "<expectedContentRevision>",
      "contentJson": "<contentJson>"
    },
    "name": "preview_campaign_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaignIdYesNewsletter campaign ID
contentJsonYesComplete candidate newsletter contentJson document. For type button (also in two-column children), bold defaults to true and optional fontSize is an integer 10–30 px for desktop; omit fontSize for tenant body typography. Optional mobileFontSize (integer 16–24 px) controls mobile text separately, with tenant bodyMobilePx as the readability floor; omit it to retain the mobile standard. Long button labels wrap automatically.
personalizationNoOptional personalization: {mode:"contact",contactId:"tenant-contact-uuid"} uses that contact as the data source; {mode:"empty"} renders fallbacks without custom field values. Omit for literal preview tokens or, on test sends, values of an existing contact matching toEmail. The test email is always delivered to toEmail; the selected contact is not subscribed, tagged, or unsubscribed by selecting it. Find contact IDs with search_contacts or get_contact_by_email.
expectedContentRevisionYesExact contentRevision returned by get_campaign_content before editing

Output Schema

NameRequiredDescriptionDefault
previewYes
campaignYes
requestIdYes
designContextUpdatedAtYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses that nothing is saved, that the backend rejects candidates using conditional blocks without the tenant capability, and that tenant validation reports invalid syntax, unsupported locations and unknown keys. It also constrains image sources to tenant-owned URLs from media tools, which is the kind of failure mode an agent cannot infer from annotations alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and most sentences carry a real constraint, but the block is long and mixes workflow rules, content-shape prohibitions, typography details and placeholder syntax in one undifferentiated run. The button typography sentences repeat what the schema already states, so several lines do not earn their place.

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?

With an output schema present, return values need not be explained, yet the description still notes HTML/plain text/normalized content. It covers the content-shape rules, conditional-block capability, validation handoff and placeholder restrictions thoroughly; the only uncovered area is the personalization parameter, which the schema documents fully.

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 coverage is 100%, so the baseline is 3, and much of the description's parameter content (button bold, fontSize, mobileFontSize ranges, label wrapping) is duplicated verbatim in the contentJson schema description. The genuinely additive part is the linkage of expectedContentRevision to get_campaign_content and normalizedContent from validation; the personalization parameter is never mentioned in the description.

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

Purpose4/5

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

The description uses a specific verb ("renders") and resource ("complete editorial candidate contentJson for a draft newsletter") and immediately scopes what tenant styling is applied. It implicitly distinguishes the tool from validation and content-fetch siblings by requiring a revision and mentioning "validate first," though the dense jargon ("native inviomail contentJson") makes the first sentence harder to parse than it needs to be.

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 gives explicit sequencing ("Use the contentRevision from get_campaign_content as expectedContentRevision. Validate first and pass normalizedContent when valid") and prerequisites ("Read list_contact_fields first"). It also states exclusions clearly ("Do not include footer, signature, unsubscribe text, inviomail credit, or separate responsive variants") and points to the Admin UI for evaluated per-recipient previews, so an agent knows when this tool is not the right call.

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