create_kpi
Define a Key Performance Indicator by selecting a source table, aggregate function (COUNT, AVG, SUM, MIN, MAX), and optional filters. Specify name and unit to track metrics from ServiceNow data.
Instructions
[Write] Create a Key Performance Indicator from ServiceNow data
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": {
"name": "<name>",
"table": "<table>",
"aggregate": "<aggregate>"
},
"name": "create_kpi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | KPI name | |
| unit | No | Display unit | |
| field | No | Aggregate field | |
| table | Yes | Source table | |
| aggregate | Yes | Aggregate function: COUNT/AVG/SUM/MIN/MAX | |
| conditions | No | Encoded query filter |