usda_esr_list_commodities
List USDA ESR commodities with their codes and unit IDs, optionally filtered by search text matching code or name, for mapping commodity_code values in ESR data queries.
Instructions
List ESR's commodities with their codes, the values commodity_code takes.
Answered from ESRData_GetCommodities as packaged with this version
(reference/commodities.json), without an upstream call: 44 commodities when
packaged, in upstream order, from 101 (Wheat - HRW) to 1702 (Fresh, Chilled, or
Frozen Muscle Cuts of Pork), each with the unit_id ESR reports it in
(list_units_of_measure), e.g. 104 Wheat - White, 401 Corn, 801
Soybeans (all 1, Metric Tons), 1404 All Upland Cotton (2, Running Bales).
Names are upstream's, unchanged. meta.retrieved_at is when the package fetched the
list; meta.vintage is empty, as upstream gives the list no release identifier.
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": "usda_esr_list_commodities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Keep the commodities where this text occurs, ignoring case, in the code (as digits) or the name, e.g. ``"wheat"`` (101 to 107 and 201 Wheat Products), ``"cotton"`` (1201 to 1203 cottonseed and its products, 1301 and 1401 to 1404 the cottons), ``"104"`` (104 Wheat - White), ``"14"`` (1401 to 1404, and 1498 and 1499, rough rice: the code matches as text). Omit (``None``) for all. |