Trumpia MCP by usefulapi
v1.25.1Read 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}.
| Parameter | Type | Description |
|---|---|---|
request_id * | string | The 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}.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | Distribution 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.
| Parameter | Type | Description |
|---|---|---|
description * | string | What the list sends, e.g. 'promo alerts' (max 20 characters). |
display_name * | string | Name subscribers see when they sign up (max 50 characters). |
frequency * | integer | Messages per month subscribers will receive (disclosure required by mobile regulations). |
list_name * | string | List 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}.
| Parameter | Type | Description |
|---|---|---|
list_id * | string | Distribution list id. |
description | string | |
display_name | string | |
frequency | integer | |
list_name | string |
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.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number from 1 (default 1). |
row_size | integer | Ids 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}.
| Parameter | Type | Description |
|---|---|---|
subscription_id * | string | Subscription 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.
| Parameter | Type | Description |
|---|---|---|
search_data * | string | The 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 * | string | Which field to search. |
list_id | string | Limit the search to this distribution list. |
page | integer | Page number from 1 (default 1). |
row_size | integer | Ids 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.
| Parameter | Type | Description |
|---|---|---|
list_names * | array | Names of existing distribution lists to add the contacts to. |
subscriptions * | array | 1-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}.
| Parameter | Type | Description |
|---|---|---|
subscription_id * | string | Subscription id. |
customdata | array | |
email | string | |
first_name | string | |
landline | object | |
last_name | string | |
list_names | array | Existing distribution list names the contact should be added to. |
mobile | object |
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}.
| Parameter | Type | Description |
|---|---|---|
customdata_id * | string | Custom 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}.
| Parameter | Type | Description |
|---|---|---|
keyword_id * | string | Keyword 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}.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Messages to return, 1-1000 (default 50). |
offset | integer | Messages to skip (default 0). |
order | string | scheduled_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.
| Parameter | Type | Description |
|---|---|---|
description * | string | Internal description of the message. |
recipient_ids * | array | 1-300 ids (at most 100 lists or 300 subscriptions). |
recipient_type * | string | Whether recipient_ids are distribution list ids or subscription ids. |
email_body | string | Email body (needs email_subject). |
email_reply_to | string | Reply-to address (a registered sender). |
email_subject | string | Email subject (needs email_body). |
mail_merge_first_name | string | Replacement when a contact has no first name. |
mail_merge_full_name | string | Replacement when a contact has no full name. |
mail_merge_last_name | string | Replacement when a contact has no last name. |
org_name_id | string | Organization name id to include in the mobile message (default organization name if omitted). |
send_date | string | Schedule time as YYYY-MM-DD hh:mm:ss (24-hour clock; the account's time zone). Omit to send immediately. |
sms | string | SMS 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.
| Parameter | Type | Description |
|---|---|---|
message * | string | The text (the SMS header and footer count toward the length). |
mobile_number * | string | US: 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_code | string | Country code (default 1). 0 = infer it from the number, which then must start with +. |
org_name_id | string | Organization name id (default organization name if omitted). |
sender | string | Short/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}.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Scheduled message id. |