Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

use_template

Read-only

Apply a configured email template by filling {{variable}} placeholders with provided values and returning ready-to-use arguments for send_email or create_draft; it does not send messages.

Instructions

Apply a configured email template — fills {{variable}} placeholders with provided values and returns ready-to-use arguments for send_email or create_draft. Does not send; call send_email or create_draft with the returned args.

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": {
      "templateId": "<templateId>"
    },
    "name": "use_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCC recipients to include in the returned args
toNoRecipient email address to include in the returned args
bccNoBCC recipients to include in the returned args
accountIdNoAccount ID to include in the returned args
variablesNoKey-value pairs to substitute into {{variable}} placeholders in the template subject and body
templateIdYesThe ID of the template to use

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description is consistent with that ('Does not send'). It adds genuine value beyond the annotations by describing the return contract — resolved arguments ready for send_email or create_draft — which matters because no output schema exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero waste, with the core action and the important negative constraint ('Does not send') front-loaded. The follow-up call is spelled out immediately after.

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?

With no output schema, the description must convey what comes back — and it does ('ready-to-use arguments for send_email or create_draft'). Combined with the annotations, an agent has everything needed to call it and act on the result.

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 every parameter is already documented, including the variables object and its placeholder substitution. The description mentions placeholder filling but adds no parameter-level detail beyond what the schema states, so the baseline 3 is appropriate.

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?

Names a specific verb and resource ('Apply a configured email template') and immediately states the effect ('fills {{variable}} placeholders with provided values and returns ready-to-use arguments'). It is clearly distinguishable from the sending siblings it names.

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?

Explicitly says 'Does not send; call send_email or create_draft with the returned args,' which both names the alternatives and gives the condition under which they should be used instead. An agent knows exactly where this tool sits in the workflow.

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