Trumpia MCP by usefulapi

v1.25.1
io.usefulapi/trumpia Checked 3 days ago Published 1 day ago

Read Trumpia lists, subscribers, keywords and reports; add contacts and send SMS or email campaigns.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

trumpia_get_credit_balance Get credit balance

The account's remaining domestic and international text credits. GET /balance/credit.

trumpia_get_request_report Get request status report

The outcome of an earlier write request (list/contact/message changes are processed asynchronously). Pass the request_id that the write tool returned; the reply holds the result (for example the new list_id) or says it is still processing or failed. GET /report/{request_id}.

ParameterTypeDescription
request_id *stringThe request_id from a write reply.

trumpia_list_lists List distribution lists

All distribution lists (id and name). Lists group subscriptions for targeted messages. GET /list.

trumpia_get_list Get distribution list

One distribution list: display name, description, message frequency and subscription / mobile / email counts. GET /list/{list_id}.

ParameterTypeDescription
list_id *stringDistribution list id (from trumpia_list_lists).

trumpia_create_list Create distribution list

WRITE: create a distribution list. Trumpia requires disclosing how often subscribers get messages and what for. Returns request_id and list_id. The list name must not contain spaces or special characters. PUT /list.

ParameterTypeDescription
description *stringWhat the list sends, e.g. 'promo alerts' (max 20 characters).
display_name *stringName subscribers see when they sign up (max 50 characters).
frequency *integerMessages per month subscribers will receive (disclosure required by mobile regulations).
list_name *stringList name (no spaces or special characters), e.g. GeneralList.

trumpia_update_list Update distribution list

WRITE: change a distribution list's name, display name, frequency or description. Only the fields you pass change. POST /list/{list_id}.

ParameterTypeDescription
list_id *stringDistribution list id.
descriptionstring
display_namestring
frequencyinteger
list_namestring

trumpia_list_subscriptions List subscription ids

Subscription (contact) ids, newest first. Returns ids only; use trumpia_get_subscription for the details. Pages of 100-10000 ids; next_page is set when a full page came back. GET /subscription.

ParameterTypeDescription
pageintegerPage number from 1 (default 1).
row_sizeintegerIds per page, 100-10000 (default 100).

trumpia_get_subscription Get subscription

One subscription (contact): name, email, mobile and landline (with verified flags), list ids, created date and custom data. Contains personal data. GET /subscription/{subscription_id}.

ParameterTypeDescription
subscription_id *stringSubscription id (from a list or search).

trumpia_search_subscriptions Search subscriptions

Find subscription ids by email, mobile number, landline, country code, created date, first name or last name; optionally within one list. search_data 'all' returns every subscription that has data of that type. Returns ids; use trumpia_get_subscription for details. GET /subscription/search.

ParameterTypeDescription
search_data *stringThe value to find, or 'all' (every subscription that has data of that type; email, mobile and landline only). For search_type created_date a range is required: 'YYYY-MM-DD hh:mm:ss~YYYY-MM-DD hh:mm:ss…
search_type *stringWhich field to search.
list_idstringLimit the search to this distribution list.
pageintegerPage number from 1 (default 1).
row_sizeintegerIds per page, 100-10000 (default 100).

trumpia_add_subscriptions Add subscriptions

WRITE: add contacts to one or more distribution lists (comma-separated list names that already exist). Each contact needs a mobile number, an email or a landline. Only add people who gave express consent to receive messages (TCPA, CAN-SPAM, CTIA rules apply); Trumpia may require a submitted API contract. Returns a request_id; check trumpia_get_request_report. PUT /subscription.

ParameterTypeDescription
list_names *arrayNames of existing distribution lists to add the contacts to.
subscriptions *array1-100 contacts.

trumpia_update_subscription Update subscription

WRITE: change a contact's name, email, mobile, landline, custom data or list membership. Only the fields you pass change. Returns a request_id. POST /subscription/{subscription_id}.

ParameterTypeDescription
subscription_id *stringSubscription id.
customdataarray
emailstring
first_namestring
landlineobject
last_namestring
list_namesarrayExisting distribution list names the contact should be added to.
mobileobject

trumpia_list_custom_fields List custom data fields

All custom data fields (id and name) that can be stored on subscriptions and used as mail-merge values. GET /customdata.

trumpia_get_custom_field Get custom data field

One custom data field: type, options (allowed values, max length), whether required, and its mail-merge text. GET /customdata/{customdata_id}.

ParameterTypeDescription
customdata_id *stringCustom data field id.

trumpia_list_keywords List keywords

All mobile keywords with id, keyword and the short or long code. GET /keyword.

trumpia_get_keyword Get keyword

One mobile keyword in detail: auto-response message, code, alternative messages. GET /keyword/{keyword_id}.

ParameterTypeDescription
keyword_id *stringKeyword id (from trumpia_list_keywords).

trumpia_list_org_names List organization names

Registered organization names as { org_names: [ { org_name_id, name, default } ] } (Trumpia returns a bare array; it is wrapped). The id can be set as org_name_id on messages. GET /orgname.

trumpia_list_email_senders List email sender addresses

Registered email sender addresses (the From / Reply-To addresses allowed for email messages) as { senders: [ { sender_id, address, default } ] } (Trumpia returns a bare array; it is wrapped). GET /email/sender.

trumpia_get_message Get message statistics

Delivery statistics of a message sent with trumpia_send_message: status (sent / scheduled / canceled), totals, sent and failed counts per channel and credits used. GET /message/{message_id}.

ParameterTypeDescription
message_id *stringMessage id returned by trumpia_send_message.

trumpia_list_scheduled_messages List scheduled messages

Messages that are scheduled and not yet sent (id, description, scheduled time, recipient counts). Use offset and limit to page; total_count says how many exist. GET /message/scheduled.

ParameterTypeDescription
limitintegerMessages to return, 1-1000 (default 50).
offsetintegerMessages to skip (default 0).
orderstringscheduled_at = oldest first (default), -scheduled_at = newest first.

trumpia_send_message Send message

WRITE, SENDS REAL MESSAGES that spend credits and cannot be recalled once sent: send an SMS and/or an email to distribution lists or specific subscriptions, now or scheduled (a scheduled one can be cancelled with trumpia_cancel_scheduled_message). Subscribers must have opted in (TCPA, CAN-SPAM, CTIA). Confirm the recipients and text with the user first. Mail merge tokens: [$FirstName], [$LastName], [$FullName], [$CustomData-NAME]. Returns request_id and message_id. PUT /message.

ParameterTypeDescription
description *stringInternal description of the message.
recipient_ids *array1-300 ids (at most 100 lists or 300 subscriptions).
recipient_type *stringWhether recipient_ids are distribution list ids or subscription ids.
email_bodystringEmail body (needs email_subject).
email_reply_tostringReply-to address (a registered sender).
email_subjectstringEmail subject (needs email_body).
mail_merge_first_namestringReplacement when a contact has no first name.
mail_merge_full_namestringReplacement when a contact has no full name.
mail_merge_last_namestringReplacement when a contact has no last name.
org_name_idstringOrganization name id to include in the mobile message (default organization name if omitted).
send_datestringSchedule time as YYYY-MM-DD hh:mm:ss (24-hour clock; the account's time zone). Omit to send immediately.
smsstringSMS text (140 bytes per segment in US/Canada, up to 980 bytes concatenated).

trumpia_send_sms Send direct SMS

WRITE, SENDS A REAL TEXT that spends a credit and cannot be recalled: one SMS to one mobile number without adding the contact first. The recipient must have consented; Trumpia may require API Certification for contacts that have not opted in. Confirm number and text with the user first. Returns request_id and sms_id. PUT /sms.

ParameterTypeDescription
message *stringThe text (the SMS header and footer count toward the length).
mobile_number *stringUS: the 10-digit number without leading 0 or 1. With country_code 0 the number must be E.164 with a leading +, e.g. +17774443210.
country_codestringCountry code (default 1). 0 = infer it from the number, which then must start with +.
org_name_idstringOrganization name id (default organization name if omitted).
senderstringShort/long code or registered landline to send from (default: the account's code).

trumpia_cancel_scheduled_message Cancel scheduled message

WRITE: cancel a message that is scheduled and has not been sent yet (see trumpia_list_scheduled_messages). Does nothing for a message already sent. DELETE /message/scheduled/{message_id}.

ParameterTypeDescription
message_id *stringScheduled message id.