Skip to main content
Glama

Create email template

spur_create_email_template

Save a new email template and show its inbox preview. Ways to start:

  • From blank: start_from_blank=true gives a tested 600px responsive layout with greeting, signature and a compliant footer; pass html to replace it.

  • Redesign: base_template_id copies one of the user's email templates.

  • From scratch: pass html (or only text_body for a plain-text email). The saved template can then be used by outreach workflows (spur_create_workflow / spur_set_workflow_step_template).

Email HTML guidance (see spur://email-design-guide): full HTML document, table-based layout 600px wide, inline styles on elements (a small block in is fine for resets/media queries), web-safe font stacks, no JavaScript, no forms, no external CSS. Images as absolute https URLs with alt text and width attributes. The user's own images (logo, headshot, property photos): spur_list_images gives their URLs; if they want to use an image they have, call spur_upload_image (or spur_save_image for a link) and use the saved URL. Use PNG or JPG in emails, not SVG. A hidden preheader right after sets the inbox snippet. Include an opt-out line ("Reply STOP" or an unsubscribe link) and the sender's postal address in the footer. Keep it under 50,000 characters. Use merge fields like {{owner_first_name}}, {{property_address}}, {{your_name}}, {{your_phone}}, {{company_name}} (see spur://merge-variables). The plain-text version is generated from the HTML unless you pass text_body.

Input Schema

NameRequiredDescriptionDefault
htmlNoFull email HTML; merge fields like {{owner_first_name}} are filled per recipient
nameYesTemplate name shown in Spur
subjectNoRequired unless copying a template
text_bodyNoPlain-text version; generated from the HTML when omitted
is_defaultNoMake this the user's default email template
descriptionNoInternal note about the template; never sent to owners
base_template_idNoCopy this email template as the starting point
start_from_blankNotrue = start from Spur's responsive, compliant blank email layout

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly=false, destructive=false, non-idempotent), and the description adds real behavioral facts beyond them: the tool returns an inbox preview, plain text is auto-derived from HTML unless text_body is passed, there is a 50,000-char ceiling, and blank layouts are pre-tested/compliant. It does not say what happens if 'name' collides with an existing template, which is the one visible gap.

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 critical behavior (save + preview) is front-loaded and the three starting modes are a scannable list. The trailing HTML/merge-field guidance is long and reads partly like reference documentation, but it is directly actionable for composing the required payload, so it largely earns its space.

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 an 8-parameter write tool with no output schema, the definition covers creation paths, return behavior (inbox preview), format constraints, validation limits, merge-field syntax, image sourcing, and pointers to spur://email-design-guide and spur://merge-variables. An agent has everything needed to call it correctly on the first attempt.

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 coverage is 100%, so the baseline is 3, but the description genuinely adds cross-parameter meaning the schema cannot: start_from_blank yields a populated layout that html then replaces, base_template_id copies one of the user's own templates, and text_body is only needed when generation should be overridden. The precedence between these three paths is the main thing still unstated.

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?

Opens with a specific verb+resource ('Save a new email template') plus an immediate benefit ('show its inbox preview'), and the three starting modes make the scope concrete. It never explicitly contrasts itself with spur_update_email_template or the SMS/letter/postcard template siblings, so differentiation is left to the name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It enumerates three explicit entry paths (blank layout, copy via base_template_id, raw html/text_body) with the condition selecting each, and tells the agent the downstream alternatives (spur_create_workflow / spur_set_workflow_step_template) for using the result. Nearly nothing about when to use this vs a sibling is left to inference.

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.

Resources