Briefwelle vorbereiten
prepare_letter_wavePrepare 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
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Existing page-side print specification, simplex (default) or duplex. | simplex |
| color | No | Existing print colour code, 1 or 4 (default 4). Preserve the explicitly requested print specification; it is not send authority. | 4 |
| items | Yes | The exact individual letters, each with a unique stable key, recipient, authored text, language and documented lawful basis. | |
| title | Yes | Human title of this specific wave. | |
| requestKey | Yes | One UUID for this exact immutable wave preparation. Preserve it and every item key/text on retry. | |
| campaignKey | Yes | Stable identifier grouping this wave into the explicitly requested existing/native campaign. | |
| dispatchDate | No | Optional requested postal dispatch date, YYYY-MM-DD. It does not grant approval or trigger sending. | |
| campaignTitle | Yes | Human title for that campaign grouping, not approval of spend or dispatch. |