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

Validate newsletter content

validate_campaign_content
Read-onlyIdempotent

Validates 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

NameRequiredDescriptionDefault
contentJsonYesComplete 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

NameRequiredDescriptionDefault
validYes
issuesYes
requestIdYes
capabilityYes
schemaVersionYes
normalizedContentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so 'it does not save or change a campaign' largely restates structured data. The genuinely additive parts are tenant-scoped behavior (conditional-content capability returned with the result, gate on capability.enabled), the normalizedContent field and the issues[].pathText repair loop, and what tenant validation rejects (invalid syntax, unsupported locations, unknown keys).

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 validation workflow is front-loaded, which is good, but the description then drifts into authoring minutiae — button font sizes in px, mobile typography floors, label wrapping, placeholder escaping rules — content that belongs in the authoring guide it already tells the agent to read. Roughly half the text is reference documentation rather than guidance on invoking this tool.

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 single-parameter, read-only validator with an output schema, the definition covers everything an agent needs: prerequisites, resource URIs, output contract (normalizedContent, issues[].pathText), downstream tool routing, and the tenant capability caveat. No material gaps remain for correct invocation.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3; the description earns above that by tying contentJson to the required reference resources and the re-validation loop on failure. However, the long button-typography passage (bold/fontSize/mobileFontSize/wrapping) is essentially duplicated from the schema's own contentJson description, so it adds little new parameter meaning.

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 ('Validates') plus the exact resource ('a complete native inviomail newsletter contentJson document') and the schema version it validates against. The clarifying line 'It does not save or change a campaign' separates it from mutation siblings such as update_campaign_content, and the 'newsletter' scoping distinguishes it from validate_flow_email_content / validate_flow_definition.

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?

Gives explicit prerequisites ('Read sendout://newsletter/content/authoring-guide/v1 before constructing content') with a fallback path ('if MCP resources are unavailable, call get_newsletter_content_reference first'), plus a follow-up protocol: feed normalizedContent to preview_campaign_content/update_campaign_content, and on failure repair issues[].pathText and re-validate. It also names an additional dependency, list_contact_fields, for custom-field keys.

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