Skip to main content
Glama
Lettr MCP Server

Lettr MCP Server

Official
by lettr-com

Bulk Create Audience Contacts

bulk-create-audience-contacts

Create up to 1000 audience contacts in one request with shared or per-row lists, topics, and properties, and optionally merge properties into existing contacts.

Instructions

Create many contacts in one request (max 1000).

Provide exactly one of:

  • emails — a flat list of addresses, when every contact gets the same treatment.

  • contacts — one row per contact, when they differ. Each row takes its own properties, list_ids and topics, applied on top of the batch-wide list_ids, topics and properties.

A row-level topic opt_out beats a batch-level opt_in. That is how you keep specific people off a topic that auto-subscribes new contacts, without a second cleanup call.

update_existing (default false) controls only whether properties are merged into contacts that already exist — submitted keys overwrite, absent keys are preserved. Existing contacts are attached to the requested lists and topics either way.

IMPORTANT — this call can partially succeed. Rows that fail validation are skipped and the rest of the batch still commits, so a successful response does NOT mean every row landed. Always read the reported error count back to the user rather than claiming the whole batch was imported.

With contacts, pass rows through as the user gave them — a malformed address is reported back as a skipped row, so do not drop or "fix" entries yourself first. With emails, a single invalid address rejects the whole request, so check them before sending.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "bulk-create-audience-contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailsNoFlat list of email addresses (max 1000). Mutually exclusive with `contacts`.
topicsNoTopic subscriptions applied to every contact in the batch (max 50)
list_idNoSingle list ID applied to the whole batch. Kept for convenience; `list_ids` is the general form.
contactsNoOne row per contact (max 1000), when contacts differ from each other. Mutually exclusive with `emails`.
list_idsNoList IDs applied to every contact in the batch (max 50)
propertiesNoCustom property values applied to every contact in this batch, each as a string (max 1000 chars). Each key must match a property defined for the team.
update_existingNoWhether to merge the submitted properties into contacts that already exist (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

A4.6/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 burden and does unusual well: it discloses partial success ("Rows that fail validation are skipped and the rest of the batch still commits"), instructs reading back the error count, and explains the asymmetric validation behavior between modes (one bad address rejects an `emails` request; a bad row is merely skipped in `contacts`). It does not cover auth/permission scope, rate limits, or duplicate handling, which keeps it below a 5 for a write tool with zero annotation coverage.

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?

Front-loads the cap, then the mode choice, then merge/override precedence, then the partial-success warning — the ordering matches the decisions an agent must make in sequence. The bulleted structure is scannable and the length is justified by seven parameters, nested objects, and no annotations to offload detail onto.

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?

Given no output schema and no annotations, the description supplies what an agent needs to call it safely: mode exclusivity, precedence rules, merge behavior, and the fact that success does not imply every row landed (with a pointer to the error count). Gaps are omissions rather than errors — no statement of permission requirements, rate limits, or how duplicate/pre-existing addresses outside `update_existing` are handled.

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, and the description exceeds it by adding semantics the schema cannot express: row-level `topics` apply "on top of" batch-wide values, and a row-level `opt_out` beats a batch-level `opt_in`. It also spells out `update_existing` merging (submitted keys overwrite, absent keys preserved, lists/topics attached regardless), which is more precise than the schema's one-line parameter description.

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?

Opens with a specific verb, resource and scale bound: "Create many contacts in one request (max 1000)." The two-mode structure (`emails` vs `contacts`) plus the batching semantics make clear this is the multi-contact create, distinct from single-contact creation without needing to name a sibling.

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 decision rule for the two input shapes: flat `emails` "when every contact gets the same treatment", row-based `contacts` "when they differ". It also specifies 'Provide exactly one of' the two, which prevents an agent from sending both.

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