List categories
sh_categoriesList the category tree with IDs, URL paths, levels, and product and shop counts. Search all levels by Persian name or English slug to find a category ID, or browse up to a chosen depth.
Instructions
List the category tree with ids, URL paths and levels, plus total product and shop counts.
Use to get a category_id. A query searches every level; without one only levels up to max_level are listed.
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": "sh_categories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Persian name or English slug path, e.g. 'مانتو' or 'sneakers'. | |
| max_level | No | Deepest level without a query. |