Loop MCP by usefulapi

v1.1.0
io.usefulapi/loop-subscriptions Checked 1 hour ago Published 6 days ago

Read subscriptions, orders and customers; pause or resume subscriptions, skip orders in Loop.

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

loopsubscriptions_get_subscription Get subscription

Read one subscription: status, billing, delivery, products and next order. Loop API: GET /subscription/{subscriptionId}.

ParameterTypeDescription
subscription_id *stringSubscription id: the Loop id (12345), 'loop-12345', or 'shopify-<shopifySubscriptionId>'.

loopsubscriptions_list_subscriptions List subscriptions

List subscriptions for the store, with optional filters and cursor paging. This list has a small per-store pool (3 requests per 3 s); use filters. Loop API: GET /subscription.

ParameterTypeDescription
after_cursorstringCursor: pass pageInfo.nextCursor from the previous response.
created_afterintegerCreated from this time (Unix epoch, integer).
created_beforeintegerCreated up to this time (Unix epoch, integer).
last_payment_statusstringResult of the last payment.
next_billing_afterintegerNext billing from this time (Unix epoch, integer).
next_billing_beforeintegerNext billing up to this time (Unix epoch, integer).
page_sizeintegerRecords per page (Loop default when omitted).
statusstringSubscription status.
updated_afterintegerOnly subscriptions updated from this time (Unix epoch, integer).
updated_beforeintegerOnly subscriptions updated up to this time (Unix epoch, integer).

loopsubscriptions_list_customer_subscriptions List subscriptions for a customer

List the subscriptions of one customer, by Shopify customer id, with an optional status filter. Loop API: GET /customer/{customerIdentifier}/subscription.

ParameterTypeDescription
customer_id *stringShopify customer id (numeric).
statusstringSubscription status (Loop uses PAUSE here).

loopsubscriptions_find_subscriptions_by_email Find subscriptions by email

List the subscriptions of the customer with this email address. Use it when the Shopify customer id is unknown. Loop API: GET /customer/{customerEmailAddress}/subscription.

ParameterTypeDescription
email *stringCustomer email address.

loopsubscriptions_list_order_schedule List upcoming orders

List the scheduled future orders of one subscription. Loop API: GET /subscription/{subscriptionId}/order/schedule.

ParameterTypeDescription
subscription_id *stringSubscription id: the Loop id (12345), 'loop-12345', or 'shopify-<shopifySubscriptionId>'.

loopsubscriptions_list_order_history List past orders of a subscription

List the orders already placed for one subscription. Loop API: GET /subscription/{subscriptionId}/order/history.

ParameterTypeDescription
subscription_id *stringSubscription id: the Loop id (12345), 'loop-12345', or 'shopify-<shopifySubscriptionId>'.

loopsubscriptions_list_activity_logs List subscription activity

List the activity log (changes and events) of one subscription, with cursor paging. Loop API: GET /subscription/{subscriptionId}/activityLog.

ParameterTypeDescription
subscription_id *stringSubscription id: the Loop id (12345), 'loop-12345', or 'shopify-<shopifySubscriptionId>'.
after_cursorstringCursor: pass pageInfo.nextCursor from the previous response.
page_sizeintegerRecords per page (Loop default when omitted).

loopsubscriptions_get_customer Get customer

Read one customer by Shopify customer id: their subscriptions and loyalty account. Loop API: GET /customer/{customerShopifyId}.

ParameterTypeDescription
customer_id *stringShopify customer id (numeric).

loopsubscriptions_list_customers List customers

List customers with their subscription count, with an optional email filter and cursor paging. This list has a small per-store pool (1 request per s). Loop API: GET /customer.

ParameterTypeDescription
after_cursorstringCursor: pass pageInfo.nextCursor from the previous response.
emailstringExact email address to find.
page_sizeintegerRecords per page (Loop default when omitted).
updated_afterintegerUpdated from this time (Unix epoch, integer).
updated_beforeintegerUpdated up to this time (Unix epoch, integer).

loopsubscriptions_list_scheduled_orders List scheduled orders

List the subscription orders due for billing in a date range (operations view: what ships next). This list has a small per-store pool (2 requests per 3 s). Loop API: GET /orders/schedule.

ParameterTypeDescription
billing_after *integerBilling date from (Unix epoch, integer).
billing_before *integerBilling date up to (Unix epoch, integer).
after_cursorstringCursor: pass pageInfo.nextCursor from the previous response.
page_sizeintegerRecords per page (Loop default when omitted).

loopsubscriptions_list_past_orders List past orders

List subscription orders for the store, filtered by Shopify creation, billing or update time, with cursor paging. This list has a small per-store pool (2 requests per 3 s). Loop API: GET /orders.

ParameterTypeDescription
after_cursorstringCursor: pass pageInfo.nextCursor from the previous response.
billing_afterintegerBilled from this time (Unix epoch, integer).
billing_beforeintegerBilled up to this time (Unix epoch, integer).
created_afterintegerShopify order created from this time (Unix epoch, integer).
created_beforeintegerShopify order created up to this time (Unix epoch, integer).
page_sizeintegerRecords per page (Loop default when omitted).
updated_afterintegerUpdated from this time (Unix epoch, integer).
updated_beforeintegerUpdated up to this time (Unix epoch, integer).

loopsubscriptions_list_products List products

List the store products and whether each one has a subscription selling plan. This list has a small per-store pool (6 requests per s). Loop API: GET /product.

ParameterTypeDescription
after_cursorstringCursor: pass pageInfo.nextCursor from the previous response.
page_sizeintegerRecords per page (Loop default when omitted).
searchstringText to search product titles.
typestringALL or only subscription products.

loopsubscriptions_list_selling_plan_groups List selling plan groups

List the subscription selling plan groups of the store (the billing and delivery plans offered). Loop API: GET /sellingPlanGroup.

loopsubscriptions_pause_subscription Pause subscription

Pause a subscription: no billing and no deliveries until it resumes. Pass pause_duration to pause for a fixed time; omit it to pause until resumed. Loop API: POST /subscription/{subscriptionId}/pause.

ParameterTypeDescription
subscription_id *stringSubscription id: the Loop id (12345), 'loop-12345', or 'shopify-<shopifySubscriptionId>'.
pause_durationobjectOptional fixed pause. Field names are the Loop API's camelCase.

loopsubscriptions_resume_subscription Resume subscription

Resume a paused subscription on its original schedule. This restarts billing and deliveries. Loop API: POST /subscription/{subscriptionId}/resume.

ParameterTypeDescription
subscription_id *stringSubscription id: the Loop id (12345), 'loop-12345', or 'shopify-<shopifySubscriptionId>'.

loopsubscriptions_skip_next_order Skip next order

Skip the next scheduled order of a subscription; later orders stay scheduled. This changes what the customer is charged and shipped. Loop API: POST /subscription/{subscriptionId}/skipNext.

ParameterTypeDescription
subscription_id *stringSubscription id: the Loop id (12345), 'loop-12345', or 'shopify-<shopifySubscriptionId>'.

loopsubscriptions_reactivate_subscription Reactivate subscription

Reactivate a cancelled subscription on its original schedule. This restarts billing. Loop API: POST /subscription/{subscriptionId}/reactivate.

ParameterTypeDescription
subscription_id *stringSubscription id: the Loop id (12345), 'loop-12345', or 'shopify-<shopifySubscriptionId>'.

loopsubscriptions_update_note Update subscription note

Replace the internal note on a subscription. The customer does not see it. Loop API: PUT /subscription/{subscriptionId}/note.

ParameterTypeDescription
note *stringThe new note text (replaces the old note).
subscription_id *stringSubscription id: the Loop id (12345), 'loop-12345', or 'shopify-<shopifySubscriptionId>'.