List collections
list_collectionsList the merchant's product collections/categories. Resolves a collection the merchant names ("products from the Spring collection") to the id search_products takes. Only some platforms report a parent collection, so parentId is often null and a flat list is not evidence the store has no hierarchy.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_collections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max collections to return (default 200). | |
| search | No | Case-insensitive substring match on the collection name. | |
| source | No | Same meaning as in search_products. | |
| parentId | No | Only the direct children of this collection. Useful for walking a deep hierarchy one level at a time. | |
| topLevelOnly | No | Only collections with no parent. Ignored when parentId is given. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| source | Yes | ||
| truncated | Yes | ||
| accountNote | No | ||
| collections | Yes |