Swell MCP by usefulapi
v1.41.1Manage 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.
| Parameter | Type | Description |
|---|---|---|
expand | string | Comma-separated related fields to expand, e.g. "variants,categories". |
fields | string | Comma-separated fields to return, e.g. "name,price,active". |
limit | integer | Max records to return (1–1000, Swell default 15). |
page | integer | Page number for pagination (default 1). |
search | string | Free-text search across the model's searchable fields. |
sort | string | Sort expression, e.g. "date_created desc" or "name asc". |
where | string | MongoDB-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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | Product id or slug. |
expand | string | Comma-separated related fields to expand, e.g. "variants,categories". |
fields | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
expand | string | Comma-separated related fields to expand, e.g. "variants,categories". |
limit | integer | Max records to return (1–1000, Swell default 15). |
page | integer | Page number for pagination (default 1). |
search | string | Free-text search across the model's searchable fields. |
sort | string | Sort expression, e.g. "date_created desc" or "name asc". |
where | string | MongoDB-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.
| Parameter | Type | Description |
|---|---|---|
expand | string | Comma-separated related fields to expand, e.g. "variants,categories". |
limit | integer | Max records to return (1–1000, Swell default 15). |
page | integer | Page number for pagination (default 1). |
search | string | Free-text search across the model's searchable fields. |
sort | string | Sort expression, e.g. "date_created desc" or "name asc". |
where | string | MongoDB-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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | Order id or order number. |
expand | string | Comma-separated related fields to expand, e.g. "items,account". |
fields | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
expand | string | Comma-separated related fields to expand, e.g. "variants,categories". |
limit | integer | Max records to return (1–1000, Swell default 15). |
page | integer | Page number for pagination (default 1). |
search | string | Free-text search across the model's searchable fields. |
sort | string | Sort expression, e.g. "date_created desc" or "name asc". |
where | string | MongoDB-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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | Customer (account) id. |
expand | string | Comma-separated related fields to expand, e.g. "orders,subscriptions". |
fields | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
expand | string | Comma-separated related fields to expand, e.g. "variants,categories". |
limit | integer | Max records to return (1–1000, Swell default 15). |
page | integer | Page number for pagination (default 1). |
sort | string | Sort expression, e.g. "date_created desc" or "name asc". |
where | string | MongoDB-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.
| Parameter | Type | Description |
|---|---|---|
expand | string | Comma-separated related fields to expand, e.g. "variants,categories". |
limit | integer | Max records to return (1–1000, Swell default 15). |
page | integer | Page number for pagination (default 1). |
sort | string | Sort expression, e.g. "date_created desc" or "name asc". |
where | string | MongoDB-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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | Subscription id. |
expand | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
expand | string | Comma-separated related fields to expand, e.g. "variants,categories". |
limit | integer | Max records to return (1–1000, Swell default 15). |
page | integer | Page number for pagination (default 1). |
sort | string | Sort expression, e.g. "date_created desc" or "name asc". |
where | string | MongoDB-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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max records to return (1–1000, Swell default 15). |
page | integer | Page number for pagination (default 1). |
sort | string | Sort expression, e.g. "date_created desc" or "name asc". |
where | string | MongoDB-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}.
| Parameter | Type | Description |
|---|---|---|
collection * | string | Swell model/collection name, e.g. "products", "stock", "promotions", "giftcards". |
expand | string | Comma-separated related fields to expand, e.g. "variants,categories". |
fields | string | Comma-separated fields to return, e.g. "name,price,active". |
limit | integer | Max records to return (1–1000, Swell default 15). |
page | integer | Page number for pagination (default 1). |
search | string | Free-text search across the model's searchable fields. |
sort | string | Sort expression, e.g. "date_created desc" or "name asc". |
where | string | MongoDB-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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Product name (required). |
active | boolean | Whether the product is active/visible. |
description | string | Product description. |
fields | object | Any additional product fields, merged into the request body (e.g. attributes, options, images). |
price | number | Product price. |
sku | string | Stock-keeping unit. |
stock_level | number | Available stock quantity. |
type | string | Product 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}.
| Parameter | Type | Description |
|---|---|---|
fields * | object | Partial set of product attributes to update, e.g. {"price":19.99,"active":false}. |
id * | string | Product 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}.
| Parameter | Type | Description |
|---|---|---|
fields * | object | Partial set of order attributes to update, e.g. {"status":"complete"} or fulfillment fields. |
id * | string | Order id to update (required). |