create_kpi
Define and generate a KPI using ServiceNow data, with options for aggregation and filtering.
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 |