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. Postcard copy: write like a local person, not a polished ad. Say what the sender wants to buy or offer, what the owner gets and how to reach the sender, name the street, and give one next step (call or text the phone, or scan the QR). For investors and wholesalers, lead with seller benefits such as Any Condition, No Repairs Needed, No Closing Fees, Your Timeline or Can Close in 14 Days (use the close time the user gives, when they give one). Unless the user asks for them, avoid "a quick question", "I'll keep this short", "proof of funds", "just call and hear the number", "no meetings", "explore your options", "let's see if there's a fit", "premium", "luxury", "discerning", "white-glove" and long dashes. Keep the look as plain as the words: large readable type and strong contrast, with no gold or luxury styling unless the user asks. A short personal note or typed letter is a complete card; do not add a headline, bullets or extra promises the user did not ask for. When matching a reference, follow its layout and text sizes. Before editing, read the design and keep the wording, photo and signature the user already approved. After saving, read the design back with dealmachine_get_mail_designs_id to show the user the result, as that tool describes. Mailing areas: use landscape; portrait is not currently supported. On the back only, leave BOTH the address block and stamp area blank white. Coordinates below are CSS pixels from the canvas top-left, written as (left, top, width, height): 4x6: address (771, 451, 1029, 749); stamp (1507, 398, 255, 300). 6x9: address (1455, 1051, 1245, 749); stamp (2407, 999, 255, 300). 6x11: address (2055, 1051, 1245, 749); stamp (3007, 999, 255, 300). Keep the full bounds of every image, photo, text block, logo, signature, QR code and decoration outside both rectangles, including borders, shadows and rotated content. Crop or reposition images rather than letting them cross into these areas. The stamp starts above the address block, so clearing only the address block is insufficient. Do not draw stamps, addresses, placeholder labels or dashed guides in these spaces; the printer supplies the mailing information. These reserved rectangles do not apply to the front. Preserve them when editing. This is layout guidance: API HTML validation does not reject overlaps. Ask the user to check the back preview before sending. Requires user approval and confirmed=true before changes or credit use. Writes are never retried automatically.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dealmachine_post_mail_designs"
  }
}

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.6/5.0
Behavior5/5

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

Beyond the destructive/openWorld annotations the description discloses a lot of non-obvious behavior: HTML is parsed and sanitized server-side without a browser, invalid canvases return 400 VALIDATION_ERROR before saving, each side must be nonempty and under 2 MB, portrait orientation is unsupported, and writes are never retried automatically. It also spells out the approval gate (confirmed=true required before changes or credit use) and that HTML validation does not enforce the reserve rectangles, which the agent must handle itself.

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?

It leads with the concrete action, then constraints, then publish rules. For a design-creation tool with strict HTML, size, and approval requirements, every section is useful.

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?

For a creation tool with a nested 8-field body, no output schema, and destructive, openWorld annotations, the description is thorough: it covers validation, sanitization, size/orientation rules, the approval gate, the post-save read-back, and full postcard copy/layout guidance with per-size reserve coordinates. Minor gaps remain around theme/layout presets and include_street_view, but nothing an agent critically needs is missing.

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 only 50%, so the description has to compensate, and it does for the most consequential inputs: it defines the canvas dimensions per size, the inline-styles-only rule, the auto_publish/prompt-only constraint, and the confirmed approval flag. It does not explain theme, layout, or include_street_view, and it largely duplicates the schema text for html_front/html_back rather than adding to it.

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?

'Create design. Create a mail design from custom HTML, or save a prompt as a draft' names a specific verb and resource and immediately splits the tool into its two operating modes. An agent can tell this is the authoring endpoint rather than the read/delete/patch siblings, and the read-back sibling dealmachine_get_mail_designs_id is named explicitly.

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?

The description clearly states when HTML is required versus when a prompt-only draft is sufficient ('Prompt-only designs cannot be auto-published'), spells out the publishing precondition (complete validated front and back HTML), and prescribes a read-before-edit / read-after-save workflow. It stops short of explicitly telling the agent to use dealmachine_patch_mail_designs_id for edits rather than re-creating, so the boundary against the patch sibling is only implied.

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.