Retainful MCP by usefulapi
v1.8.1List contacts and lists; create contacts, add them to lists and record events in Retainful.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
retainful_list_contacts List contacts
List contacts (profiles) in the Retainful organization, one page at a time, with consent status and source. Retainful API: GET /customer.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Items per page (default 10, max 100). |
page | integer | Page number (default 1). |
retainful_get_contact Get contact
Get one contact (profile) by its Retainful id (contactUUID), with its attributes. Retainful API: GET /customer/{id}.
| Parameter | Type | Description |
|---|---|---|
contact_id * | string | Retainful contact id, e.g. 01K8J5M02QYPEJE5YN3V944ZY9. |
retainful_list_lists List lists and segments
List the lists and segments in the organization with their ids. Use the id as list_id in retainful_add_contact_to_list. Retainful API: GET /contact-groups.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Items per page (default 10, max 100). |
page | integer | Page number (default 1). |
type | string | Filter by LIST, SEGMENT, or ALL (default ALL). |
retainful_get_list Get list
Get one list or segment by its id. Retainful API: GET /contact-groups/{id}.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | Retainful list id from retainful_list_lists. |
retainful_upsert_contact Create or update contact
WRITE: create a contact, or update it when the email or phone already exists. Does not add anyone to a list. email_opt_in is required: it sets marketing consent, so send SUBSCRIBED only with real consent. Needs email or phone. Retainful API: POST /customer/create.
| Parameter | Type | Description |
|---|---|---|
email_opt_in * | string | Email consent. Use SUBSCRIBED only when the person opted in. NON_SUBSCRIBED = no marketing email. UNSUBSCRIBED = opted out. |
custom_properties | object | Custom fields as string values. Maximum 30 keys. |
email | string | Email address. |
external_id | string | Your own id for this person, e.g. your database id. |
first_name | string | |
last_name | string | |
phone | string | Phone number, 7-20 characters, needed for WhatsApp. |
phone_opt_in | string | Email consent. Use SUBSCRIBED only when the person opted in. NON_SUBSCRIBED = no marketing email. UNSUBSCRIBED = opted out. |
source | string | Where the contact came from (default api). |
retainful_add_contact_to_list Add contact to list
WRITE: create or update a contact by email and add them to a list in one call. A list can start an automation. email_opt_in is required: an existing contact is set to SUBSCRIBED when it is omitted here. Retainful API: POST /contact-groups/{listId}/contacts.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email address of the contact (required here). |
email_opt_in * | string | Email consent. Use SUBSCRIBED only when the person opted in. NON_SUBSCRIBED = no marketing email. UNSUBSCRIBED = opted out. |
list_id * | string | Retainful list id from retainful_list_lists. |
first_name | string | |
last_name | string | |
phone | string | Phone number, 7-20 characters, needed for WhatsApp. |
source | string | Where the contact came from (default api). |
retainful_track_event Track event
WRITE: record one event on a contact's timeline. Automations triggered by the event can email the contact. Reuse the same unique_identifier only for a retry of the same real occurrence (a repeat does not trigger automations again); use a new one for each new occurrence. Event data must be flat: strings, numbers, or booleans. Retainful API: POST /events.
| Parameter | Type | Description |
|---|---|---|
event_data * | object | Flat key-value details of the event. At least one key. No nested objects. |
event_name * | string | Human-readable name, e.g. Appointment Booked. Keep the spelling stable. |
unique_identifier * | string | Id of this occurrence, e.g. an order or booking id. Idempotency key. |
contact_uuid | string | Retainful contact id. Send this, or email or phone. |
email | string | Email address. |
phone | string | Phone number, 7-20 characters, needed for WhatsApp. |