Skip to main content
Glama

Samuelz® Communications

Briefwelle vorbereiten

prepare_letter_wave
Idempotent

Prepare and store a wave, not a provider quote, approval or send. requestKey identifies this immutable preparation; title labels the wave and campaignKey/campaignTitle group it. Each unique item key binds one exact recipient/address, authored subject/body, language and documented lawfulBasis. Optional dispatchDate/color/mode are the existing print specifications, not send authority. On explicit request persist a tenant-bound campaign and immutable letter wave with free per-recipient texts, postal addresses, language and lawful basis. Stable requestKey and item keys; never change them on retry. No provider call or send. CampaignKey groups waves. Optional profileId links an imported contact. Read get_letter_wave, then quote_letter_wave after explicit price-read permission. Missing addresses/lawful basis are required inputs, not inferred. Existing tenant Marketing Owner/write authority required.

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": {
      "requestKey": "<requestKey>",
      "campaignKey": "<campaignKey>",
      "campaignTitle": "<campaignTitle>",
      "title": "<title>",
      "items": "<items>"
    },
    "name": "prepare_letter_wave"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoExisting page-side print specification, simplex (default) or duplex.simplex
colorNoExisting print colour code, 1 or 4 (default 4). Preserve the explicitly requested print specification; it is not send authority.4
itemsYesThe exact individual letters, each with a unique stable key, recipient, authored text, language and documented lawful basis.
titleYesHuman title of this specific wave.
requestKeyYesOne UUID for this exact immutable wave preparation. Preserve it and every item key/text on retry.
campaignKeyYesStable identifier grouping this wave into the explicitly requested existing/native campaign.
dispatchDateNoOptional requested postal dispatch date, YYYY-MM-DD. It does not grant approval or trigger sending.
campaignTitleYesHuman title for that campaign grouping, not approval of spend or dispatch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / items / items / properties / recipient / properties / domain / description
      Added value: +"Optional supplied recipient organisation domain; not a sender domain or access grant."
    • addedInput schema / properties / items / items / properties / recipient / properties / email / description
      Added value: +"Optional actual contact email supplied for this postal recipient; not an email-send instruction or consent."
    • addedInput schema / properties / items / items / properties / recipient / properties / externalRef / description
      Added value: +"Optional stable recipient reference from the supplied source; not a wave/item key or provider delivery receipt."
    • addedInput schema / properties / items / items / properties / recipient / properties / orgName / description
      Added value: +"Optional supplied organisation name for this recipient; the actual postal destination remains address."
    • addedInput schema / properties / items / items / properties / recipient / properties / phone / description
      Added value: +"Optional actual recipient phone; not a call/SMS instruction or proof of identity."
  2. Changed22 schema fields changed
    • addedInput schema / properties / campaignKey / description
      Added value: +"Stable identifier grouping this wave into the explicitly requested existing/native campaign."
    • addedInput schema / properties / campaignTitle / description
      Added value: +"Human title for that campaign grouping, not approval of spend or dispatch."
    • addedInput schema / properties / color / description
      Added value: +"Existing print colour code, 1 or 4 (default 4). Preserve the explicitly requested print specification; it is not send authority."
    • addedInput schema / properties / dispatchDate / description
      Added value: +"Optional requested postal dispatch date, YYYY-MM-DD. It does not grant approval or trigger sending."
    • addedInput schema / properties / items / description
      Added value: +"The exact individual letters, each with a unique stable key, recipient, authored text, language and documented lawful basis."
    • addedInput schema / properties / items / items / properties / body / description
      Added value: +"Final authored body of this individual letter, not approval or permission to send."
    • addedInput schema / properties / items / items / properties / key / description
      Added value: +"Stable unique item key within this wave. Preserve it and the same recipient/text on retry."
    • addedInput schema / properties / items / items / properties / language / description
      Added value: +"Language code of the supplied letter, e.g. de or en; not an instruction to generate a translation."
    • addedInput schema / properties / items / items / properties / lawfulBasis / description
      Added value: +"Documented actual lawful basis for contacting this recipient; never infer marketing consent."
    • addedInput schema / properties / items / items / properties / profileId / description
      Added value: +"Optional exact existing imported contact profile ID for this recipient."
    • addedInput schema / properties / items / items / properties / recipient / description
      Added value: +"Exact intended recipient and complete postal address for this one letter."
    • addedInput schema / properties / items / items / properties / recipient / properties / address / description
      Added value: +"Exact complete postal address of this recipient; missing facts are not inferred."
    • addedInput schema / properties / items / items / properties / recipient / properties / address / properties / city / description
      Added value: +"Actual destination city."
    • addedInput schema / properties / items / items / properties / recipient / properties / address / properties / country / description
      Added value: +"Two-letter destination country code; the existing parser normalises it to uppercase."
    • addedInput schema / properties / items / items / properties / recipient / properties / address / properties / line1 / description
      Added value: +"Actual postal street/address line, supplied by the user or qualified existing source."
    • addedInput schema / properties / items / items / properties / recipient / properties / address / properties / line2 / description
      Added value: +"Optional actual additional address line; null/omission does not permit guessing."
    • addedInput schema / properties / items / items / properties / recipient / properties / address / properties / name / description
      Added value: +"Exact addressee/organisation name for this postal address."
    • addedInput schema / properties / items / items / properties / recipient / properties / address / properties / postalCode / description
      Added value: +"Actual postal code of this recipient."
    • addedInput schema / properties / items / items / properties / subject / description
      Added value: +"Final authored subject of this individual letter, not a generation instruction."
    • addedInput schema / properties / mode / description
      Added value: +"Existing page-side print specification, simplex (default) or duplex."
    • addedInput schema / properties / requestKey / description
      Added value: +"One UUID for this exact immutable wave preparation. Preserve it and every item key/text on retry."
    • addedInput schema / properties / title / description
      Added value: +"Human title of this specific wave."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare idempotentHint=true and a non-read write, and the description extends that materially: the preparation is immutable, requestKey and item keys must never change on retry, the entity is tenant-bound, and missing addresses or lawful basis are required inputs rather than inferred. It also clarifies that dispatchDate/color/mode are print specifications and confer no send authority, which annotations alone cannot convey.

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?

The scoping constraint is front-loaded and every sentence targets a different concern. It is slightly repetitive, restating the no-send/no-approval point in several guises ('not a provider quote', 'not send authority', 'No provider call or send'), which costs some density but not comprehension.

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 an 8-parameter mutation with 100% schema coverage, no output schema and only hint-level annotations, the description covers what matters: idempotency contract, authority prerequisite, tenant binding, explicit non-effects, and which sibling to call next. Nothing an agent needs before invoking it is missing.

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 schema already documents every field, yet the description still adds relational meaning: requestKey identifies one immutable preparation, campaignKey/campaignTitle group waves, and each item key binds exactly one recipient, text, language and lawful basis. This goes beyond field-level docs by explaining how the parameters compose, though it stops short of describing the item-array cardinality behavior.

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?

States a specific verb and resource ('Prepare and store a wave') and immediately bounds it negatively ('not a provider quote, approval or send'). That negative framing lets an agent distinguish it from quote_letter_wave and the send siblings without opening any schema.

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?

Gives an explicit ordering against siblings: 'Read get_letter_wave, then quote_letter_wave after explicit price-read permission', plus 'No provider call or send'. It also names the prerequisite authority ('Existing tenant Marketing Owner/write authority required') and the trigger condition ('On explicit request').

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