Calculate a metric
calculate_metricEvaluate a formula entry, such as OEE, with your inputs. Get the variable symbols from get_entry first.
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": {
"id": "<id>",
"inputs": "<inputs>"
},
"name": "calculate_metric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Operational entry id, e.g. 'oee' | |
| inputs | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| unit | No | ||
| inputs | Yes | ||
| result | Yes | ||
| warnings | Yes | ||
| expression | Yes |