Skip to main content
Glama

Email Manage Tool

email_manage
Destructive

Manage 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

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction 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_msNoOptional: 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.
statusNoFilter by status: draft, active, archived
limitNoMax results (default 10, max 100)
idYesEmail theme UUID
nameYesTheme name
primary_colorNoPrimary/CTA color as hex (e.g. #2563eb). Default: #2563eb
background_colorNoEmail background color as hex. Default: #f4f4f4
canvas_colorNoContent area background color as hex. Default: #ffffff
text_colorNoBody text color as hex. Default: #1f2937
heading_colorNoHeading text color as hex. Default: #111827
font_nameNoFont display name (e.g. Inter, Georgia). Default: Inter
font_urlNoGoogle Fonts or web font URL for @import
font_familyNoFull CSS font-family stack. Default: Inter, Arial, sans-serif
logo_urlNoAbsolute URL to the team logo image
email_widthNoMaximum email width in pixels. Default: 600
company_nameNoCompany name shown in email footer
company_addressNoCompany address shown in email footer
footer_textNoFooter text or HTML (e.g. unsubscribe line)
muted_colorNoMuted/secondary text color as hex
divider_colorNoDivider/border color as hex
heading_font_sizeNoHeading font size in pixels
body_font_sizeNoBody font size in pixels
logo_widthNoLogo width in pixels
content_paddingNoContent area horizontal padding in pixels
visibilityNoFilter by visibility: private, public
subjectNoEmail subject line
preview_textNoShort preview text shown in email clients
email_theme_idNoOptional email theme UUID to associate
html_bodyNoRaw HTML content. Stored directly as the template HTML.
mjml_bodyNoComplete MJML document starting with <mjml>. Compiled server-side to cross-client HTML. Preferred over html_body.
descriptionYesNatural language description of the email to generate, e.g. "Monthly newsletter with hero image, 3 product highlights, and a CTA button"
theme_idNoOptional email theme UUID. Brand colors, fonts, company name, and logo from the theme will be injected into the generated MJML.
toneNoWriting tone: professional, friendly, or minimal (default: professional)
Behavior5/5

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

The description goes beyond the destructiveHint annotation by explicitly labeling theme_delete and template_delete as destructive and explaining the blockage when a theme is in use. It also discloses that template_generate consumes credits and compiles MJML server-side. This level of detail exceeds the annotation's bare hint.

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?

The description is moderately long but well-structured into paragraphs for general info, theme actions, and template actions. Each sentence carries relevant information (e.g., credit consumption, MJML compilation). Minor redundancy could be trimmed, but overall it's efficient.

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?

Given 34 parameters and no output schema, the description covers key workflows: dependencies (theme deletion blocked), credit costs for generation, and the difference between MJML and HTML storage. It lacks details on error responses or pagination for list actions, but it adequately addresses the tool's complexity.

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 100% schema coverage, the baseline is 3. The description adds value by grouping parameters into actions (e.g., theme_create uses name and styles object) and explaining parameter relationships (e.g., mjml_body preferred over html_body, theme_id injects brand colors into generated MJML). It also notes default values for several fields.

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 description clearly states it manages email themes (visual styling) and templates (transactional + marketing copy). It lists specific actions for themes and templates, including AI generation via template_generate. This distinguishes it from sibling tools, which have different domains (e.g., admin_manage, credential_manage).

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 provides context for when to use each action, such as distinguishing theme operations from template operations and noting that template_generate consumes credits. It also explains a dependency: deleting a theme fails if templates reference it. While it doesn't explicitly compare to alternatives (e.g., outbound_manage for sending), the guidance is clear for the tool's scope.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/escapeboy/agent-fleet-o'

If you have feedback or need assistance with the MCP directory API, please join our Discord server