Skip to content

MCP tools

Generated from the server’s tool list. Each tool states the scope it needs.

list_knowledge_bases

List the knowledge bases this key can use, with their languages and content counts.

Requires kb:read · reads

get_knowledge_base

Get one knowledge base: slug, default language, and languages (enabled or not).

Requires kb:read · reads

ArgumentTypeDescription
kbId (required)string

list_categories

The category tree of a knowledge base in one language, hidden categories included.

Requires categories:read · reads

ArgumentTypeDescription
kbId (required)string
language (required)string

get_category

Get one category with its children and translations.

Requires categories:read · reads

ArgumentTypeDescription
id (required)string

create_category

Create a category in a knowledge base. Set parentId to nest it under another category of the same language.

Requires categories:write · writes

ArgumentTypeDescription
language (required)string
parentIdstring
slug (required)string
name (required)string
descriptionstring
iconstring
tagsstring[]
positioninteger
kbId (required)string

update_category

Change a category. Only the fields given change; pass null to clear an optional field.

Requires categories:write · writes

ArgumentTypeDescription
parentIdstring
slugstring
namestring
descriptionstring
iconstring
tagsstring[]
positioninteger
id (required)string

delete_category

Delete a category. Its children move up to its parent and its articles become uncategorised.

Requires categories:write · deletes

ArgumentTypeDescription
id (required)string

create_category_translation

Create the translation of an existing category in another language of the same knowledge base.

Requires categories:write · writes

ArgumentTypeDescription
language (required)string
parentIdstring
slug (required)string
name (required)string
descriptionstring
iconstring
tagsstring[]
positioninteger
sourceCategoryId (required)string

list_articles

List articles of a knowledge base in one language, all statuses, newest first. Bodies are omitted; use get_article.

Requires articles:read · reads

ArgumentTypeDescription
kbId (required)string
language (required)string
statusstring — one of draft, published, archived
categoryIdstring
tagstring
querystringFull-text search over title and body.
limitintegerDefault 25.
offsetinteger

get_article

Get one article with its Markdown body, status and translations.

Requires articles:read · reads

ArgumentTypeDescription
id (required)string

create_article

Create an article as a draft. It is not visible publicly until published.

Requires articles:write · writes

ArgumentTypeDescription
language (required)string
categoryIdstring
slug (required)string
title (required)string
excerptstring
bodyMarkdown (required)string
seoTitlestring
seoDescriptionstring
tagsstring[]
positioninteger
kbId (required)string

update_article

Change an article. Only the fields given change; pass null to clear an optional field. A published article changes live, which needs publish access.

Requires articles:write · writes

ArgumentTypeDescription
categoryIdstring
slugstring
titlestring
excerptstring
bodyMarkdownstring
seoTitlestring
seoDescriptionstring
tagsstring[]
positioninteger
id (required)string

delete_article

Delete an article permanently. Deleting a published article needs publish access.

Requires articles:write · deletes

ArgumentTypeDescription
id (required)string

create_article_translation

Create the translation of an existing article in another language of the same knowledge base, as a draft.

Requires articles:write · writes

ArgumentTypeDescription
language (required)string
categoryIdstring
slug (required)string
title (required)string
excerptstring
bodyMarkdown (required)string
seoTitlestring
seoDescriptionstring
tagsstring[]
positioninteger
sourceArticleId (required)string

publish_article

Make an article public on the knowledge base site.

Requires articles:publish · writes

ArgumentTypeDescription
id (required)string

unpublish_article

Take a published article off the public site; it becomes a draft again.

Requires articles:publish · deletes

ArgumentTypeDescription
id (required)string

archive_article

Archive an article: hidden from the public site and from default lists, kept for reference.

Requires articles:publish · deletes

ArgumentTypeDescription
id (required)string

import_media_from_url

Copy an image or document from a public https URL into this account’s media, and get back a url to use in article Markdown. Images up to 10 MB, documents up to 25 MB.

Requires articles:write · writes

ArgumentTypeDescription
url (required)string
filenamestringDefaults to the last segment of the URL.

upload_media

Upload an image or document as base64 and get back a url to use in article Markdown. The filename extension must match the content type.

Requires articles:write · writes

ArgumentTypeDescription
filename (required)string
contentType (required)stringe.g. 'image/png'
base64 (required)string

list_products

List products. The products this key may use. A product is the level above a knowledge base, an inbox and a CRM; every CRM and ticket operation is addressed to one. Any key may call this.

Requires kb:read · reads

create_product

Create a product. A new product with the modules chosen, each billed per month from now (as when the owner adds one in the admin). With the knowledge base on, give `knowledgeBase` and its KB is created too. Its slug and language are checked first (SLUG_TAKEN, SLUG_INVALID, LANGUAGE_INVALID: nothing is created). If the KB still can’t be made, the product stays without the knowledge base module and KNOWLEDGE_BASE_NOT_CREATED names it: don’t create it again; switch the module on in the admin. Email channels, domains and the team are set up in the admin. Only the account owner can give a key `products:write`, and a key limited to some products cannot create one.

Requires products:write · writes

ArgumentTypeDescription
name (required)string
businessType (required)string — one of ecommerce, saas
modules (required)object
knowledgeBaseobject

update_product

Rename a product, change its business type or switch its modules. Omitted fields are unchanged. A module switched on is billed from now; switched off it stops being billed and keeps its data. A knowledge base switched on later is created in the admin. Products are deleted only in the admin.

Requires products:write · writes

ArgumentTypeDescription
productId (required)string
namestring
businessTypestring — one of ecommerce, saas
modulesobject

list_custom_fields

List custom fields. The extra fields defined for contacts, clients, catalog items, orders and subscriptions, and the keys their `custom` values use.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
entitystring — one of contact, client, catalog_item, order, subscription

create_custom_field

Define a custom field.

Requires crm:configure · writes

ArgumentTypeDescription
productId (required)string
entity (required)string — one of contact, client, catalog_item, order, subscription
key (required)string
label (required)string
type (required)string — one of text, number, money, date, boolean, select, multiselect, url
optionsobject[]
requiredboolean | null
filterableboolean | null
onCardboolean | null

update_custom_field

Change or archive a custom field.

Requires crm:configure · writes

ArgumentTypeDescription
productId (required)string
id (required)string
labelstring
typestring — one of text, number, money, date, boolean, select, multiselect, url
optionsobject[]
requiredboolean | null
filterableboolean | null
onCardboolean | null
positioninteger
archivedboolean | null

list_contacts

List or search contacts. People: customers, buyers and the contacts of client companies. Newest first, cursor-paginated.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
firstinteger
afterstring
customKeystring
customValuestring
searchstring
tagstring
clientIdstring

get_contact

Get a contact.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
id (required)string

find_contact_by_email

Find the contact with an email.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
email (required)string

create_contact

Create a contact. Needs a name or an email. An email already on another contact of the product fails with EMAIL_TAKEN.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
namestring
emailsstring[]
phonestring
languagestring
tagsstring[]
customobject
clientobject

update_contact

Update a contact. Only the fields sent change; `emails` and `tags` replace the whole list.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
namestring
emailsstring[]
phonestring
languagestring
tagsstring[]
customobject

delete_contact

Delete a contact.

Requires crm:write · deletes

ArgumentTypeDescription
productId (required)string
id (required)string

add_contact_email

Add an email to a contact.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
email (required)string

merge_contacts

Merge a duplicate contact into another. This contact's emails, client links, orders and subscriptions move to the target, and this contact is deleted.

Requires crm:write · deletes

ArgumentTypeDescription
productId (required)string
id (required)string
targetId (required)string

get_contact_also_in

The same person in other products. Contacts in the key's other products that share an email, or that someone linked as the same person.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
id (required)string

Mark a contact in another product as the same person.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
otherProductId (required)string
otherContactId (required)string

Undo a same-person link.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
otherProductId (required)string
otherContactId (required)string

list_clients

List or search clients. Customers that are companies or individuals (accounts, for SaaS), each with its contacts.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
firstinteger
afterstring
customKeystring
customValuestring
searchstring
tagstring
kindstring — one of company, individual

get_client

Get a client.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
id (required)string

create_client

Create a client.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
name (required)string
kindstring — one of company, individual
vatNumberstring
registrationNumberstring
addressesobject[]
tagsstring[]
customobject
contactobject

update_client

Update a client. Only the fields sent change; `addresses` and `tags` replace the whole list.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
namestring
kindstring — one of company, individual
vatNumberstring
registrationNumberstring
addressesobject[]
tagsstring[]
customobject

delete_client

Delete a client.

Requires crm:write · deletes

ArgumentTypeDescription
productId (required)string
id (required)string

get_client_also_in

The same company in other products. Clients in the key's other products with the same VAT number.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
id (required)string

Add a contact to a client.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
contactId (required)string
rolestring

Remove a contact from a client. The contact itself is kept.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
contactId (required)string

list_stores

List stores. Where the product sells. Orders belong to a store; customers, orders and tickets can be filtered by it.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string

create_store

Add a store.

Requires crm:configure · writes

ArgumentTypeDescription
productId (required)string
name (required)string
currency (required)string
baseUrlstring

update_store

Update a store.

Requires crm:configure · writes

ArgumentTypeDescription
productId (required)string
id (required)string
namestring
currencystring
baseUrlstring

delete_store

Delete a store. Refused while the store has orders.

Requires crm:configure · deletes

ArgumentTypeDescription
productId (required)string
id (required)string

list_catalog_items

List products, plans and services. What the product sells. Items with an interval bill on a schedule (plans and recurring products).

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
firstinteger
afterstring
searchstring
kindstring — one of product, plan, service
storeIdstring
includeArchivedboolean | string — one of true, false

get_catalog_item

Get a catalog item.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
id (required)string

create_catalog_item

Add a catalog item.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
name (required)string
skustring
kindstring — one of product, plan, service
pricestring
currencystring
intervalstring — one of day, week, month, year
intervalCountinteger
storeIdstring
customobject
archivedboolean | null

update_catalog_item

Update or archive a catalog item. Catalog items are archived (archived: true), never deleted, so orders and subscriptions keep pointing at them.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
namestring
skustring
kindstring — one of product, plan, service
pricestring
currencystring
intervalstring — one of day, week, month, year
intervalCountinteger
storeIdstring
customobject
archivedboolean | null

list_orders

List or search orders. Newest first, cursor-paginated.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
firstinteger
afterstring
customKeystring
customValuestring
searchstring
storeIdstring
statusstring — one of pending, processing, on_hold, shipped, completed, canceled, refunded
paymentStatusstring — one of unpaid, partially_paid, paid, refunded, void
overdueboolean | string — one of true, false
contactIdstring
clientIdstring
subscriptionIdstring

get_order

Get an order with its items, shipments and documents.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
id (required)string

create_order

Record an order or a subscription's invoice. Needs a store, unless `subscriptionId` makes it a subscription's invoice. The number must be unique in its store, or among orders without one (ORDER_NUMBER_TAKEN otherwise).

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
storeIdstring
number (required)string
contactIdstring
clientIdstring
subscriptionIdstring
periodStartstring
periodEndstring
statusstring — one of pending, processing, on_hold, shipped, completed, canceled, refunded
statusRawstring
paymentStatusstring — one of unpaid, partially_paid, paid, refunded, void
paidAtstring
dueAtstring
currencystring
subtotalstring
shippingstring
taxstring
discountstring
totalstring
paymentMethodstring
billingAddressobject
shippingAddressobject
placedAtstring
itemsobject[]
customobject

update_order

Update an order. Only the fields sent change; `items` replaces every line.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
storeIdstring
numberstring
contactIdstring
clientIdstring
subscriptionIdstring
periodStartstring
periodEndstring
statusstring — one of pending, processing, on_hold, shipped, completed, canceled, refunded
statusRawstring
paymentStatusstring — one of unpaid, partially_paid, paid, refunded, void
paidAtstring
dueAtstring
currencystring
subtotalstring
shippingstring
taxstring
discountstring
totalstring
paymentMethodstring
billingAddressobject
shippingAddressobject
placedAtstring
itemsobject[]
customobject

delete_order

Delete an order.

Requires crm:write · deletes

ArgumentTypeDescription
productId (required)string
id (required)string

add_shipment

Add a shipment to an order.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
carrierCodestring
carrierNamestring
trackingNumberstring
statestring — one of pending, in_transit, delivered, returned, canceled
deliveredAtstring

update_shipment

Update a shipment.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
shipmentId (required)string
carrierCodestring
carrierNamestring
trackingNumberstring
statestring — one of pending, in_transit, delivered, returned, canceled
deliveredAtstring

delete_shipment

Delete a shipment.

Requires crm:write · deletes

ArgumentTypeDescription
productId (required)string
shipmentId (required)string

add_order_document

Attach an invoice or credit memo to an order.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
kind (required)string — one of invoice, credit_memo
numberstring
amount (required)string
reasonstring
issuedAtstring

delete_order_document

Remove an invoice or credit memo.

Requires crm:write · deletes

ArgumentTypeDescription
productId (required)string
documentId (required)string

list_subscriptions

List subscriptions.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
firstinteger
afterstring
statusstring — one of trialing, active, past_due, paused, canceled
endedboolean | string — one of true, false
contactIdstring
withClientsboolean | string — one of true, false
clientIdstring
storeIdstring

get_subscription

Get a subscription.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
id (required)string

create_subscription

Record a subscription. Belongs to a contact, a client, or both (a contact with a single client gets that client too). A catalogItemId fills the plan name, amount, currency and interval that are not sent.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
contactIdstring
clientIdstring
catalogItemIdstring
storeIdstring
planNamestring
statusstring — one of trialing, active, past_due, paused, canceled
amountstring
currencystring
intervalstring — one of day, week, month, year
intervalCountinteger
seatsinteger
startedAtstring
trialEndsAtstring
currentPeriodEndstring
canceledAtstring
endsAtstring
customobject

update_subscription

Update, cancel or renew a subscription. Setting status canceled fills endsAt with the end of the paid period unless endsAt is sent; moving a canceled one back to another status clears it.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
contactIdstring
clientIdstring
catalogItemIdstring
storeIdstring
planNamestring
statusstring — one of trialing, active, past_due, paused, canceled
amountstring
currencystring
intervalstring — one of day, week, month, year
intervalCountinteger
seatsinteger
startedAtstring
trialEndsAtstring
currentPeriodEndstring
canceledAtstring
endsAtstring
customobject

delete_subscription

Delete a subscription. Its invoices stay, and no longer name it.

Requires crm:write · deletes

ArgumentTypeDescription
productId (required)string
id (required)string

sync_store

Create or update a store by its id in your system. Idempotent: the first call creates it, later calls with the same source and external id update the fields sent. References to other records can use their ids in the same source (`…ExternalId`). Stores are configuration: needs crm:configure.

Requires crm:configure · writes

ArgumentTypeDescription
productId (required)string
source (required)string
externalId (required)string
namestring
currencystring
baseUrlstring
platformstring — one of manual, magento2, magento1, smartbill

sync_contact

Create or update a contact by its id in your system. Idempotent: the first call creates it, later calls with the same source and external id update the fields sent. References to other records can use their ids in the same source (`…ExternalId`). A new external id first matches a contact by any of its emails, so people already in the CRM (from tickets, say) are not duplicated. Emails are added, never removed.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
source (required)string
externalId (required)string
namestring
emailsstring[]
phonestring
languagestring
tagsstring[]
customobject
clientExternalIdsstring[]

sync_client

Create or update a client by its id in your system. Idempotent: the first call creates it, later calls with the same source and external id update the fields sent. References to other records can use their ids in the same source (`…ExternalId`). A new external id first matches a client by VAT number.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
source (required)string
externalId (required)string
namestring
kindstring — one of company, individual
vatNumberstring
registrationNumberstring
addressesobject[]
tagsstring[]
customobject

sync_catalog_item

Create or update a catalog item by its id in your system. Idempotent: the first call creates it, later calls with the same source and external id update the fields sent. References to other records can use their ids in the same source (`…ExternalId`). A new external id first matches an item by SKU in the same store.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
source (required)string
externalId (required)string
namestring
skustring
kindstring — one of product, plan, service
pricestring
currencystring
intervalstring — one of day, week, month, year
intervalCountinteger
storeIdstring
customobject
archivedboolean | null
storeExternalIdstring

sync_order

Create or update an order or invoice by its id in your system. Idempotent: the first call creates it, later calls with the same source and external id update the fields sent. References to other records can use their ids in the same source (`…ExternalId`). A new external id first matches an order by number in the same store (or among orders without one). Send `subscriptionExternalId` for a subscription's invoice, and `paymentStatus`/`paidAt` to record a payment. `shipments` and `documents` replace what this source sent before.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
source (required)string
externalId (required)string
storeIdstring
numberstring
contactIdstring
clientIdstring
subscriptionIdstring
periodStartstring
periodEndstring
statusstring — one of pending, processing, on_hold, shipped, completed, canceled, refunded
statusRawstring
paymentStatusstring — one of unpaid, partially_paid, paid, refunded, void
paidAtstring
dueAtstring
currencystring
subtotalstring
shippingstring
taxstring
discountstring
totalstring
paymentMethodstring
billingAddressobject
shippingAddressobject
placedAtstring
itemsobject[]
customobject
storeExternalIdstring
contactExternalIdstring
clientExternalIdstring
subscriptionExternalIdstring
contactEmailstring
contactNamestring
shipmentsobject[]
documentsobject[]

sync_subscription

Create or update a subscription by its id in your system. Idempotent: the first call creates it, later calls with the same source and external id update the fields sent. References to other records can use their ids in the same source (`…ExternalId`).

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
source (required)string
externalId (required)string
contactIdstring
clientIdstring
catalogItemIdstring
storeIdstring
planNamestring
statusstring — one of trialing, active, past_due, paused, canceled
amountstring
currencystring
intervalstring — one of day, week, month, year
intervalCountinteger
seatsinteger
startedAtstring
trialEndsAtstring
currentPeriodEndstring
canceledAtstring
endsAtstring
customobject
storeExternalIdstring
contactExternalIdstring
clientExternalIdstring
catalogItemExternalIdstring

sync_batch

Create or update up to 100 records of any type in one call. Records are applied in order, each on its own: a failing record is rolled back and reported, and the rest still go through, so a record can name one sent earlier in the same batch. Use it to import history page by page. Store records need crm:configure.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
source (required)string
records (required)any[]

get_synced_record

Find a record by its id in your system.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
entity (required)string — one of stores, contacts, clients, catalog-items, orders, subscriptions
source (required)string
externalId (required)string

list_integrations

List the shops this product syncs from. With each one’s status, progress and last error.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string

get_integration

Get a shop integration.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
id (required)string

test_integration

Check a shop’s or SmartBill account’s credentials without saving them. Returns the shop’s websites (a SmartBill company and its invoice series) when it answers; CONNECTION_REFUSED or CONNECTION_FAILED otherwise.

Requires crm:configure · reads

ArgumentTypeDescription
productId (required)string
type (required)string — one of magento2, magento1, smartbill, intercom
baseUrlstring
credentials (required)object

create_integration

Connect a shop, a SmartBill account or an Intercom workspace. The shop is checked first. Its websites become stores, and the first sync starts: the catalog, customers and orders changed within the history chosen, then every 15 minutes. A SmartBill account’s company becomes a store; its invoices are imported (POST …/integrations/{id}/invoices) and checked for payment daily. An Intercom workspace brings its contacts into the CRM and its conversations in as tickets, with their whole thread, then keeps them up to date every 15 minutes until you switch over; give the email channel they reply from as `replyChannelAddress`.

Requires crm:configure · writes

ArgumentTypeDescription
productId (required)string
type (required)string — one of magento2, magento1, smartbill, intercom
name (required)string
baseUrlstring
credentials (required)object
replyChannelAddressstring
historyModestring — one of none, months, full
historyMonthsinteger

update_integration

Rename, re-point, replace credentials, pause or resume a shop integration.

Requires crm:configure · writes

ArgumentTypeDescription
productId (required)string
id (required)string
namestring
baseUrlstring
credentialsobject
replyChannelAddressstring
pausedboolean | null

sync_integration

Sync a shop now. Instead of at the next interval; one stopped by an error is retried.

Requires crm:configure · writes

ArgumentTypeDescription
productId (required)string
id (required)string

import_integration_invoices

Import invoices into a SmartBill integration. Up to 100 per call, each on its own: an order of the company store with its client (matched by VAT number, else name), under the integration’s source as SERIES-NUMBER. Importing again updates; an invoice already paid stays paid. Those still owed are checked with SmartBill daily.

Requires crm:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
invoices (required)object[]

delete_integration

Disconnect a shop. What it synced stays in the CRM.

Requires crm:configure · deletes

ArgumentTypeDescription
productId (required)string
id (required)string

get_customer_insights

A customer's lifetime value, what it owes and its monthly revenue. Pass contactId or clientId.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
contactIdstring
clientIdstring
monthsinteger

get_crm_overview

Revenue per month, recurring revenue, what is owed and the top customers.

Requires crm:read · reads

ArgumentTypeDescription
productId (required)string
monthsinteger

list_tickets

List or search tickets. Most recent activity first, cursor-paginated.

Requires tickets:read · reads

ArgumentTypeDescription
productId (required)string
firstinteger
afterstring
viewstring — one of all, unassigned
searchstring
statusesstring
prioritiesstring
channelIdstring
tagstring
requesterIdstring
contactIdstring
requesterKindstring — one of CUSTOMER, LEAD
storeIdstring

get_ticket

Get a ticket with its whole thread.

Requires tickets:read · reads

ArgumentTypeDescription
productId (required)string
id (required)string

get_ticket_by_number

Find a ticket by its number.

Requires tickets:read · reads

ArgumentTypeDescription
productId (required)string
number (required)integer

get_ticket_report

Ticket report: the backlog, volume, response and resolution times, by day, source, channel, agent and tag. Tickets waiting now, and over the last `days` days what came in, what was resolved and how fast, each compared with the period before.

Requires tickets:read · reads

ArgumentTypeDescription
productId (required)string
daysinteger
timeZonestring

get_ticket_customer

The ticket's customer: contact, clients, orders and subscriptions. What agents see beside a ticket, from the CRM of its product, including orders whose numbers the customer quoted.

Requires tickets:read · reads

ArgumentTypeDescription
productId (required)string
id (required)string

create_ticket

Open a ticket for a customer. For a request that reached you another way (a call, your own form, an AI agent's hand-off), on one of the product's email channels. `message` records what the customer asked; `reply` is this key's first answer and leaves the ticket PENDING (or SOLVED with `solve`). Nothing is sent unless `notify` is true, which emails `reply`. The customer's answers thread back onto the ticket.

Requires tickets:write · writes

ArgumentTypeDescription
productId (required)string
channelAddress (required)string
customer (required)object
subjectstring
messagestring
replyobject
prioritystring — one of LOW, NORMAL, HIGH, URGENT
assigneeUserIdstring
tagsstring[]
notifyboolean

import_ticket

Import a ticket with its history from another help desk. Writes the conversation as it happened: its times, authors, status, assignee and tags. Nothing is emailed or notified, and history doesn't show as unread. Files are copied from their URLs. Import the same `source` + `externalId` again to add the messages it lacks; the source's status, assignee and tags apply only if no one changed the ticket in Motenya since. Intercom has a ready-made integration (POST …/integrations with type `intercom`).

Requires tickets:write · writes

ArgumentTypeDescription
productId (required)string
source (required)string
externalId (required)string
channelAddressstring
customer (required)object
subjectstring
statusstring — one of OPEN, PENDING, SOLVED, CLOSED, SNOOZED
snoozedUntilstring
prioritystring — one of LOW, NORMAL, HIGH, URGENT
assigneeEmailstring
tagsstring[]
createdAt (required)string
updatedAtstring
messages (required)object[]

reply_to_ticket

Reply to the customer. Emailed to the requester from the ticket's channel (`notify: false` records it without sending). Shown in the thread as written by this key.

Requires tickets:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
body (required)string
solveboolean
notifyboolean

retry_ticket_reply

Send a failed reply again.

Requires tickets:write · writes

ArgumentTypeDescription
productId (required)string
messageId (required)string

add_ticket_note

Add an internal note.

Requires tickets:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
body (required)string

assign_ticket

Assign or unassign a ticket.

Requires tickets:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
assigneeUserId (required)string

set_ticket_status

Change a ticket's status. SNOOZED needs snoozedUntil; snoozing a snoozed ticket again only moves the time.

Requires tickets:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
status (required)string — one of OPEN, PENDING, SOLVED, CLOSED, SNOOZED, SPAM, IGNORED
snoozedUntilstring

list_blocked_senders

List the senders whose new tickets go straight to spam.

Requires tickets:read · reads

ArgumentTypeDescription
productId (required)string

block_sender

Block an address or a domain. Their new tickets (email, help center, widget) are kept but go straight to SPAM. Blocking one already blocked returns it.

Requires tickets:write · writes

ArgumentTypeDescription
productId (required)string
value (required)string

unblock_sender

Unblock a sender.

Requires tickets:write · deletes

ArgumentTypeDescription
productId (required)string
id (required)string

set_ticket_priority

Change a ticket's priority.

Requires tickets:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
priority (required)string — one of LOW, NORMAL, HIGH, URGENT

set_ticket_tags

Replace a ticket's tags.

Requires tickets:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
tags (required)string[]

merge_ticket

Merge a ticket into another. This ticket is closed into the target and becomes read-only.

Requires tickets:write · deletes

ArgumentTypeDescription
productId (required)string
id (required)string
targetTicketId (required)string

Pin an order to a ticket, or unpin it.

Requires tickets:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
orderId (required)string
linkedboolean

get_ticket_settings

Get the ticket settings (auto-close).

Requires tickets:read · reads

ArgumentTypeDescription
productId (required)string

update_ticket_settings

Replace the ticket settings (auto-close). Turning auto-close on resolves the tickets already due at once.

Requires tickets:configure · writes

ArgumentTypeDescription
productId (required)string
autoClose (required)object

list_canned_replies

List canned replies.

Requires tickets:read · reads

ArgumentTypeDescription
productId (required)string

create_canned_reply

Create a canned reply.

Requires tickets:write · writes

ArgumentTypeDescription
productId (required)string
title (required)string
body (required)string

update_canned_reply

Replace a canned reply.

Requires tickets:write · writes

ArgumentTypeDescription
productId (required)string
id (required)string
title (required)string
body (required)string

delete_canned_reply

Delete a canned reply.

Requires tickets:write · deletes

ArgumentTypeDescription
productId (required)string
id (required)string