Zoko MCP by usefulapi

v1.3.1
io.usefulapi/zoko Checked 3 days ago Published 1 day ago

Read customers, tags, agents, templates and message history; send WhatsApp messages in Zoko.

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

zoko_list_customers List customers

List the customers (contacts) on this Zoko account. Zoko API: GET /v2/customer.

zoko_get_customer Get customer

Get one customer's details by id. Zoko API: GET /v2/customer/{id}.

ParameterTypeDescription
customer_id *stringZoko id (from the list or get tools).

zoko_list_customer_tags List customer tags

List the tags on one customer. Zoko API: GET /v2/customer/{id}/tags.

ParameterTypeDescription
customer_id *stringZoko id (from the list or get tools).

zoko_list_customer_properties List customer properties

List the custom properties set on one customer. Zoko API: GET /v2/customer/{id}/properties.

ParameterTypeDescription
customer_id *stringZoko id (from the list or get tools).

zoko_create_customer_property Create customer property

WRITE: add a new property (a text, image, document or video item) to one customer. Ask the user before creating it. Each call creates a new property, so check zoko_list_customer_properties first. Zoko API: POST /v2/customer/{id}/properties.

ParameterTypeDescription
customer_id *stringZoko id (from the list or get tools).
descriptionstringDetails about the property.
messagesarrayText for type 'text'. File URLs for type 'image', 'document' or 'video'.
priorityintegerDisplay order in the Zoko web app.
titlestringProperty title.
typestringProperty type.

zoko_list_agents List agents

List the agents (team members) on this Zoko account. Zoko API: GET /v2/agent/agents.

zoko_list_teams List teams

List the teams on this Zoko account. Zoko API: GET /v2/agent/teams.

zoko_list_message_templates List message templates

List the approved WhatsApp message templates for this account, with their ids and placeholders. Use a template id with zoko_send_message. Zoko API: GET /v2/account/templates.

zoko_get_message Get message

Get one sent message's details by message id. Zoko API: GET /v2/message/{id}.

ParameterTypeDescription
message_id *stringZoko id (from the list or get tools).

zoko_get_message_history Get message delivery history

Get the delivery history (sent, delivered, read, failed) of one message. Zoko API: GET /v2/message/{id}/history.

ParameterTypeDescription
message_id *stringZoko id (from the list or get tools).

zoko_send_message Send WhatsApp message

Send a WhatsApp message to one customer through Zoko. Sends to a real person: only send with the customer's consent. Use type 'text' with `message` (only inside the 24-hour customer-service window), or type 'template' with `template_id` and optional `template_args` (for any time). Zoko API: POST /v2/message.

ParameterTypeDescription
recipient *stringRecipient phone number, digits only with country code (e.g. 919876543210).
type *string'text' for a free-form message, 'template' for an approved template.
messagestringMessage body (type 'text').
template_argsarrayPlaceholder values for the template, in order (type 'template').
template_idstringApproved template id from zoko_list_message_templates (type 'template').