analyze_performance
Analyze ServiceNow instance performance by identifying slow scripts, auditing scheduled jobs, suggesting database indexes, clustering error patterns, or auditing business rules for any table.
Instructions
Analyse ServiceNow instance performance. Supported modes:
slow_scripts — Find slow Business Rules and scripts from syslog (last N minutes) scheduled_jobs — Audit scheduled job durations suggest_indexes — Suggest DB indexes for a table based on BR query patterns error_patterns — Cluster recent system log errors by pattern audit_business_rules — Full BR performance audit for a table (no conditions, sync REST, etc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| table | No | Table name (required for suggest_indexes and audit_business_rules) | |
| minutes_back | No | ||
| threshold_ms | No | Slow script threshold in ms | |
| hours | No | Hours back for error_patterns | |
| limit | No |