Skip to main content
Glama

dealmachine_post_mail_designs

Destructive

Create design. Create a mail design from custom HTML, or save a prompt as a draft. Custom HTML with one outer div declaring inline width and height: 4x6 = 1800 x 1200, 6x9 = 2700 x 1800, 6x11 = 3300 x 1800 CSS pixels. Use inline styles only. Stylesheets, scripts, SVG and embedded documents are unsupported. Put spacing, borders and layout inside the outer div; root transforms, margins and padding are unsupported. Each side must be nonempty and at most 2 MB. Invalid or ambiguous canvases return 400 VALIDATION_ERROR before saving. The API parses and sanitizes HTML without running a browser. Publishing requires complete validated front and back HTML. Prompt-only designs cannot be auto-published. Requires user approval and confirmed=true before changes or credit use. Writes are never retried automatically.

Input Schema

NameRequiredDescriptionDefault
bodyNo
confirmedNoSet true only after the user approves this change or credit use.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / body / properties / auto_publish / description
      Previous value: -"Automatically publish the design after creation"New value: +"Publish only when both sides have complete validated HTML; prompt-only designs remain drafts"
    • changedInput schema / properties / body / properties / html_back / description
      Previous value: -"Custom HTML for the back side"New value: +"Custom HTML with one outer div declaring inline width and height: 4x6 = 1800 x 1200, 6x9 = 2700 x 1800, 6x11 = 3300 x 1800 CSS pixels. Use inline styles only. Stylesheets, scripts, SVG and embedded documents are unsupported. Put spacing, borders and layout inside the outer div; root transforms, margins and padding are unsupported. Each side must be nonempty and at most 2 MB. Invalid or ambiguous canvases return 400 VALIDATION_ERROR before saving. The API parses and sanitizes HTML without running a browser."
    • changedInput schema / properties / body / properties / html_front / description
      Previous value: -"Custom HTML for the front side (alternative to prompt)"New value: +"Custom HTML with one outer div declaring inline width and height: 4x6 = 1800 x 1200, 6x9 = 2700 x 1800, 6x11 = 3300 x 1800 CSS pixels. Use inline styles only. Stylesheets, scripts, SVG and embedded documents are unsupported. Put spacing, borders and layout inside the outer div; root transforms, margins and padding are unsupported. Each side must be nonempty and at most 2 MB. Invalid or ambiguous canvases return 400 VALIDATION_ERROR before saving. The API parses and sanitizes HTML without running a browser."
    • changedInput schema / properties / body / properties / prompt / description
      Previous value: -"AI prompt to generate an HTML design. Returns immediately since HTML generation is fast."New value: +"Prompt saved with a draft. Supply complete HTML for both sides before publishing."
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag a destructive, non-idempotent, open-world write, but the description adds real operational context beyond them: writes are never retried automatically, credit use requires approval, invalid canvases return 400 VALIDATION_ERROR before saving, and HTML is parsed and sanitized without running a browser. That tells the agent both how failures surface and that a retry is unsafe.

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 purpose then constraints, and nearly every sentence carries actionable rules. The main inefficiency is that the long canvas/HTML-rules passage appears twice in the schema (html_front and html_back) and again in the description, so a portion of the text is redundant rather than value-adding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive nested-object write with no output schema, the description covers validation, publishing and approval well. It does not say what a successful call returns (design ID, draft status) or how the design must later be attached to a campaign, which an agent needs to chain the next step.

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?

With only 50% schema coverage, the description does meaningful work: it explains the pixel canvas per size option, the inline-style-only constraint, the 2 MB per-side cap, and that auto_publish degrades to a draft unless both sides carry validated HTML. Still missing is any meaning for theme, layout, include_street_view or orientation beyond what their short schema strings say.

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?

The opening sentence pairs a specific verb with the resource ('Create a mail design') and immediately distinguishes the two creation modes: custom HTML versus a saved prompt draft. An agent can tell this is the create endpoint rather than the update path (dealmachine_patch_mail_designs_id) without opening the schema.

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?

It states the conditions that select each mode ('Custom HTML', 'or save a prompt as a draft'), that publishing requires complete validated front and back HTML, and that prompt-only designs cannot be auto-published. It also sets a hard prerequisite of user approval and confirmed=true. It stops short of naming sibling alternatives such as patch_mail_designs_id for edits.

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.