Swell MCP by usefulapi

v1.41.1
io.usefulapi/swell Checked 2 days ago Published 1 day ago

Manage your Swell headless-commerce store — products, orders, customers, and subscriptions.

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

swell_list_products List products

List products in the store, with MongoDB-style filtering, sorting, search, field selection, and expansion. Swell backend REST API: GET /products.

ParameterTypeDescription
expandstringComma-separated related fields to expand, e.g. "variants,categories".
fieldsstringComma-separated fields to return, e.g. "name,price,active".
limitintegerMax records to return (1–1000, Swell default 15).
pageintegerPage number for pagination (default 1).
searchstringFree-text search across the model's searchable fields.
sortstringSort expression, e.g. "date_created desc" or "name asc".
wherestringMongoDB-style filter as a JSON object string, e.g. {"active":true,"price":{"$gte":10}}.

swell_get_product Get a product

Fetch a single product by its record id or its slug. Supports `expand` and `fields`. Swell backend REST API: GET /products/{id}.

ParameterTypeDescription
id *stringProduct id or slug.
expandstringComma-separated related fields to expand, e.g. "variants,categories".
fieldsstringComma-separated fields to return, e.g. "name,price".

swell_list_categories List categories

List product categories, with filtering, sorting, search, and expansion. Swell backend REST API: GET /categories.

ParameterTypeDescription
expandstringComma-separated related fields to expand, e.g. "variants,categories".
limitintegerMax records to return (1–1000, Swell default 15).
pageintegerPage number for pagination (default 1).
searchstringFree-text search across the model's searchable fields.
sortstringSort expression, e.g. "date_created desc" or "name asc".
wherestringMongoDB-style filter as a JSON object string, e.g. {"active":true,"price":{"$gte":10}}.

swell_list_orders List orders

List orders, with MongoDB-style filtering, sorting, search, and expansion. Swell backend REST API: GET /orders.

ParameterTypeDescription
expandstringComma-separated related fields to expand, e.g. "variants,categories".
limitintegerMax records to return (1–1000, Swell default 15).
pageintegerPage number for pagination (default 1).
searchstringFree-text search across the model's searchable fields.
sortstringSort expression, e.g. "date_created desc" or "name asc".
wherestringMongoDB-style filter as a JSON object string, e.g. {"active":true,"price":{"$gte":10}}.

swell_get_order Get an order

Fetch a single order by its record id or its order number. Supports `expand` and `fields`. Swell backend REST API: GET /orders/{id}.

ParameterTypeDescription
id *stringOrder id or order number.
expandstringComma-separated related fields to expand, e.g. "items,account".
fieldsstringComma-separated fields to return.

swell_list_customers List customers

List customers. In Swell, customers are the `accounts` model — this queries GET /accounts, with filtering, sorting, search, and expansion.

ParameterTypeDescription
expandstringComma-separated related fields to expand, e.g. "variants,categories".
limitintegerMax records to return (1–1000, Swell default 15).
pageintegerPage number for pagination (default 1).
searchstringFree-text search across the model's searchable fields.
sortstringSort expression, e.g. "date_created desc" or "name asc".
wherestringMongoDB-style filter as a JSON object string, e.g. {"active":true,"price":{"$gte":10}}.

swell_get_customer Get a customer

Fetch a single customer (Swell `accounts` model) by id. Supports `expand` and `fields`. Swell backend REST API: GET /accounts/{id}.

ParameterTypeDescription
id *stringCustomer (account) id.
expandstringComma-separated related fields to expand, e.g. "orders,subscriptions".
fieldsstringComma-separated fields to return.

swell_list_carts List carts

List shopping carts (including abandoned carts), with filtering, sorting, and expansion. Swell backend REST API: GET /carts.

ParameterTypeDescription
expandstringComma-separated related fields to expand, e.g. "variants,categories".
limitintegerMax records to return (1–1000, Swell default 15).
pageintegerPage number for pagination (default 1).
sortstringSort expression, e.g. "date_created desc" or "name asc".
wherestringMongoDB-style filter as a JSON object string, e.g. {"active":true,"price":{"$gte":10}}.

swell_list_subscriptions List subscriptions

List subscriptions, with filtering, sorting, and expansion. Swell backend REST API: GET /subscriptions.

ParameterTypeDescription
expandstringComma-separated related fields to expand, e.g. "variants,categories".
limitintegerMax records to return (1–1000, Swell default 15).
pageintegerPage number for pagination (default 1).
sortstringSort expression, e.g. "date_created desc" or "name asc".
wherestringMongoDB-style filter as a JSON object string, e.g. {"active":true,"price":{"$gte":10}}.

swell_get_subscription Get a subscription

Fetch a single subscription by id. Supports `expand`. Swell backend REST API: GET /subscriptions/{id}.

ParameterTypeDescription
id *stringSubscription id.
expandstringComma-separated related fields to expand, e.g. "account,product".

swell_list_invoices List invoices

List invoices (typically subscription invoices), with filtering, sorting, and expansion. Swell backend REST API: GET /invoices.

ParameterTypeDescription
expandstringComma-separated related fields to expand, e.g. "variants,categories".
limitintegerMax records to return (1–1000, Swell default 15).
pageintegerPage number for pagination (default 1).
sortstringSort expression, e.g. "date_created desc" or "name asc".
wherestringMongoDB-style filter as a JSON object string, e.g. {"active":true,"price":{"$gte":10}}.

swell_list_coupons List coupons

List discount coupons, with filtering and sorting. Swell backend REST API: GET /coupons.

ParameterTypeDescription
limitintegerMax records to return (1–1000, Swell default 15).
pageintegerPage number for pagination (default 1).
sortstringSort expression, e.g. "date_created desc" or "name asc".
wherestringMongoDB-style filter as a JSON object string, e.g. {"active":true,"price":{"$gte":10}}.

swell_query Query any collection (read-only)

Power tool: read-only (GET only) access to ANY Swell model not covered by a dedicated tool — e.g. stock, promotions, giftcards, payments, shipments, settings. Supply the collection name plus the usual list params (limit, page, where, sort, expand, fields, search). Swell backend REST API: GET /{collection}.

ParameterTypeDescription
collection *stringSwell model/collection name, e.g. "products", "stock", "promotions", "giftcards".
expandstringComma-separated related fields to expand, e.g. "variants,categories".
fieldsstringComma-separated fields to return, e.g. "name,price,active".
limitintegerMax records to return (1–1000, Swell default 15).
pageintegerPage number for pagination (default 1).
searchstringFree-text search across the model's searchable fields.
sortstringSort expression, e.g. "date_created desc" or "name asc".
wherestringMongoDB-style filter as a JSON object string, e.g. {"active":true,"price":{"$gte":10}}.

swell_create_product Create a product

MUTATES LIVE STORE DATA. Create a new product in the store. Provide the common fields directly (name is required); anything else goes in `fields`, which is merged into the request body. Swell backend REST API: POST /products.

ParameterTypeDescription
name *stringProduct name (required).
activebooleanWhether the product is active/visible.
descriptionstringProduct description.
fieldsobjectAny additional product fields, merged into the request body (e.g. attributes, options, images).
pricenumberProduct price.
skustringStock-keeping unit.
stock_levelnumberAvailable stock quantity.
typestringProduct type, e.g. "standard", "subscription", "digital".

swell_update_product Update a product

MUTATES LIVE STORE DATA. Partially update an existing product by id. Provide the id plus a `fields` object of attributes to change. Swell backend REST API: PUT /products/{id}.

ParameterTypeDescription
fields *objectPartial set of product attributes to update, e.g. {"price":19.99,"active":false}.
id *stringProduct id to update (required).

swell_update_order Update an order

MUTATES A LIVE ORDER. Partially update an existing order by id — e.g. change status, fulfillment, or notes. Provide the id plus a `fields` object of attributes to change, e.g. {"status":"complete"}. Swell backend REST API: PUT /orders/{id}.

ParameterTypeDescription
fields *objectPartial set of order attributes to update, e.g. {"status":"complete"} or fulfillment fields.
id *stringOrder id to update (required).