Query the catalog
catalog_queryFilter, sort, and paginate catalog records using equality, numeric bounds, array membership, and substring filters, returning matching records with counts.
Instructions
Filter, sort, and page through catalog records. Returns { count, total_matching, total_records, records }. Use catalog_schema first if you are unsure which fields exist. Example: filter {"eq":{"condition":"used"},"max":{"price":30000},"has":{"features":["Solar"]}}, sort_by "price".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| fields | No | Project each record down to these fields. | |
| filter | No | Filter spec. Keys: eq (equality: {"type":"tent","heated":true}), min / max (numeric bounds: {"price":100}; records without a number in a bounded field are excluded), has (array membership, all required: {"tags":["a","b"]}), contains (case-insensitive substring: {"name":"alpine"}; use field "*" to search all string fields). | |
| offset | No | ||
| sort_by | No | Field to sort by. Records missing the field sort last. | |
| sort_dir | No | asc |