Skip to main content
Glama

Update email texts

update_email_texts

Change webinar email subject lines, intros, enabled status, and reminder offsets to customize confirmation, reminder, and live messages before the webinar starts.

Instructions

Change the subject and/or intro, and for reminder_24h, reminder_1h and live whether they are sent (enabled) and for the two reminders when (offset_minutes before the start, 5 minutes to 7 days). Timing changes only before the webinar starts (webinar_started otherwise); queued reminders follow at once. Give only the kinds to change, e.g. {"webinar_id":"...","reminder_24h":{"subject":"Tomorrow: {webinar_title}","intro":"Hi {first_name|there}, see you tomorrow."}}. subject or intro set to null goes back to the default text; a kind set to null resets its texts and timing. Unknown merge fields are refused (invalid_request). Returns the same shape as get_email_texts. Use send_test_email to check the result.

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": {
      "webinar_id": "<webinar_id>"
    },
    "name": "update_email_texts"
  }
}

Input Schema

NameRequiredDescriptionDefault
liveNo{subject?, intro?, enabled?}; the live mail always goes at the start; null resets it
dry_runNotrue: validate and show what would happen without changing anything
webinar_idYesWebinar id (UUID) from list_webinars or create_webinar
reminder_1hNo{subject?, intro?, enabled?, offset_minutes?}; null resets texts and timing to the default
confirmationNo{subject?, intro?} for this mail kind; null resets both to the default; leave out to keep it
reminder_24hNo{subject?, intro?, enabled?, offset_minutes?}; null resets texts and timing to the default
idempotency_keyNoAny unique string; retrying with the same key and arguments within 24 h returns the first answer instead of doing it twice

Output Schema

NameRequiredDescriptionDefault
dataNo
resultYes
statusNo
changesNo
dry_runNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses reset semantics (null field -> default text, null kind -> texts and timing reset), the side effect that queued reminders are re-timed immediately, and the error behavior for unknown merge fields (invalid_request). It does not mention permission requirements, whether prior text is recoverable, or rate limits, leaving some mutation risk undisclosed.

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?

It is front-loaded with the mutation scope and every sentence carries information (defaults, timing window, error case, return value, verification tool). The dense parenthetical clauses and the embedded JSON example make it somewhat hard to scan, but nothing is redundant.

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 a 7-parameter mutation tool with an output schema, the description covers what changes, what gets reset, constraints on timing, failure modes, and the return shape (deferred to get_email_texts). Combined with the fully documented schema and output schema, an agent has enough to call it correctly without guessing.

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 description coverage is 100%, so the baseline is 3; the description earns an extra point by explaining the merge-field placeholders ({webinar_title}, {first_name|there}), the partial-update rule for per-kind objects, and the null-reset semantics that tie parameters to outcomes. The worked example object shows the expected payload shape in a way the schema alone does not.

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 gives a specific verb and resource: change subject/intro texts, enabled flags and send offsets for a webinar's email kinds (reminder_24h, reminder_1h, live, confirmation). It implicitly delimits itself against get_email_texts ("Returns the same shape as get_email_texts") and against send_test_email, so an agent can tell which of the sibling tools actually mutates the templates.

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?

It states clear operating conditions: "Give only the kinds to change" (partial update), "Timing changes only before the webinar starts (webinar_started otherwise)" (a when-not condition), and "Use send_test_email to check the result" (an explicit alternative for verification). It stops short of saying which tool to call first (e.g. get_email_texts) to read the current values before editing.

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