Skip to main content
Glama
Sequenzy MCP Server

Sequenzy MCP Server

Official
by Sequenzy

save_email_ai_style

Destructive

Saves an email’s design as the company default for future AI email generation, capturing fonts, colors, spacing, and layout habits without copying content or changing existing emails.

Instructions

Save an email's appearance as the company default for future AI generation. Captures fonts, colors, spacing and block treatments, plus detected layout habits (for example dotted dividers around every button) and optional notes, without copying its content or modifying existing emails. Requires emails:write and access to the source email. Replaces only expectedStyleId; get and review the current style before replacing. All detected habits are kept unless layoutRuleIds narrows them; review style.layout.rules in the response and re-save with a subset if needed. Plain-text choices and explicit style requests take precedence during generation.

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": {
      "emailId": "<emailId>",
      "expectedStyleId": "<expectedStyleId>"
    },
    "name": "save_email_ai_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoOptional design notes for future generations, for example 'always open with a short video'. Design guidance only, never email content.
canvasNoOptional unsaved canvas snapshot. Omit to capture the stored email. Include all four fields when provided; validated by the API using the same schema as the editor.
emailIdYesSource email ID (including campaign, sequence or transactional email IDs); must belong to this company and be visible to you.
companyIdNoCompany ID; defaults to the selected company.
layoutRuleIdsNoIDs of detected layout habits to keep (from style.layout.rules, for example around|button|divider:dots). Omit to keep every detected habit; pass [] to keep none.
expectedStyleIdYesrevisionId from get_email_ai_style. Use null only for an initial save with no stored style. On conflict, read and review again before retrying.

Output Schema

NameRequiredDescriptionDefault
noteNoAdditional context about the result.
itemsNoFallback array wrapper used only when a tool returns a bare array.
styleNoSaved appearance snapshot, or null when none is active.
valueNoFallback object wrapper used only when a tool returns a non-object value.
messageNoHuman-readable status, confirmation, or next-step message.
successNoWhether the Sequenzy operation succeeded.
warningsNoNon-fatal cautions about content, permissions, or follow-up actions.
canManageNoWhether this caller can save or clear a style.
revisionIdNoObserved snapshot revision for conditional save/clear; may be nonnull for an unsupported style version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the destructiveHint/idempotentHint annotations, it discloses permission requirements (emails:write plus access to the source email), the exact destructiveness boundary ('Replaces only expectedStyleId'), the default habit-retention behavior with a remediation path, and conflict handling. That is meaningful behavioral context the annotations cannot express.

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?

Purpose is front-loaded and the description is dense with substantive constraints rather than filler. The closing sentence about plain-text choices and explicit style requests taking precedence is about generation-time behavior rather than this invocation, making it the one element that does not fully earn its place.

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, nested-schema save with an output schema, the definition covers the things an agent still needs: authorization, the review-before-replace protocol, the conflict/null expectedStyleId rule, and what to inspect in the response. Nothing required for correct invocation is left to inference.

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 coverage is 100%, so both required and optional parameters are already documented; the description mostly restates that behavior (expectedStyleId replacement, layoutRuleIds narrowing). It does add a concrete illustration of what a layout habit looks like ('dotted dividers around every button'), but that is marginal added meaning above a fully described schema.

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 first two sentences name a specific verb and resource (save an email's appearance as the company default) and define the capture scope: fonts, colors, spacing, block treatments and detected layout habits. It also draws a crisp negative boundary — no content copying, no modification of existing emails — which separates it from write tools like update_email_design_system or update_email_component.

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 gives clear preconditions and sequencing: 'get and review the current style before replacing' and 'review style.layout.rules in the response and re-save with a subset if needed', which effectively routes the agent to get_email_ai_style first. It never explicitly excludes alternatives such as clear_email_ai_style or says when not to save, so it stops short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools