Skip to main content
Glama

create_group_mailing

Destructive

Prepare a group e-mail (draft, nothing is sent yet). Required: name, subject, body (plain text), and recipients: saved_filter_id, filter (as in search_crm) or ids — entity contacts (default) or accounts. Placeholders: {{briefanrede}} (e.g. 'Sehr geehrte Frau Dr. Mustermann,'), {{vorname}}, {{nachname}}, {{name}}, {{anrede}}, {{titel}}, {{email}}, {{telefon}}, {{position}}, {{organisation}}, {{strasse}}, {{plz}}, {{ort}}, {{land}}, {{zf_}} for custom fields; {{#if feld}}…{{/if}} works. Every mail gets an unsubscribe link automatically. purpose (default newsletter) is checked against each person's consent; revoked or blocked people are skipped. Optional: from_email (a connected mailbox), from_name, reply_to or as_me=true (your name as sender, replies to you), attachments (document_ids), attachment_mode link|file. Then preview_group_mailing, send_group_mailing_test, schedule_group_mailing.

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": {
      "name": "<name>",
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "create_group_mailing"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoExplicit recipient record IDs (alternative to saved_filter_id or filter)
bodyYesBody text
nameYesName of the group mailing
as_meNoSend with your name as sender; replies go to you
entityNocontacts | accounts
filterNoRecipient filter as in search_crm (alternative to saved_filter_id or ids)
purposeNoConsent purpose checked per recipient (default newsletter)
subjectYesSubject line
reply_toNoReply-to email address
from_nameNoSender display name
from_emailNoSender email address
attachmentsNoDocument IDs to attach
attachment_modeNoHow attachments are delivered: link or file
saved_filter_idNoID of the saved filter

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • addedInput schema / properties / as_me / description
      Added value: +"Send with your name as sender; replies go to you"
    • addedInput schema / properties / attachment_mode / description
      Added value: +"How attachments are delivered: link or file"
    • addedInput schema / properties / attachments / description
      Added value: +"Document IDs to attach"
    • addedInput schema / properties / body / description
      Added value: +"Body text"
    • addedInput schema / properties / filter / description
      Added value: +"Recipient filter as in search_crm (alternative to saved_filter_id or ids)"
    • addedInput schema / properties / from_email / description
      Added value: +"Sender email address"
    • addedInput schema / properties / from_name / description
      Added value: +"Sender display name"
    • addedInput schema / properties / ids / description
      Added value: +"Explicit recipient record IDs (alternative to saved_filter_id or filter)"
    • addedInput schema / properties / name / description
      Added value: +"Name of the group mailing"
    • addedInput schema / properties / purpose / description
      Added value: +"Consent purpose checked per recipient (default newsletter)"
    • addedInput schema / properties / reply_to / description
      Added value: +"Reply-to email address"
    • addedInput schema / properties / saved_filter_id / description
      Added value: +"ID of the saved filter"
    • addedInput schema / properties / subject / description
      Added value: +"Subject line"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that every mail gets an automatic unsubscribe link, that purpose is checked against each recipient's consent, and that revoked or blocked people are silently skipped. These are exactly the side effects an agent cannot infer from readOnlyHint=false / destructiveHint=true, and they change whether calling this is safe.

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?

Front-loads the critical fact (draft, nothing sent) and the required inputs, then descends into placeholders and optional sender/attachment settings. The placeholder enumeration is long but functional; a few items (attachment_mode link|file, entity contacts|accounts) merely restate schema descriptions.

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?

For a 14-parameter mutation with no output schema, the description covers recipient resolution, consent behavior, sender identity, attachments and the follow-up tool chain. It never says what the call returns (presumably a mailing ID needed by preview_group_mailing), which is the one thing an agent must guess to continue the workflow.

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 adds real meaning: recipient sourcing is a three-way choice (saved_filter_id, filter 'as in search_crm', or ids) with entity defaulting to contacts, from_email must be a connected mailbox, as_me routes replies to you, and purpose defaults to newsletter with a per-person consent check. The placeholder grammar is also documented here and nowhere in the schema.

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 ('Prepare a group e-mail') and immediately scopes it with '(draft, nothing is sent yet)', which separates it from the send/schedule siblings. The closing list of preview_group_mailing, send_group_mailing_test and schedule_group_mailing makes the boundary explicit.

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?

States the position in the workflow clearly: create the draft here, then preview, test-send, or schedule with the named tools, and that nothing is sent at this step. It does not say how this differs from update_group_mailing or when to prefer an existing mailing, so it falls short of full when/when-not coverage.

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.