Skip to main content
Glama

Render email HTML

render_email_content
Read-onlyIdempotent

Compile an EmailContent JSON object (the shape used by the Send16 builder + templates) into HTML using the platform's authoritative renderer. Returns the exact HTML the API would send. Useful for previews and post-processing.

Input Schema

NameRequiredDescriptionDefault
apiKeyNoSend16 API key (overrides SEND16_API_KEY env var)
contentYesEmailContent JSON (from get_template or the builder)
variablesNoVariable replacements (e.g. {firstName:'Alice'})

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 readOnly, idempotent, non-destructive, and non-openWorld behavior. The description adds meaningful context beyond that: it says the output is 'the exact HTML the API would send' and that it uses the 'authoritative renderer', which tells the agent the result is not an approximation. It does not cover error cases or authentication requirements, but the added value is real.

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

Conciseness5/5

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

Three sentences, front-loaded with the core action, and each sentence contributes: what it does, what it returns, and why it is useful. No wasted words or redundancy.

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 no output schema, the description adequately explains the return value, and the annotations and full schema coverage handle safety and parameter details. The only notable gap is the absence of sibling routing, which keeps this from being fully complete.

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%, so the baseline is 3. The description only lightly expands on the required 'content' parameter, calling it 'the shape used by the Send16 builder + templates', and adds no meaning for the apiKey or variables parameters.

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 states a specific verb ('Compile ... into HTML') and resource ('EmailContent JSON object'), and notes it uses the platform's authoritative renderer. It clearly distinguishes this as a rendering tool rather than a sending or template-management tool, though it does not name a specific sibling for contrast.

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?

It hints at usage ('Useful for previews and post-processing') but gives no explicit when-to-use or when-not-to-use guidance, and never names alternatives like send_template_test or pre_send_review. This implies the context without routing the agent between siblings.

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.