Available tools
Reference for all 29 Zoie MCP tools: every input parameter with its type, limits and default, the scope each tool requires, its annotations, and the fields it returns.
The Zoie MCP server registers 29 tools. This page lists each one’s input schema as tools/list advertises it, the scope it requires and what it returns. For the same list in plain language, see Available tools in the MCP guides.
Every result is a single text item holding JSON, and every failure is a result with "isError": true — see Tool results and Tool errors.
Summary
The four right-hand columns are the tool’s annotations. Clients use them to decide when to ask the user before a call.
| Tool | Scope | Read-only | Destructive | Idempotent | Open world |
|---|---|---|---|---|---|
list_my_businesses | None | Yes | No | Yes | No |
list_team_members | team:read | Yes | No | Yes | No |
search_leads | leads:read | Yes | No | Yes | No |
get_lead | leads:read | Yes | No | Yes | No |
get_lead_by_phone | leads:read | Yes | No | Yes | No |
get_lead_activity | leads:read | Yes | No | Yes | No |
create_lead | leads:write | No | No | No | No |
update_lead | leads:write | No | Yes | Yes | No |
assign_lead | leads:write | No | Yes | Yes | No |
bulk_update_leads | leads:write | No | Yes | Yes | No |
global_search | search:read | Yes | No | Yes | No |
get_lead_notes | notes:read | Yes | No | Yes | No |
add_lead_note | notes:write | No | No | No | No |
update_lead_note | notes:write | No | Yes | Yes | No |
list_conversation_channels | conversations:read | Yes | No | Yes | No |
get_conversation_by_lead | conversations:read | Yes | No | Yes | No |
send_message | conversations:write | No | Yes | No | Yes |
appointment_calendar | appointments:read | Yes | No | Yes | No |
appointment_overview | appointments:read | Yes | No | Yes | No |
list_appointment_leads | appointments:read | Yes | No | Yes | No |
list_campaigns | campaigns:read | Yes | No | Yes | No |
get_campaign | campaigns:read | Yes | No | Yes | No |
preview_campaign_audience | campaigns:read | Yes | No | Yes | No |
list_campaign_options | campaigns:read | Yes | No | Yes | No |
create_campaign | campaigns:write | No | No | No | Yes |
update_campaign | campaigns:write | No | Yes | Yes | Yes |
start_campaign | campaigns:write | No | No | Yes | Yes |
pause_campaign | campaigns:write | No | No | Yes | Yes |
resume_campaign | campaigns:write | No | No | Yes | Yes |
How scopes are granted is explained in Scopes.
Conventions
Types
| Type in the tables | JSON Schema |
|---|---|
| string | "type": "string" |
| integer | "type": "integer", with the minimum and maximum shown |
| ID | "type": ["string", "number"] — pass a Zoie ID as a number or a string |
| E.164 phone | A string matching ^\+?[1-9]\d{6,14}$: 7 to 15 digits, optional leading +, no spaces or punctuation |
| enum | A string from the listed values. Values are case-sensitive. |
Optional parameters with a default show it in the description. Arguments that aren’t in a tool’s schema are ignored.
Business ID parameter
Most tools take an optional business_id (ID). Its meaning depends on the connection:
- Single-business connection.
business_idis ignored. The tool always uses the business the connection is bound to. - Multi-business connection.
business_idis required on every tool that has it, and must be one of the businesses the user approved. Leaving it out, or passing another business, returns a tool error whosedetail.allowed_business_idslists the valid values. Calllist_my_businessesto see them with their names.
Tools without a business_id parameter act on a record ID. The Zoie API checks that the user’s role can reach that record. get_lead and get_lead_by_phone also refuse to return a lead from a business the connection doesn’t cover.
Account and team
list_my_businesses
Lists the businesses the user belongs to and shows which of them this connection covers. Needs no scope.
Parameters: none.
Returns: user (id, email); memberships — every business the user belongs to, each with business_id, business_name, business_industry, role_id, role_name and display_name; active_business_id for a single-business connection, otherwise null; allowed_business_ids for a multi-business connection, otherwise null; and a note explaining which applies.
list_team_members
Lists the users in the business and their roles, to name an assignee or pick someone for assign_lead.
| Parameter | Type | Required | Description |
|---|---|---|---|
business_id | ID | See Business ID parameter |
Returns: business_id and members, each with user_id, full_name, email, activated, role_id, role_name, display_name and invitation_accepted.
Leads
Lead records are trimmed to these fields, where present: id, first_name, last_name, email, phone_number, lead_status, appointment_status, appointment_date_time, service, service_value, lead_type, lead_source, labels, assigned_id, assigned_type, business_id, campaign_id, is_duplicate, is_related, createdAt, created_on, updatedAt, updated_on and last_contacted_at, plus assigned_user_name when the assignee is known. assigned_id is a user ID when assigned_type is user, and an AI agent ID otherwise.
search_leads
Searches leads in the business.
| Parameter | Type | Required | Description |
|---|---|---|---|
search | string | No | Free-text search across name, email and phone. Leave it out to list all leads. |
page | integer, min 1 | No | Default 1. |
limit | integer, 1–100 | No | Default 20. |
lead_type_filter | array of enum: related | No | ["related"] returns only related leads. |
business_id | ID | See Business ID parameter |
Returns: Zoie’s paginated lead list, with each lead trimmed to the fields above.
get_lead
Fetches one lead by its Zoie ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | ID | Yes | The lead’s Zoie ID. |
Returns: the trimmed lead. A lead from a business outside the connection is refused with a tool error, for example Refusing to return record from business 77: token is bound to business 214.
get_lead_by_phone
Finds a lead by phone number.
| Parameter | Type | Required | Description |
|---|---|---|---|
phone | E.164 phone | Yes | For example +15551234567. |
business_id | ID | See Business ID parameter |
Returns: the trimmed lead, with the same business check as get_lead.
get_lead_activity
Returns a lead’s activity timeline, such as status changes, assignments, notes and appointment events.
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | ID | Yes | The lead’s Zoie ID. |
Returns: activity entries trimmed to id, lead_id, activity_type, activity_name, diff_summary, created_on, created_by, updated_on and updated_by. The full before-and-after data of each change isn’t returned.
create_lead
Creates a lead in the business.
| Parameter | Type | Required | Description |
|---|---|---|---|
first_name | string, min 1 character | Yes | |
last_name | string | No | |
email | string, email format | No | |
phone_number | E.164 phone | No | |
service | string | No | The service the lead is interested in. |
service_value | string | No | Internal service code. Leave it out if unknown. |
lead_status | string | No | One of the business’s lead statuses. |
lead_source | string | No | |
notes | string | No | |
labels | array of strings | No | Saved as one comma-separated value. |
campaign_id | ID | No | |
business_id | ID | See Business ID parameter |
Returns: Zoie’s response for the new lead, unchanged.
update_lead
Changes fields on one lead. Only the fields you pass change.
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | ID | Yes | The lead to change. |
first_name | string | No | |
last_name | string | No | |
email | string, email format | No | |
phone_number | E.164 phone | No | |
lead_status | string | No | |
appointment_status | string | No | |
service | string | No | |
service_value | string | No | |
labels | array of strings | No | Replaces the lead’s labels with this list. |
assigned_id | ID | No |
Returns: Zoie’s response, unchanged.
assign_lead
Assigns one lead to a user. Call it once per lead to assign several.
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | ID | Yes | |
user_id | ID | Yes | A user_id from list_team_members. |
Returns: Zoie’s response, unchanged.
bulk_update_leads
Applies the same change to several leads.
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_ids | array of IDs, min 1 | Yes | |
lead_status | string | No | |
labels | array of strings | No | Replaces each lead’s labels with this list. |
service | string | No |
Returns: Zoie’s response, unchanged.
Search
global_search
Searches across leads, appointments, conversations and deals in the business.
| Parameter | Type | Required | Description |
|---|---|---|---|
search | string, 1–200 characters | Yes | A name, number, email or other text. |
page | integer, min 1 | No | Default 1. |
limit | integer, 1–100 | No | Default 20. |
business_id | ID | See Business ID parameter |
Returns: Zoie’s search results, unchanged (not trimmed).
Notes
Notes are trimmed to id, lead_id, content, user_id, created_by, created_on, updated_at and updated_by.
get_lead_notes
Lists a lead’s notes, newest first.
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | ID | Yes | |
page | integer, min 1 | No | Default 1. |
limit | integer, 1–50 | No | Default 20. |
Returns: lead_id, page, limit, total, totalPages and notes. The server fetches all of the lead’s notes and pages them itself.
add_lead_note
Adds a note to a lead. Everyone in the business can see it.
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | ID | Yes | |
content | string, 1–10,000 characters | Yes |
Returns: the trimmed note.
update_lead_note
Replaces the text of an existing note.
| Parameter | Type | Required | Description |
|---|---|---|---|
note_id | ID | Yes | |
content | string, 1–10,000 characters | Yes | The new text. |
Returns: the trimmed note.
Conversations
list_conversation_channels
Lists the messaging channels Zoie supports and what each needs.
Parameters: none.
Returns: Zoie’s channel list, unchanged.
get_conversation_by_lead
Fetches the message history with a lead.
| Parameter | Type | Required | Description |
|---|---|---|---|
lead_id | ID | Yes | |
record_type | enum: SMS, WhatsApp, Webchat, Instagram, FacebookMessenger | No | Only this channel. Leave it out for all channels. |
business_id | ID | See Business ID parameter |
Returns: the thread, with each message trimmed to id, lead_id, record_type, direction, sender_type, sender_id, message_text, has_media and sent_at. message_text is cut to 1,000 characters, and media links are replaced by the has_media flag.
send_message
Sends a real message to a lead. It may cost money, and its own rate limit applies: 10 calls per minute per user, by default.
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | enum: SMS, WhatsApp, Email, FacebookMessenger, Instagram | Yes | |
message | string, 1–10,000 characters | Yes | The message body. |
lead_id | ID | One of lead_id or to | An existing lead. |
to | string | One of lead_id or to | The destination: an E.164 phone for SMS and WhatsApp, an email address for Email, an Instagram-scoped user ID for Instagram. If no lead_id is given, Zoie finds or creates the lead from it. |
subject | string | For Email | Ignored for other channels. |
html | string | No | HTML body for Email. |
business_id | ID | See Business ID parameter |
Before calling Zoie, the tool refuses a call with neither lead_id nor to, a to in the wrong format for the channel, or an Email without subject.
Returns: Zoie’s send response, unchanged.
Appointments
Appointment records are leads trimmed to id, first_name, last_name, email, phone_number, lead_status, appointment_status, appointment_date_time, service, service_value, assigned_id, business_id and created_on, plus assigned_user_name when known.
appointment_calendar
Returns the appointments in a calendar window.
| Parameter | Type | Required | Description |
|---|---|---|---|
view | enum: month, week, day | No | Default month. Zoie snaps the range to the view. |
start | string | Yes | ISO date for the start of the window, for example 2026-10-01. |
end | string | Yes | ISO date for the end of the window. |
business_id | ID | See Business ID parameter |
Returns: appointmentData, the appointments in the window, trimmed as above. If the window has no appointments, the result text is "".
appointment_overview
Returns appointment counts with the business’s upcoming and past appointments.
| Parameter | Type | Required | Description |
|---|---|---|---|
search | string | No | Narrows the figures by free text. |
business_id | ID | See Business ID parameter |
Returns: overview, with the counts total_appointments, total_noShow, confirmed_appointments, not_confirmed_appointments, today_appointments, today_confirmed_appointments, today_not_confirmed_appointments, total_appointments_ai, total_appointments_human, today_appointments_ai and today_appointments_human; and upcomingAppointments (confirmed, soonest first) and pastAppointments (most recent first).
list_appointment_leads
Lists leads that have an appointment.
| Parameter | Type | Required | Description |
|---|---|---|---|
search | string | No | The text or status to match. |
searchType | enum: status, lead, text | No | status matches search against the appointment status, lead against the lead status, text as free text. |
page | integer, min 1 | No | Default 1. |
limit | integer, 1–100 | No | Default 20. |
business_id | ID | See Business ID parameter |
Returns: the leads, trimmed as above.
Campaigns
Campaigns are trimmed to id, campaign_name, campaign_status, campaign_schedule (a UTC instant), campaign_schedule_tf (whether it is scheduled), campaign_chanels, campaign_sent_to, campaign_number_of_recipient, enable_ai and business_id. A campaign’s status is one of Scheduled, In progress, Executing, Paused, Finished or Failed.
Audience filters
preview_campaign_audience, create_campaign and update_campaign take filters, an array of filter objects:
| Field | Type | Required | Description |
|---|---|---|---|
field | enum: status, label, type, source, assignee, phone, first_name, last_name, email, lead | Yes | status is the lead status, label the labels, type the lead type, source the lead’s website source, assignee the assigned user, phone the phone number. lead picks specific leads. |
condition | enum: is, is not, contains, does not contain, greater than, greater than or equal, less than, less than or equal, is after, is before, in, not in, between, is empty, is not empty | Yes | |
value | string, number, array of strings or numbers, or array of { "id": ID } | Except for is empty and is not empty | For lead, pass an array of { "id": … } objects. Use an array for in, not in and between. |
Two filters on the same field with the same is, contains or in condition match either value; other combinations must all match. Leads who have opted out of the channel are always excluded.
[
{ "field": "status", "condition": "is", "value": "New" },
{ "field": "label", "condition": "contains", "value": "VIP" }
]
list_campaigns
Lists campaigns in the business.
| Parameter | Type | Required | Description |
|---|---|---|---|
status | enum: All, In Progress, Completed, Scheduled, Failed | No | Default All. |
type | string | No | Channel, for example SMS or Email. Leave it out, or pass All, for every channel. |
search | string | No | Matches the campaign name. |
page | integer, min 1 | No | Default 1. |
limit | integer, 1–100 | No | Default 20. |
business_id | ID | See Business ID parameter |
Returns: Zoie’s campaign list, unchanged.
get_campaign
Reads one campaign’s current state.
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | ID | Yes | |
business_id | ID | See Business ID parameter |
Returns: the trimmed campaign. For a scheduled campaign it adds schedule_business_local (the same moment as a wall clock in the business’s time zone, for example 2026-10-05T09:00:00) and timezone. An unknown ID returns the tool error Campaign 991 was not found.
preview_campaign_audience
Counts the leads a set of filters would reach, without creating anything.
| Parameter | Type | Required | Description |
|---|---|---|---|
channel | enum: sms, email, whatsapp, aicall | Yes | Opt-outs are applied for this channel. |
filters | array of audience filters, min 1 | Yes | |
business_id | ID | See Business ID parameter |
Returns: channel, count and max_recipients (the cap create_campaign applies, 500 by default).
list_campaign_options
Looks up the IDs create_campaign needs.
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | enum: ai_agents, whatsapp_templates, phone_numbers, whatsapp_senders, email_senders, email_templates | Yes | |
business_id | ID | See Business ID parameter |
Returns: kind, business_id and up to 100 options:
kind | Each option has | Notes |
|---|---|---|
ai_agents | agent_id, agent_name | Demo agents are left out. |
whatsapp_templates | sid, friendly_name, language, variables | Approved templates only. |
phone_numbers | id, phone_number, provider_name, enable_ai_sms | |
whatsapp_senders | sender_id, sid, phone_number, sender, status | Online senders only. |
email_senders | id, from_email, from_name, is_default | Senders available to the user. |
email_templates | id, template_name, subject |
create_campaign
Creates an SMS, email, WhatsApp or AI call campaign that sends now or at a scheduled time. Real messages go out.
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_name | string, 1–200 characters | Yes | |
channel | enum: sms, email, whatsapp, aicall | Yes | |
send_now | boolean, only true | Exactly one of send_now or schedule_at | Sends within a minute. |
schedule_at | string | Exactly one of send_now or schedule_at | A wall clock in the business’s time zone, YYYY-MM-DDTHH:mm (seconds optional), 24-hour. A trailing Z or UTC offset is refused. Must be at least 5 minutes ahead. |
filters | array of audience filters, min 1 | Yes | Targeting every lead in the business isn’t allowed. |
message | string, up to 10,000 characters | For sms | The body. For email, used when there’s no email_template_id. WhatsApp fallback text. Supports variables such as {{first_name}}. |
from_phone_number | string | No | SMS or AI call from-number (kind: phone_numbers). |
enable_ai | boolean | No | SMS only: let the AI agent handle replies. |
agent_id | string | For aicall | AI agent (kind: ai_agents). Optional for AI-enabled SMS. |
email_subject | string, up to 500 characters | For email | |
email_template_id | ID | For email, unless message is given | kind: email_templates. |
from_email | string, email format | No | Sender address (kind: email_senders). |
whatsapp_template_id | string | For whatsapp | Approved template content SID, starting HX (kind: whatsapp_templates). |
whatsapp_template_name | string | For whatsapp | |
twilio_content_variables | object of strings | No | Template variables, for example {"1": "July offer"}. |
sms_from_phone_id | ID | No | WhatsApp sender (kind: whatsapp_senders). |
business_id | ID | See Business ID parameter |
Before creating anything, the tool:
- Checks that exactly one of
send_nowandschedule_atis given, and that the channel’s required fields are present. - For
schedule_at, reads the business’s time zone and converts the wall clock to an instant, allowing for daylight saving on that date. A business with no valid time zone can’t schedule — the tool asks for it to be set in Zoie, or forsend_now. - Previews the audience and refuses 0 leads or more than the cap (500 by default).
Returns: campaign (trimmed), audience_count, scheduled_for (business_local, timezone, utc) for scheduled campaigns, and a note. A send-now campaign is In progress; a scheduled one is Scheduled.
update_campaign
Renames, reschedules, rewrites or retargets an existing campaign. Rescheduling a Scheduled campaign to a later time is also how to postpone it.
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | ID | Yes | |
campaign_name | string, 1–200 characters | No | |
schedule_at | string | No | Same format and rules as in create_campaign. |
filters | array of audience filters, min 1 | No | Replaces the audience. Requires channel. |
channel | enum: sms, email, whatsapp, aicall | With filters | The campaign’s channel, used to preview the new audience. |
message | string, up to 10,000 characters | No | |
email_subject | string, up to 500 characters | No | |
business_id | ID | See Business ID parameter |
At least one of campaign_name, schedule_at, filters, message or email_subject is required. The tool reads the campaign first and keeps its current schedule and AI setting unless you change them, refuses a campaign that belongs to another business, and previews and caps a new audience. It never restarts a Paused campaign — use resume_campaign or start_campaign.
Returns: campaign (trimmed) and, when rescheduled, scheduled_for and a note.
start_campaign
Starts an existing campaign now.
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | ID | Yes | |
business_id | ID | See Business ID parameter |
| Current status | Result |
|---|---|
Scheduled | The schedule moves to now and sending starts within a minute. |
Paused | The campaign resumes. |
In progress, Executing | Nothing changes. Returns started: false. |
Finished, Failed | Refused. Create a new campaign instead. |
Campaigns recorded with more recipients than the cap (500 by default) are refused, and so are campaigns from another business.
Returns: campaign (trimmed), started, previous_status and a note.
pause_campaign
Pauses a running campaign. Sending stops until it is resumed.
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | ID | Yes |
Returns: Zoie’s response, unchanged.
resume_campaign
Resumes a paused campaign.
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | ID | Yes |
Returns: Zoie’s response, unchanged.
What there are no tools for
There are no tools to book, reschedule or cancel appointments, read call logs or recordings, place calls, run reports, delete records, or change settings, AI agents, phone numbers, users or billing. See What there are no tools for in the MCP guides.