Commodity groups
ime_categoriesLists Iran Mercantile Exchange commodity group IDs, including main groups, groups, and subgroups, for use in trade, supply, and price-history queries.
Instructions
List the exchange's commodity groups: main groups, then groups, then subgroups, with their ids.
No arguments: main groups. main_cat: its groups. main_cat plus cat: subgroups. Use the ids as main_cat/cat/sub_cat in ime_trades, ime_supply and ime_price_history.
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": "ime_categories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cat | No | Group id (with main_cat) to list its subgroups. | |
| main_cat | No | Main group id to list its groups (0 = list the main groups). |