Skip to main content
Glama

dealmachine_patch_mail_designs_id

Destructive

Update design. Update a design. Supplied HTML is validated before saving. Publishing revalidates both effective draft sides and requires complete front and back HTML. 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. 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

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": {
      "path": "<path>"
    },
    "name": "dealmachine_patch_mail_designs_id"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / body / properties / html_back / description
      Added 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."
    • addedInput schema / properties / body / properties / html_front / description
      Added 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."
  2. Added

TDQS

A4/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 HTML validation before saving, 400 VALIDATION_ERROR behavior, 2 MB side limits, server-side sanitization without a browser, publishing revalidation, approval and credit-use requirements, and no automatic retries. These are substantial operational details that affect safe invocation.

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 description is extremely long and opens with redundant sentences ('Update design. Update a design.'). It front-loads important validation constraints, but the copy guidance, mailing-area coordinate lists, and repeated HTML rules could be trimmed or structured more tightly.

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 destructive mutation with a nested body and no output schema, the description covers validation, approval, publishing, mailing-area placement, and post-save read-back. An agent has enough detail to call and verify the operation 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 description coverage is only 33%, but the description compensates heavily by explaining the html_front/html_back constraints, publish completeness requirements, and confirmed approval semantics. It adds less meaning for name, theme, and layout, but the high-risk parameters are well covered.

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 and resource: 'Update design. Update a design.' It also names the sibling read tool for post-save verification, but the first two sentences are tautological and it does not directly distinguish itself from post/delete design siblings.

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 gives workflow guidance such as reading the design before editing, reading it back after saving, and requiring confirmed=true after user approval. It does not explicitly say when to choose this tool versus post/delete design alternatives.

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.