Email Manage Tool
email_manageManage email themes and templates. Create, update, list, and delete visual styles and HTML/MJML templates, including AI-generated drafts.
Instructions
Email themes (visual styling) and templates (transactional + marketing copy). Templates can be hand-written MJML/HTML or AI-generated via template_generate (consumes credits). Deleting a theme used by templates is blocked unless those templates are deleted first.
Theme actions:
theme_list / theme_get (read).
theme_create (write) — name, styles (object: colors, fonts, spacing).
theme_update (write) — theme_id + any creatable field.
theme_delete (DESTRUCTIVE) — theme_id. Fails if any template references it.
Template actions:
template_list / template_get (read).
template_create (write) — name, subject, body (MJML/HTML); optional theme_id.
template_update (write) — template_id + any creatable field.
template_delete (DESTRUCTIVE) — template_id.
template_generate (write — costs credits) — prompt. Calls the team's default LLM to produce a template, returns draft for review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform: theme_list, theme_get, theme_create, theme_update, theme_delete, template_list, template_get, template_create, template_update, template_delete, template_generate | |
| deadline_ms | No | Optional: max wall-clock time (ms) the tool may spend. If exceeded during the call, returns a DEADLINE_EXCEEDED error. Minimum 100 ms. Leave unset for no deadline. | |
| status | No | Filter by status: draft, active, archived | |
| limit | No | Max results (default 10, max 100) | |
| id | Yes | Email theme UUID | |
| name | Yes | Theme name | |
| primary_color | No | Primary/CTA color as hex (e.g. #2563eb). Default: #2563eb | |
| background_color | No | Email background color as hex. Default: #f4f4f4 | |
| canvas_color | No | Content area background color as hex. Default: #ffffff | |
| text_color | No | Body text color as hex. Default: #1f2937 | |
| heading_color | No | Heading text color as hex. Default: #111827 | |
| font_name | No | Font display name (e.g. Inter, Georgia). Default: Inter | |
| font_url | No | Google Fonts or web font URL for @import | |
| font_family | No | Full CSS font-family stack. Default: Inter, Arial, sans-serif | |
| logo_url | No | Absolute URL to the team logo image | |
| email_width | No | Maximum email width in pixels. Default: 600 | |
| company_name | No | Company name shown in email footer | |
| company_address | No | Company address shown in email footer | |
| footer_text | No | Footer text or HTML (e.g. unsubscribe line) | |
| muted_color | No | Muted/secondary text color as hex | |
| divider_color | No | Divider/border color as hex | |
| heading_font_size | No | Heading font size in pixels | |
| body_font_size | No | Body font size in pixels | |
| logo_width | No | Logo width in pixels | |
| content_padding | No | Content area horizontal padding in pixels | |
| visibility | No | Filter by visibility: private, public | |
| subject | No | Email subject line | |
| preview_text | No | Short preview text shown in email clients | |
| email_theme_id | No | Optional email theme UUID to associate | |
| html_body | No | Raw HTML content. Stored directly as the template HTML. | |
| mjml_body | No | Complete MJML document starting with <mjml>. Compiled server-side to cross-client HTML. Preferred over html_body. | |
| description | Yes | Natural language description of the email to generate, e.g. "Monthly newsletter with hero image, 3 product highlights, and a CTA button" | |
| theme_id | No | Optional email theme UUID. Brand colors, fonts, company name, and logo from the theme will be injected into the generated MJML. | |
| tone | No | Writing tone: professional, friendly, or minimal (default: professional) |