Get Commodity Price
opa_get_priceRetrieve the latest source-timestamped price for a single energy commodity. Accepts natural language names or API codes, returning price, currency, change fields, and timestamp.
Instructions
Get the latest available, source-timestamped value for an energy commodity. Use when the user asks about a single commodity's latest price. Accepts natural language ('brent oil', 'diesel') or API codes ('WTI_USD'). Returns price, currency, available change fields, and timestamp. For multiple commodities at once, use opa_market_overview. For price trends, use opa_get_history.
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": "opa_get_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commodity | Yes | Commodity name or code (e.g., 'brent oil', 'natural gas', 'WTI_USD', 'diesel') |