Skip to main content
Glama

Send template email

send_template

Send an email from a published transactional template. Returns {id}. Errors: template_not_found, template_not_published, missing_variable (names the variable), invalid_variable, template_conflict, recipient_suppressed, daily_send_limit_reached, sending_paused. Next: wait_for_email or create_webhook for delivery events.

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": {
      "template": "<template>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "send_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYesSender on a verified domain, such as "Acme <noreply@acme.com>".
subjectNoOverrides the template subject.
templateYesTemplate slug or tpl_ id. Must have a published version.
variablesNoValues for the template variables, for example {"RESET_URL": "https://..."}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare the mutation/OpenWorld/non-idempotent profile, so the description is not obliged to repeat it. It adds genuinely new behavioral context: the return shape ({id}) and an enumerated error surface that reveals prerequisite state (template must be published), variable contract violations, suppression, a daily send limit, and a global sending pause. Not a 5 only because it doesn't say what happens on partial failure or whether retries after daily_send_limit_reached are safe.

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?

Three compact sections — action, return value, error taxonomy, next step — with zero filler. The error enumeration is dense but every token carries information an agent needs for recovery branching.

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 no output schema, the description correctly supplies the return shape ({id}) and the full error taxonomy, which is the main thing an agent lacks otherwise. The only gap is that the description doesn't clarify how recipient consent/transactional status interacts with the suppression error, but overall it is complete for a 5-parameter send tool.

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 80%, so the baseline of 3 applies. The description adds almost no parameter-level meaning beyond the schema — 'missing_variable (names the variable)' hints at the variables contract, but recipient formatting, subject override behavior, and multi-recipient semantics are left entirely to the schema.

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 plus a qualifying constraint: 'Send an email from a published transactional template.' This distinguishes it from a raw send_email or a campaign send without naming a sibling. Clear, though it stops short of explicitly contrasting with the closest alternative.

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 description gives next-step guidance ('Next: wait_for_email or create_webhook for delivery events') but no when-to-use-this-vs-alternatives guidance, such as when to prefer send_template over send_email or send_campaign_test. Usage is implied by the 'published transactional template' constraint only.

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