Get crop price
get_priceGet the average price (ZAR per kg) of a crop at one market. Returns provenance (source, asOf).
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": {
"crop": "<crop>",
"marketId": "<marketId>"
},
"name": "get_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | Yes | Crop name, e.g. tomatoes | |
| marketId | Yes | Market id: jhb, tsh, cpt, dbn or eln (call list_markets to see them) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | Yes | ||
| crop | Yes | ||
| source | Yes | ||
| marketId | Yes | ||
| marketName | Yes | ||
| priceZarPerKg | Yes |