create_report
Create a saved report on any ServiceNow table by defining type, grouping, filters, and aggregation.
Instructions
Create a new saved report on any table (requires WRITE_ENABLED=true)
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": {
"title": "<title>",
"table": "<table>",
"type": "<type>"
},
"name": "create_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Report type: "bar", "column", "pie", "line", "list", "gauge", "single_score", "trend", "pivot", "calHeatmap" | |
| field | No | Primary grouping field for the report | |
| query | No | Encoded query to filter report data | |
| roles | No | Comma-separated roles that can view the report | |
| table | Yes | Table to report on (e.g. "incident", "change_request") | |
| title | Yes | Report title displayed in the list | |
| group_by | No | Secondary grouping field (stacked charts) | |
| aggregate | No | Aggregate function: COUNT (default), SUM, AVG, MIN, MAX |