get_price_history
Retrieve a crop's price time series with a summary of start, end, low, high, and percent change. Use it to track price trends or check state-level farm prices by commodity, years, and source.
Instructions
Get a price time series for one crop, plus a summary (start, end, low, high, % change).
Use for trends ("how have corn prices changed since 2022?") and for state-level farm prices ("what are Iowa farmers getting for soybeans?").
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"commodity": "<commodity>"
},
"name": "get_price_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Two-letter US state code (e.g. "IL") for state farm prices. NASS only. | |
| years | No | How many years back to go. | |
| source | No | auto = USDA farm price if available, else global price, else futures. | auto |
| commodity | Yes | Crop name or alias. |