Smarter ContactSmarter ContactDevelopers
ConnectSI

Connect an AI agent (MCP)

Smarter Contact runs a remote MCP server. Any MCP client (Claude, ChatGPT, Grok, Cursor, Codex, Gemini CLI, VS Code, Devin, or your own agent) can connect to it. Step-by-step setup per client is on the MCP tab of the ConnectSI page.

Server URL: https://api.smartercontact.com/rest/mcp

Tools

Tool What it does Scope Inputs
read_contact Read one contact: status (active, or deleted when it is in the Deleted folder), name, phone, email, opt-out state, standard fields (address, city, state, zip…) and label_ids, the ids of its labels. contacts:read contact_id
list_contacts Find the contact with this exact phone in the connected account. Returns items, empty when no contact has that phone. A deleted contact is returned with status deleted. Sub-accounts are not searched. contacts:read phone (E.164 like +12025550123, or a US national number)
list_conversations Your conversations, most recently active first, to triage the inbox and find contact ids: contact id, account id, name, email, phone. conversations:read category (all by default, unread, missed_calls, unreplied, awaiting_reply, opted_out, deleted), limit (1 to 100, default 25), next_page_token from the previous page, mark_read (true marks every conversation on the returned page read, default false; a primary account's list has only its own conversations, so its sub-accounts' conversations are never marked here; the response then has marked_read, and when it is false a marked_read_reason: no_conversation when a contact has no conversation yet, not_marked when a conversation could not be marked)
read_conversation Message history with one contact, newest first. Each item has direction (incoming or outgoing), status (sent, delivered, undelivered or failed for a message; see calls below), type (sms, mms, vmd for a voicemail drop, or call), source (campaign, workflow or direct, which covers one-to-one texts, API and MCP sends and AI draft replies), from_number and to_number (E.164 when known; outgoing: from_number is your number, incoming: to_number is your number), content with the typed text only (empty for an MMS with only files and for a vmd) and attachments, a list of index, content_type and url (empty when the message has none). Each url is a signed download link valid for one week from the call; read the conversation again for fresh links. Calls are items with type call, direction, status missed or completed, duration_seconds only when the call connected and, for outgoing dialer calls, dialer_campaign_name. An unanswered dialer call reads as missed. A 1:1 call still in progress reads as completed without duration_seconds. conversations:read contact_id, limit (1 to 100, default 50), next_page_token from the previous page, mark_read (true marks the conversation read, including a sub-account's conversation when you are its primary account, default false; the response then has marked_read, and when it is false a marked_read_reason: no_conversation when the contact has no conversation yet, not_marked when the conversation could not be marked)
generate_draft Write a reply draft for a conversation with SI. Nothing is sent: pass the text to send_reply. See SI drafts. drafts:write conversation_id, user_draft, prior_drafts, mode
send_reply Reply to a contact who wrote first. messages:write contact_id, content
set_conversations_read Mark the named conversations read or unread, as Messenger does. Nothing is sent. See Marking conversations read. conversations:write contact_ids (1 to 100), read (true or false)
list_labels The account's labels, in the order Label management shows them: id, name and types (messaging, calling or both). Use the ids with set_contact_labels. A primary account lists only its own labels. contacts:read type (messaging or calling, both when absent), limit (1 to 100, default 50), next_page_token from the previous page
list_workflows The account's contact workflows, in the order the Contact workflows page shows them: id, name, created_at and messages in sending order. Each message has body (the text sent, with its {placeholders}), delay_days (whole days to wait after the previous message, or after enrollment for the first one), delivery_window (days, 1 Monday to 7 Sunday, and from and to as HH:mm, in the contact's timezone) and reply_action (null when the message has none, otherwise when, one of reply, sms_reply, call_reply or no_reply, and group_id and label_id, the group and label the contact is then moved to, null when not set; list_labels gives label names). Billed as one API call per page. workflows:read limit (1 to 100, default 50), next_page_token from the previous page
list_contact_enrollments What one contact is enrolled in: items, each with resource, resource_id and resource_name. Only workflows for now, so resource is workflows and there is at most one item. An empty items means the contact is not enrolled in any workflow. Billed as one API call, also when empty. See Reading a contact's workflow. workflows:read contact_id
enroll_contact_in_workflow Enroll one contact in a contact workflow, from the contact's current outgoing number. Refused when the contact is already in another workflow, naming it. Billed as one API call plus the workflow's messages. See Enrolling a contact in a workflow. workflows:write workflow_id (from list_workflows), contact_id
remove_contact_from_workflow Remove a contact from a workflow. Its messages not sent yet are unscheduled and refunded; sent messages stay. Nothing is sent. See Removing a contact from a workflow. workflows:write workflow_id (from list_workflows), contact_id
set_contact_labels Replace the labels of one contact with exactly label_ids. Nothing is sent. See Setting contact labels. metadata:write contact_id, label_ids (an empty array removes every label)
read_contact_fields Read every standard field of one contact, as the Info tab shows them: id, name and value, an empty value when it is not set. Use the ids with set_contact_fields. See Setting contact fields. contacts:read contact_id
set_contact_fields Set, change or clear standard fields of one contact by id, as saving the Info tab does. Nothing is sent. See Setting contact fields. metadata:write contact_id, fields (an object mapping each field id to its new value; an empty string clears it)
create_contact Create a contact in the connected account. Nothing is sent. See Creating a contact. contacts:write phone (E.164 like +12025550123, or a US national number), first_name, last_name, email (all optional, may be empty)
list_webhooks Your webhook endpoints: name, active or inactive, subscribed events, shortened URL. Read-only. webhooks:read none
get_si_settings Read the account's SI Agent settings that shape every SI draft: playbook, writing_style and tone. See SI settings. drafts:write none
update_si_settings Change the account's SI Agent playbook, tone or both, as on the SI Agent settings page. See SI settings. drafts:write playbook, tone (at least one)

The tools return the same data as the API reference. tools/list only shows the tools your sign-in granted a scope for.

The server speaks Streamable HTTP over POST only, one JSON-RPC message per request (no batches). It keeps no session between requests.

Sign-in

There is no API key. When you add the server, your client opens a Smarter Contact sign-in and a consent screen that lists what the client is asking for (Read a contact, List and read conversations, Mark conversations as read or unread, Send a reply, Generate an SI draft, Set labels and properties on a contact, Create a contact, List workflows, Add and remove contacts in workflows, Read webhooks list). You approve it once. Clients discover everything they need from https://api.smartercontact.com/.well-known/oauth-protected-resource/rest/mcp.

The account owner accepts the Smarter Contact Terms of Service (sign in to the app to accept them) first. Until then every request to the server, initialize included, is refused with HTTP 403 terms_not_accepted.

Auto-reply

Your AI client cannot listen for new messages and Smarter Contact cannot wake it. Real-time auto-reply needs an endpoint that is active and subscribed to message.received.v1 (check with list_webhooks), pointing at your own n8n, Zapier, Make or server. On each event the automation calls read_conversation, then generate_draft, then send_reply with the draft text unless blocked is true. The setup steps are in the n8n auto-reply recipe.

Sending replies safely

send_reply sends a real SMS from your account.

SI drafts

generate_draft writes a reply draft for a conversation. It needs the drafts:write scope, shown as "Generate an SI draft" when you sign in. A client connected before that scope existed does not see generate_draft until you reconnect it and approve the new permission.

A draft is text only. Nothing is sent. To send it, pass text to send_reply.

One draft per contact generates at a time. The call returns once the draft is done, usually within seconds. While it generates, anyone with that contact open in Messenger sees the SI draft loading state.

Inputs

Input Required What it does
conversation_id yes The conversation id, equal to the contact id.
user_draft no Text you already wrote. It is checked against the banned-word list before anything is generated.
prior_drafts no Drafts you already showed for this turn, so the next one differs.
mode no Leave it out: the draft is a followup when your message or a missed call from the contact was last, and a rewrite when user_draft is set. Set it only to override: generate, followup, rewrite or followup_rewrite (the rewrite modes need user_draft).

Context. The draft is written from the contact's recent message history, their standard and custom fields, their notes, and your account's SI tone and playbook settings.

Response. { "text": "...", "blocked": false }. When SI decides a person should handle the conversation, you get { "text": "", "blocked": true, "message": "Needs human attention" }. Do not send anything in that case.

Refused when

Billing. Each call counts as one API call plus one SI draft.

Marking conversations read

set_conversations_read marks the conversations you name read (read: true) or unread (read: false), the same as POST /conversations/v1/read. It needs the conversations:write scope, shown as "Mark conversations as read or unread" when you sign in; conversations:read cannot call it. A client connected before that scope existed does not see set_conversations_read until you reconnect it once and approve the new permission.

Response. { "contact_ids": [...], "read": true }, with the ids marked, without duplicates, sorted.

Refused when (nothing changes in any of these cases)

Setting contact labels

set_contact_labels replaces the labels of one contact with exactly label_ids, the same as PUT /contacts/v1/{id}/labels. It needs the metadata:write scope, shown as "Set labels and properties on a contact" when you sign in. A client connected before that scope existed does not see set_contact_labels until you reconnect it once and approve the new permission.

Response. { "contact_id": "...", "label_ids": [...] }, with the labels the contact has now, without duplicates.

Refused when (nothing changes in any of these cases)

Setting contact fields

read_contact_fields and set_contact_fields read and change the standard fields of one contact, the ones its Info tab shows (name, email, phone, address, city, state, zip and their mailing versions), the same as GET and PUT /contacts/v1/{id}/fields. Custom fields and real estate property fields are not available through these tools yet.

Response. Both tools return { "contact_id": "...", "fields": [{ "id": "...", "name": "...", "value": "..." }] }, every standard field of the contact, after the change for set_contact_fields.

Refused when (nothing changes in any of these cases)

Creating a contact

create_contact creates a contact in the connected account, the same as POST /contacts/v1. It needs the contacts:write scope, shown as "Create a contact" when you sign in. A client connected before that scope existed does not see create_contact until you reconnect it once and approve the new permission.

Response. The created contact, in the same shape as read_contact.

Refused when (nothing is created in any of these cases)

Reading a contact's workflow

list_contact_enrollments tells you which workflow a contact is in, the same as GET /contacts/v1/{id}/enrollments. It needs the workflows:read scope. A client that does not show list_contact_enrollments yet gets it after you reconnect it once.

Response. { "items": [ { "resource": "workflows", "resource_id": "...", "resource_name": "Seller follow-up" } ] }. When the contact is not enrolled in any workflow: { "items": [], "message": "This contact is not enrolled in any workflow." }.

Refused when (nothing is billed in any of these cases)

Enrolling a contact in a workflow

enroll_contact_in_workflow enrolls one contact in a contact workflow, the same as POST /workflows/v1/{id}/enrollments. The workflow's messages are scheduled as the workflow is configured. It needs the workflows:write scope, shown as "Add and remove contacts in workflows" when you sign in. A client connected before that scope existed does not see enroll_contact_in_workflow until you reconnect it once and approve the new permission.

Response. { "workflow_id": "...", "workflow_name": "...", "contact_id": "...", "created_at": "..." }. created_at is when the contact was enrolled, and may be absent when a repeat returns an existing enrollment.

Refused when (nothing is scheduled or charged in any of these cases)

Billing. A new enrollment counts as one API call, plus the workflow's messages, charged as in the app: Free SMS credits first, then the wallet, on that day's Contact workflows item in Billing history. A sub-account, or a brand under centralized billing, is charged to the primary account's wallet. A refused call and a repeat into the same workflow are not billed.

Removing a contact from a workflow

remove_contact_from_workflow removes a contact from a workflow, the same as DELETE /workflows/v1/{id}/enrollments/{contact_id}. It needs the workflows:write scope, shown as "Add and remove contacts in workflows" when you sign in. A client connected before that scope existed does not see remove_contact_from_workflow until you reconnect it once and approve the new permission.

Response. { "workflow_id": "...", "contact_id": "..." }, the same for a removal and for a contact that was not in the workflow.

Refused when (nothing changes in any of these cases)

SI settings

get_si_settings and update_si_settings read and change the account's SI Agent settings, the same as GET and PATCH /si-settings/v1. The next SI drafts, in the app and through the API, use them. Both need the drafts:write scope and a subscription that includes SI drafts (403 si_drafts_not_available otherwise).

Response. { "playbook": "re", "writing_style": "proven", "tone": "friendly" }, after the change for update_si_settings.

Refused when (nothing changes in any of these cases)

Billing. Each call counts as one API call.

Sessions

Every connected client appears on the Sessions tab of the ConnectSI page, with what it can do and when it was last used. Revoke it there and it loses access immediately. An account can have up to 50 connected clients; past that, signing in a new one fails. To connect a client step by step, see how to connect an AI client.

Limits

Errors

A refused tool call is a tool result with isError: true whose text is JSON, the same body as the API reference: {"code":"...","reason":"...","message":"..."}, plus retry_after_seconds on too_many_requests. code is generic and follows the HTTP status; branch on reason, which is absent when there is none. message is for people and can change.

Code Reasons Tools
bad_request invalid_phone (Invalid phone number) list_contacts
bad_request invalid_category list_conversations
bad_request invalid_limit, invalid_page_token, invalid_mark_read list_conversations, read_conversation
bad_request content_required, contact_opted_out, contact_on_dnc, contact_no_sms, contact_cannot_be_messaged, sms_quota_reached, sender_number_unavailable (the number last used with this contact no longer belongs to your account, or the account has no sending number) send_reply
bad_request content_not_allowed (the text has words that are not allowed) send_reply, generate_draft
bad_request invalid_draft_mode, invalid_prior_drafts, and no reason when the contact is unreachable for compliance, has a landline number or has no message history generate_draft
bad_request invalid_contact_ids, too_many_contact_ids, invalid_read set_conversations_read
bad_request invalid_label_type, invalid_limit, invalid_page_token list_labels
bad_request invalid_limit, invalid_page_token list_workflows
bad_request invalid_label_ids, too_many_label_ids set_contact_labels
bad_request invalid_field_values, custom_field_not_supported, field_read_only, value_too_long, required_field, invalid_format set_contact_fields
bad_request invalid_phone, value_too_long, invalid_format, contact_opted_out, contact_cannot_be_messaged create_contact
bad_request required_field, contact_opted_out, contact_cannot_be_messaged, contact_no_sms, contact_on_dnc, sender_number_required (the contact has no usable outgoing number) enroll_contact_in_workflow
bad_request invalid_playbook, invalid_tone, settings_required update_si_settings
payment_required insufficient_balance (the balance does not cover the call) all
forbidden scope_denied (the sign-in did not grant the tool's scope) all
forbidden reply_required, ten_dlc_not_approved (the sending account's messaging registration (10DLC) is not approved yet) send_reply
forbidden si_drafts_not_available (the subscription does not include SI drafts) generate_draft, get_si_settings, update_si_settings
forbidden sub_account_contact (a primary account asked for a sub-account's contact) generate_draft, list_contact_enrollments, enroll_contact_in_workflow, remove_contact_from_workflow
forbidden workflows_not_available (the subscription does not include contact workflows), ten_dlc_not_approved, ten_dlc_in_review (the messaging registration (10DLC) is not approved yet, or is still in review) enroll_contact_in_workflow
conflict phone_taken create_contact
conflict already_enrolled (the contact is in another workflow; the error also carries its workflow_id) enroll_contact_in_workflow
not_found contact_not_found (no contact with this id in your account or its sub-accounts) read_contact, read_conversation, send_reply, generate_draft, set_conversations_read, set_contact_labels, read_contact_fields, set_contact_fields, list_contact_enrollments, enroll_contact_in_workflow, remove_contact_from_workflow
not_found workflow_not_found (no workflow with this id in your account) enroll_contact_in_workflow, remove_contact_from_workflow
not_found label_not_found set_contact_labels
not_found field_not_found set_contact_fields
too_many_requests reply_too_soon, rate_limited (another send to this contact is in progress) send_reply
too_many_requests draft_in_progress generate_draft
internal_error draft_generation_failed generate_draft

A tool name the server does not know is a tool error whose text is plain Unknown tool: <name>, not JSON. Any other unexpected failure inside a tool is not a tool result: it is a JSON-RPC error with the message Internal server error. Errors before a tool runs (sign-in unauthorized, forbidden for the account, forbidden with scope_undeclared for an internal misconfiguration that should not happen, the 429 rate_limited above) are HTTP responses with the same JSON body. Protocol errors (a batch, a GET) stay JSON-RPC errors.