api
v0.2.1Compliant political SMS/MMS from MCP clients: projects, contacts, analytics, billing.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_organizations
List all organizations visible to the API key, including their status and parent organization. Also useful as a credential check.
get_hierarchy
Get the full organization hierarchy tree visible to the API key, including nested child organizations and their brands.
| Parameter | Type | Description |
|---|---|---|
organization_id | string | Filter to a specific descendant organization |
list_projects
List messaging projects (a project is one composed send: message text, sending numbers, and contact lists). Optionally filter by organization, brand, or campaign.
| Parameter | Type | Description |
|---|---|---|
brand_id | string | Filter to a specific brand |
campaign_id | string | Filter to a specific campaign |
organization_id | string | Filter to a specific descendant organization |
get_project
Get one project by ID with its full configuration: status, channel, message text, phone numbers, contact lists, link tracking settings, and schedule.
| Parameter | Type | Description |
|---|---|---|
id * | string | Resource ID |
get_project_stats
Get delivery and engagement stats for one project: sent, delivered, undeliverable, replies, opt outs, clicks, and the derived rates.
| Parameter | Type | Description |
|---|---|---|
id * | string | Resource ID |
list_contact_lists
List contact lists with their contact counts and import status. Optionally filter by organization or brand.
| Parameter | Type | Description |
|---|---|---|
brand_id | string | Filter to a specific brand |
organization_id | string | Filter to a specific descendant organization |
get_contact_list
Get one contact list by ID, including import progress and list analysis results when available.
| Parameter | Type | Description |
|---|---|---|
id * | string | Resource ID |
get_message_stats
Get aggregate message stats (totals and daily breakdown) for a date range, optionally filtered by organization, brand, or campaign.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | End date in YYYY-MM-DD format |
start_date * | string | Start date in YYYY-MM-DD format |
brand_id | string | Filter to a specific brand |
campaign_id | string | Filter to a specific campaign |
organization_id | string | Filter to a specific descendant organization |
get_ledger_usage
Get billing usage totals and per-category breakdown from the ledger for a date range, optionally filtered to a descendant organization.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | End date in YYYY-MM-DD format |
start_date * | string | Start date in YYYY-MM-DD format |
organization_id | string | Filter to a specific descendant organization |
create_project
Create a new messaging project (a draft send). Requires the owning organization, a name, protocol (sms or mms), sending phone number IDs, contact list IDs, and the message text. For channel=10dlc also pass brand_id and campaign_id; for channel=toll-free pass toll_free_verification_id. Creating a project does not send messages by itself.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run this write operation. Set it only after the user has explicitly confirmed. |
contact_list_ids * | array | Contact list IDs to send to |
message_text * | string | The message body to send |
name * | string | Project name |
organization_id * | string | Owning organization ID |
phone_number_ids * | array | Sending phone number IDs (1-49) |
protocol * | string | Message protocol |
brand_id | string | Required when channel=10dlc |
campaign_id | string | Required when channel=10dlc |
channel | string | Messaging channel. Defaults to 10dlc. |
link_tracking_destination_url | string | Destination URL for tracked links |
link_tracking_domain_id | string | Tracking domain ID |
link_tracking_enabled | boolean | Enable link tracking |
link_tracking_param_field | string | Contact field appended as a redirect query param on tracking links |
media_ids | array | Media file IDs for MMS |
suppression_list_ids | array | Contact list IDs to suppress |
toll_free_verification_id | string | Required when channel=toll-free |
test_project
Send real test messages for a project to up to 50 explicit phone numbers. This delivers actual SMS or MMS to those recipients and incurs cost.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run this write operation. Set it only after the user has explicitly confirmed. |
id * | string | Resource ID |
phones * | array | Recipient phone numbers for the test send |
schedule_project
Schedule a project to send to its full contact lists at a specific date and time. This commits a real bulk send to every contact on the lists once the scheduled time arrives.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to run this write operation. Set it only after the user has explicitly confirmed. |
id * | string | Resource ID |
scheduled_at * | string | ISO 8601 date-time at which to send |
scheduled_timezone * | string | IANA timezone name, for example America/New_York |
unschedule_project
Remove the schedule from a project so it will not send. Safe to call repeatedly; the project returns to an unscheduled state.
| Parameter | Type | Description |
|---|---|---|
id * | string | Resource ID |
copy_project
Copy an existing project into a new draft. The copy keeps the message, phone numbers, and settings but drops contact lists, schedule, and stats, and gets a versioned name (X becomes X_v2). Copying never sends messages.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | ID of the project to copy |
archive_project
Archive a completed project so it no longer appears in default project listings. Only projects in completed status can be archived; other statuses are rejected with INVALID_STATE_TRANSITION.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | ID of the project to archive |