Retainful MCP by usefulapi

v1.8.1
io.usefulapi/retainful Checked 3 days ago Published 1 day ago

List 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.

ParameterTypeDescription
limitintegerItems per page (default 10, max 100).
pageintegerPage 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}.

ParameterTypeDescription
contact_id *stringRetainful 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.

ParameterTypeDescription
limitintegerItems per page (default 10, max 100).
pageintegerPage number (default 1).
typestringFilter 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}.

ParameterTypeDescription
list_id *stringRetainful 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.

ParameterTypeDescription
email_opt_in *stringEmail consent. Use SUBSCRIBED only when the person opted in. NON_SUBSCRIBED = no marketing email. UNSUBSCRIBED = opted out.
custom_propertiesobjectCustom fields as string values. Maximum 30 keys.
emailstringEmail address.
external_idstringYour own id for this person, e.g. your database id.
first_namestring
last_namestring
phonestringPhone number, 7-20 characters, needed for WhatsApp.
phone_opt_instringEmail consent. Use SUBSCRIBED only when the person opted in. NON_SUBSCRIBED = no marketing email. UNSUBSCRIBED = opted out.
sourcestringWhere 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.

ParameterTypeDescription
email *stringEmail address of the contact (required here).
email_opt_in *stringEmail consent. Use SUBSCRIBED only when the person opted in. NON_SUBSCRIBED = no marketing email. UNSUBSCRIBED = opted out.
list_id *stringRetainful list id from retainful_list_lists.
first_namestring
last_namestring
phonestringPhone number, 7-20 characters, needed for WhatsApp.
sourcestringWhere 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.

ParameterTypeDescription
event_data *objectFlat key-value details of the event. At least one key. No nested objects.
event_name *stringHuman-readable name, e.g. Appointment Booked. Keep the spelling stable.
unique_identifier *stringId of this occurrence, e.g. an order or booking id. Idempotency key.
contact_uuidstringRetainful contact id. Send this, or email or phone.
emailstringEmail address.
phonestringPhone number, 7-20 characters, needed for WhatsApp.