Stay AI MCP by usefulapi

v1.2.1
io.usefulapi/stay-ai Checked 2 days ago Published 1 day ago

Read subscriptions, orders and billing attempts; end subscriptions, skip deliveries in Stay AI.

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

stayai_list_subscriptions List subscriptions

List subscription contracts with status (ACTIVE, PAUSED, CANCELLED), next billing date, customer and dunning state. Good first call for churn and billing questions. Stay API: GET /subscriptions/.

ParameterTypeDescription
created_at_maxintegerTimestamp filter as an integer, in the format the Stay docs use.
created_at_minintegerTimestamp filter as an integer, in the format the Stay docs use.
emailstringFilter by customer email.
is_in_dunningbooleanOnly subscriptions with failed payments being retried.
next_billing_date_maxintegerTimestamp filter as an integer, in the format the Stay docs use.
next_billing_date_minintegerTimestamp filter as an integer, in the format the Stay docs use.
pageintegerPage number (default 1).
page_sizeintegerResults per page.
sort_bystringField to sort by, as the Stay docs name it.
sort_directionstringSort direction.
statusstringFilter by subscription status.
updated_at_maxintegerTimestamp filter as an integer, in the format the Stay docs use.
updated_at_minintegerTimestamp filter as an integer, in the format the Stay docs use.

stayai_get_subscription Get a subscription

Get one subscription by its Shopify or internal subscription id. Stay API: GET /subscriptions/{subscriptionId}.

ParameterTypeDescription
subscription_id *stringShopify (gid://shopify/SubscriptionContract/...) or internal subscription id.

stayai_list_customers List customers

List subscription customers, filtered by creation or update time. Stay API: GET /customers.

ParameterTypeDescription
created_at_maxstringISO 8601 datetime.
created_at_minstringISO 8601 datetime, e.g. 2026-09-10T17:14:00Z.
pageintegerPage number (default 1).
page_sizeintegerResults per page.
updated_at_maxstringISO 8601 datetime.
updated_at_minstringISO 8601 datetime.

stayai_list_orders List subscription orders

List recurring orders generated from subscriptions, filtered by creation or update time. Stay API: GET /orders.

ParameterTypeDescription
created_at_maxintegerTimestamp filter as an integer, in the format the Stay docs use.
created_at_minintegerTimestamp filter as an integer, in the format the Stay docs use.
pageintegerPage number (default 1).
page_sizeintegerResults per page.
sort_bystringField to sort by, as the Stay docs name it (e.g. createdAt).
sort_directionstringSort direction.
updated_at_maxintegerTimestamp filter as an integer, in the format the Stay docs use.
updated_at_minintegerTimestamp filter as an integer, in the format the Stay docs use.

stayai_list_billing_attempts List billing attempts

List billing attempts for the store, successful and failed, with error codes and messages. Useful for payment-failure and dunning analysis. Stay API: GET /billing/attempts.

ParameterTypeDescription
billing_attempt_date_maxstringUpper bound of the attempt date, as the Stay docs format it.
billing_attempt_date_minstringLower bound of the attempt date, as the Stay docs format it.
customer_emailstringOnly attempts for this customer email.
error_codestringFilter by error code.
pageintegerPage number (default 1).
page_sizeintegerResults per page.
subscription_idstringOnly attempts for this subscription id.

stayai_list_catalog List catalog products

List the products in the store catalog that Stay can sell on subscription. Stay API: GET /products/catalog.

ParameterTypeDescription
pageintegerPage number (default 1).

stayai_get_catalog_product Get a catalog product

Get one catalog product by its Shopify product id. Stay API: GET /products/{shopifyProductId}.

ParameterTypeDescription
shopify_product_id *stringShopify product id (gid://shopify/Product/... or the numeric id).

stayai_list_selling_plan_groups List selling plan groups

List subscription selling plan groups (the plans a shopper can pick), optionally for one product or variant. Stay API: GET /selling-plan-groups/.

ParameterTypeDescription
shopify_product_idstringShopify product gid.
shopify_selling_plan_group_idstringShopify selling plan group gid.
variant_idstringShopify variant id.

stayai_get_selling_plan_group Get a selling plan group

Get one selling plan group by its Stay id. Stay API: GET /selling-plan-groups/{sellingPlanGroupId}.

ParameterTypeDescription
selling_plan_group_id *stringThe Stay selling plan group id (from stayai_list_selling_plan_groups).

stayai_end_subscription End a Stay subscription

Cancel a subscription. This ends future orders and cannot be undone by this server (reactivation is a separate Stay action). Pass the reasons the merchant or customer gave. Stay API: POST /subscriptions/{subscriptionId}/cancel.

ParameterTypeDescription
subscription_id *stringShopify or internal subscription id to cancel.
cancellation_reasonsarrayReasons for the cancellation, e.g. 'too expensive'.
initiatorstringWho started the cancellation (default MERCHANT).

stayai_skip_line Skip a subscription line

Skip the next delivery of one line on a subscription. A retry after a lost reply can skip a further delivery, so do not repeat it blindly. Stay API: POST /subscriptions/{subscriptionId}/lines/{lineId}/skip.

ParameterTypeDescription
line_id *stringThe line id on that subscription (from stayai_get_subscription).
subscription_id *stringShopify or internal subscription id.