Query any collection (read-only)
swell_queryPower 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}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination (default 1). | |
| sort | No | Sort expression, e.g. "date_created desc" or "name asc". | |
| limit | No | Max records to return (1–1000, Swell default 15). | |
| where | No | MongoDB-style filter as a JSON object string, e.g. {"active":true,"price":{"$gte":10}}. | |
| expand | No | Comma-separated related fields to expand, e.g. "variants,categories". | |
| fields | No | Comma-separated fields to return, e.g. "name,price,active". | |
| search | No | Free-text search across the model's searchable fields. | |
| collection | Yes | Swell model/collection name, e.g. "products", "stock", "promotions", "giftcards". |