Validate newsletter content
validate_campaign_contentValidates a complete native inviomail newsletter contentJson document against the current schema at sendout://newsletter/content/schema/v1. Read sendout://newsletter/content/authoring-guide/v1 before constructing content; if MCP resources are unavailable, call get_newsletter_content_reference first. It does not save or change a campaign. The result includes the authenticated tenant's conditional-content capability; only author visibility rules when capability.enabled is true. A valid result includes normalizedContent, which should be used for preview_campaign_content and update_campaign_content. An invalid result includes machine-readable issue paths in issues[].pathText; repair those paths and validate again. 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": {
"contentJson": "<contentJson>"
},
"name": "validate_campaign_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contentJson | Yes | Complete native inviomail newsletter contentJson object to validate; read the authoring guide, schema, and an example resource before constructing it. 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| issues | Yes | ||
| requestId | Yes | ||
| capability | Yes | ||
| schemaVersion | Yes | ||
| normalizedContent | Yes |