add_subscriber
Create a new subscriber with name and email, optionally subscribing them to mailing lists; returns the new subscriber ID and fails if the email already exists.
Instructions
Create a new subscriber and optionally subscribe them to mailing lists. Fails if a subscriber with the same email already exists. Returns the new subscriber ID. To change an existing subscriber use update_subscriber.
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": {
"email": "<email>",
"name": "<name>"
},
"name": "add_subscriber"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Subscriber name | |
| Yes | Subscriber email | ||
| lists | No | IDs of the mailing lists to subscribe them to (see get_mailing_lists); empty means no lists | |
| status | No | enabled (can receive mail), disabled, or blocklisted (never mailed) | enabled |
| attributes | No | Free-form JSON object stored with the subscriber, e.g. {"city": "Berlin"} | |
| preconfirm | No | If true, subscriptions to double opt-in lists are marked confirmed and no confirmation email is sent |