Skip to main content
Glama
codefuturist

Email MCP Server

by codefuturist

Apply template

apply_template

Populate an email template with variable values, then preview, save as a draft, or send the composed message using a connected account.

Instructions

Apply an email template with variable substitution. Use action "preview" to see the result, "draft" to save as draft, or "send" to send immediately.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoRecipient addresses (required for send, optional for draft)
actionNoWhat to do with the composed emailpreview
accountYesAccount name from list_accounts
templateYesTemplate name from list_templates
variablesYesVariable values as key-value pairs, e.g. { topic: 'Q1 Review' }

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.2.3

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds that 'send' transmits immediately, but says nothing about permissions, failure behavior, or whether preview/draft have side effects. Modest value beyond annotations.

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?

Two tight, front-loaded sentences with no filler. The second sentence partially duplicates the action enum from the schema, which is a small redundancy, but overall the text is 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?

With 100% schema coverage and annotations covering the safety profile, the description need not re-explain parameters or return values. It covers the three action modes, which is the key behavioral fork. Minor gaps remain around send/draft side effects but are acceptable given the structured data.

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 description coverage is 100%, so the schema already documents account, template, variables, to, and the action enum. The description adds only the 'variable substitution' concept, which is largely redundant with the schema's own variable example. Baseline 3 is correct when the schema does the heavy lifting.

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?

States a specific verb and resource ('Apply an email template with variable substitution'), which is clearer than the sibling send_email/save_draft by naming the template mechanism. It does not, however, explicitly contrast itself with those siblings, so an agent still infers the boundary.

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?

The second sentence explains what each 'action' value does, which is mode-selection guidance. But it largely restates the enum already in the schema and gives no when-to-use-this-tool-vs-alternatives (e.g. apply_template+send vs send_email). Usage is implied, not stated.

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