GetCollections
Retrieve, filter, and sort collections using fields like handle, title, or custom queries. Paginate results for efficient data access within the Medusa MCP Server environment.
Instructions
Retrieve a list of collections. The collections can be filtered by fields such as handle. The collections can also be sorted or paginated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| $and | No | ||
| $or | No | ||
| created_at | No | ||
| fields | No | ||
| handle | No | ||
| limit | No | ||
| offset | No | ||
| order | No | ||
| q | No | ||
| title | No | ||
| updated_at | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"$and": {
"items": {
"type": "string"
},
"type": "array"
},
"$or": {
"items": {
"type": "string"
},
"type": "array"
},
"created_at": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"fields": {
"type": "string"
},
"handle": {
"type": "string"
},
"limit": {
"type": "number"
},
"offset": {
"type": "number"
},
"order": {
"type": "string"
},
"q": {
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"additionalProperties": false,
"properties": {},
"type": "object"
}
},
"type": "object"
}