keyCRM MCP by usefulapi

v1.6.1
io.usefulapi/keycrm Checked 2 days ago Published 1 day ago

Read orders, buyers, products and pipeline cards; add or remove order tags in keyCRM.

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

keycrm_list_orders List orders

List orders with filters. For unfulfilled orders, first call keycrm_list_order_statuses, then pass the status id here. Use include=buyer,products.offer,status to get the customer and products in one call. One page per call; keyCRM allows 20 requests per minute per key. GET /order.

ParameterTypeDescription
buyer_emailstringFilter by buyer email.
buyer_phonestringFilter by buyer phone.
created_betweenstringDate range in UTC, "YYYY-MM-DD HH:MM:SS, YYYY-MM-DD HH:MM:SS" (start, end).
has_tracking_codebooleantrue = orders with a shipping tracking code; false = without.
includestringComma-separated related objects to load, e.g. buyer,products.offer,status,manager,payments,shipping.lastHistory. Empty = none.
limitintegerItems per page, 1 to 50 (default 15). One page per call.
pageintegerPage number (default 1).
payment_statusstringPayment status: paid, overpaid, part_paid, not_paid (comma-separated allowed).
shipping_betweenstringDate range in UTC, "YYYY-MM-DD HH:MM:SS, YYYY-MM-DD HH:MM:SS" (start, end).
sortstringSort field as keyCRM accepts it, e.g. id.
source_idstringFilter by order source id (from keycrm_list_order_sources).
source_uuidstringFilter by the order id in the source system.
status_idstringFilter by order status id (from keycrm_list_order_statuses).
updated_betweenstringDate range in UTC, "YYYY-MM-DD HH:MM:SS, YYYY-MM-DD HH:MM:SS" (start, end).

keycrm_get_order Get an order

Get one order by id, with its products, buyer, status, payments and shipping when included. GET /order/{id}.

ParameterTypeDescription
order_id *integerNumeric keyCRM id.
includestringComma-separated related objects to load, e.g. buyer,products.offer,status,payments,shipping.lastHistory,expenses. Empty = none.

keycrm_list_order_statuses List order statuses

List the active order statuses with their ids and names. Call this first to find the status id for unfulfilled or new orders. GET /order/status.

ParameterTypeDescription
limitintegerItems per page, 1 to 50 (default 15). One page per call.
pageintegerPage number (default 1).

keycrm_list_order_sources List order sources

List order sources (sales channels) with their ids. GET /order/source.

ParameterTypeDescription
limitintegerItems per page, 1 to 50 (default 15). One page per call.
pageintegerPage number (default 1).

keycrm_list_order_tags List order tags

List order tags with their ids, for keycrm_add_order_tag and keycrm_remove_order_tag. GET /order/tag.

ParameterTypeDescription
limitintegerItems per page, 1 to 50 (default 15). One page per call.
pageintegerPage number (default 1).

keycrm_list_buyers List buyers

List buyers (customers) with filters by id, phone, email or date. Use include=company,manager,loyalty for related data. GET /buyer.

ParameterTypeDescription
buyer_emailstringFilter by buyer email.
buyer_idstringFilter by buyer id or ids.
buyer_phonestringFilter by buyer phone.
created_betweenstringDate range in UTC, "YYYY-MM-DD HH:MM:SS, YYYY-MM-DD HH:MM:SS" (start, end).
includestringComma-separated related objects to load, e.g. company,manager,shipping,loyalty,custom_fields. Empty = none.
limitintegerItems per page, 1 to 50 (default 15). One page per call.
pageintegerPage number (default 1).
updated_betweenstringDate range in UTC, "YYYY-MM-DD HH:MM:SS, YYYY-MM-DD HH:MM:SS" (start, end).

keycrm_get_buyer Get a buyer

Get one buyer (customer) by id. GET /buyer/{id}.

ParameterTypeDescription
buyer_id *integerNumeric keyCRM id.
includestringComma-separated related objects to load, e.g. company,manager,shipping,loyalty,custom_fields. Empty = none.

keycrm_list_products List products

List catalog products with filters by id, category or archive status. Use include=custom_fields for custom fields. GET /products.

ParameterTypeDescription
category_idstringFilter by category id or ids.
includestringComma-separated related objects to load, e.g. custom_fields. Empty = none.
is_archivedbooleantrue = archived products only; false = active only.
limitintegerItems per page, 1 to 50 (default 15). One page per call.
pageintegerPage number (default 1).
product_idstringFilter by product id or ids.

keycrm_get_product Get a product

Get one catalog product by id. GET /products/{id}.

ParameterTypeDescription
product_id *integerNumeric keyCRM id.
includestringComma-separated related objects to load, e.g. custom_fields. Empty = none.

keycrm_list_offers List product variants

List product variants (offers) with their ids and SKUs. GET /offers.

ParameterTypeDescription
limitintegerItems per page, 1 to 50 (default 15). One page per call.
pageintegerPage number (default 1).

keycrm_list_stock_levels List stock levels

List stock levels per product variant. Set details=true to get the stock per warehouse. GET /offers/stocks.

ParameterTypeDescription
detailsbooleantrue = stock per warehouse instead of the total.
limitintegerItems per page, 1 to 50 (default 15). One page per call.
offers_idstringFilter by variant id or ids.
offers_skustringFilter by variant SKU or SKUs (comma-separated).
pageintegerPage number (default 1).

keycrm_list_pipeline_cards List pipeline cards

List sales pipeline cards (deals) with filters by pipeline, status, source or date. GET /pipelines/cards.

ParameterTypeDescription
created_betweenstringDate range in UTC, "YYYY-MM-DD HH:MM:SS, YYYY-MM-DD HH:MM:SS" (start, end).
includestringComma-separated related objects to load, e.g. contact.client,products,manager,status,payments,custom_fields. Empty = none.
limitintegerItems per page, 1 to 50 (default 15). One page per call.
pageintegerPage number (default 1).
pipeline_idstringFilter by pipeline id or ids.
source_idstringFilter by source id or ids.
status_idstringFilter by pipeline status id or ids.
updated_betweenstringDate range in UTC, "YYYY-MM-DD HH:MM:SS, YYYY-MM-DD HH:MM:SS" (start, end).

keycrm_list_users List users

List team users (managers) with their ids, roles and status. Match a user id to the manager of an order from keycrm_list_orders with include=manager. GET /users.

ParameterTypeDescription
emailstringFilter by email.
full_namestringFilter by full name.
limitintegerItems per page, 1 to 50 (default 15). One page per call.
pageintegerPage number (default 1).
phonestringFilter by phone.
role_idstringFilter by role id or ids.
statusstringFilter by user status.
user_idstringFilter by user id or ids.

keycrm_add_order_tag Add a tag to an order

WRITE: add an existing tag to an order. Changes the order in the customer's keyCRM account. Get tag ids from keycrm_list_order_tags. POST /order/{id}/tag/{tag_id}.

ParameterTypeDescription
order_id *integerNumeric keyCRM id.
tag_id *integerNumeric keyCRM id.

keycrm_remove_order_tag Remove a tag from an order

WRITE: remove a tag from an order in the customer's keyCRM account. The tag itself is kept. DELETE /order/{id}/tag/{tag_id}.

ParameterTypeDescription
order_id *integerNumeric keyCRM id.
tag_id *integerNumeric keyCRM id.