get_ai_usage
Reports ServiceNow AI usage for Now Assist and other AI sources over a date range, grouping inventory/billing counts and generative AI consumption by a chosen field.
Instructions
Report AI usage for Otto (Now Assist) and other AI: AI Control Tower inventory/billing counts (sn_ai_governance_ai_inventory_usage, daily snapshots) and Generative AI assist consumption (sys_gen_ai_usage_log), over a date range and grouped by a field.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_ai_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date YYYY-MM-DD (default today) | |
| from | No | Start date YYYY-MM-DD (default 30 days ago) | |
| source | No | Which usage source (default both) | |
| group_by | No | Group field. inventory: type (default), source, accrual_date. genai_log: feature (default), plugin_name, license_name, strategy, status, execution_type, user, document_table |