List categories
bs_categoriesBrowse Basalam's category tree to find category IDs for filtering product searches; list top-level categories or look up a category by name and get its path.
Instructions
Browse Basalam's category tree and return ids for the category_id filter of bs_search.
No arguments lists the top level; query finds a category by name (returns its path).
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": "bs_categories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Title contains this, any depth (inside parent_id if given), e.g. 'عسل'. | |
| parent_id | No | List its children, e.g. 1 (food); omit for top level. |