Skip to main content
Glama

Compile layout to inbox-proof email

design_compile
Read-onlyIdempotent

Compiles a Truvek layout into email HTML, a plain-text part and (for dialect 'app') a TypeScript render() module, then lints the result. Handles Outlook VML buttons, ghost tables, hybrid mobile columns, dark mode, preheader padding, accessibility and ESP-specific merge/unsubscribe tags. Returns decisions explaining every rendering choice. Use this instead of writing email HTML by hand. Dialects: app (Resend/SES/Postmark/Nodemailer), handlebars (SendGrid/Mailgun), sfmc, braze, klaviyo, shopify.

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": {
      "layout": "<layout>"
    },
    "name": "design_compile"
  }
}

Input Schema

NameRequiredDescriptionDefault
layoutYesA Truvek layout. Call design_get_schema for the shape.
dialectNoapp
verbosityNocompact omits per-finding reasoning to save tokens.full
include_htmlNoSet false in fix loops to save context; HTML size and lint still returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds real context beyond that: the concrete rendering concerns handled (Outlook VML, ghost tables, dark mode, accessibility, ESP merge/unsubscribe tags) and that it returns explanatory decisions. It does not mention failure modes — e.g. what happens if lint finds errors or if the layout is malformed.

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?

Front-loaded with the core action, then outputs, then capabilities, then dialect mapping — a sensible information order with no filler. The middle sentence is a dense feature laundry list that could be trimmed, but each item aids capability discovery.

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?

With no output schema, the description carries the return-value burden and does so: HTML, plain-text part, optional TypeScript module, lint results, and a decisions log. Combined with the schema pointing to design_get_schema for layout shape, an agent has enough to invoke it correctly.

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 coverage is 75%, but the description adds meaning the schema cannot: it maps the opaque dialect enums (app, handlebars, sfmc, braze, klaviyo, shopify) to concrete providers such as Resend/SES/Postmark and SendGrid/Mailgun, which is the key selection decision here. The 'layout' parameter is deferred to design_get_schema, which is a reasonable pointer but leaves the shape unexplained in this definition.

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?

Opens with a specific verb and resource ('Compiles a Truvek layout into email HTML, a plain-text part and ... a TypeScript render() module'), then enumerates the downstream outputs, so it is unmistakable what the tool produces. The final 'Use this instead of writing email HTML by hand' positively distinguishes it from generic alternatives.

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

Usage Guidelines4/5

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

Gives a clear when-to-use signal ('instead of writing email HTML by hand') and the dialect list tells the agent which invocation context maps to which ESP. It does not explicitly state when NOT to use it, nor does it distinguish itself from siblings like design_lint or design_autofix, even though linting is described as a sub-step of this tool.

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.