SalesDrive MCP by usefulapi
v1.5.1Read and update orders, add order notes, and find managers by phone in SalesDrive.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
salesdrive_list_orders List orders
List orders (заявки) with their status, contact, products, delivery and payment fields. Filter by status, order number range, change date, order date or organization. At most 100 per page. SalesDrive API: GET /api/order/list/.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Orders per page, 1-100 (default 50). |
order_id_from | integer | Lowest order number. |
order_id_to | integer | Highest order number. |
order_time_from | string | Order placed on or after this time. |
order_time_to | string | Order placed on or before this time. |
organization_id | integer | Organization id. |
page | integer | Page number (default 1). |
status_ids | array | Status ids, or __NOTDELETED__ (default: all except deleted) or __ALL__. |
updated_from | string | Order changed on or after this time. |
updated_to | string | Order changed on or before this time. |
salesdrive_get_order Get an order
Get one order by its order number. Returns the order object, or a message when no order has that number. SalesDrive API: GET /api/order/list/ with filter[id].
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | SalesDrive order number (заявки id). |
salesdrive_list_statuses List order statuses
List the order statuses of the account with their ids and type (1 in progress, 2 sale, 3 unsuccessful, 4 deleted). Use the ids in salesdrive_update_order. SalesDrive API: GET /api/statuses/.
salesdrive_list_payment_methods List payment methods
List the payment methods of the account with their ids. SalesDrive API: GET /api/payment-methods/.
salesdrive_list_delivery_methods List delivery methods
List the delivery methods of the account with their ids. SalesDrive API: GET /api/delivery-methods/.
salesdrive_find_contact_by_phone Find a contact by phone
Find the client and the responsible manager for a phone number. Returns the manager (name, internal number) and the client record, if one matches. SalesDrive API: GET /api/get_manager_by_phone_number/.
| Parameter | Type | Description |
|---|---|---|
phone * | string | Phone number, for example +380501112233. |
salesdrive_update_order Update an order
Update an order's fields, for example statusId (order status), salesdrive_manager (responsible manager), comment, or paymentDate. Give order_id or external_id. Sends only the fields you pass. The API cannot change the city, branch or address of a Nova Poshta or Ukrposhta delivery. SalesDrive API: POST /api/order/update/.
| Parameter | Type | Description |
|---|---|---|
data * | object | Fields to set, for example { statusId: 1065 }. Use salesdrive_list_statuses for status ids. |
external_id | string | Your own order number. Ignored when order_id is given. |
order_id | integer | SalesDrive order number. Use this or external_id. |
salesdrive_add_order_note Add a note to an order
Add a note to an order's client communications block. The note gets the current time. Each call adds a new note. SalesDrive API: POST /api/order/note/.
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | SalesDrive order number (заявки id). |
text * | string | Note text. |