List Incidents
servicenow_list_incidentsQuery ServiceNow incidents by state, priority, assignment, or date to retrieve matching records with status and timestamps.
Instructions
List and search ServiceNow incidents with filters.
Args:
query (string): Encoded query (e.g., 'state=1', 'priority=1^assignment_group.name=Service Desk', 'opened_at>=2024-01-01'). Empty = all open incidents.
limit (number): Max results (1–100, default 20)
offset (number): Pagination offset
response_format: 'markdown' or 'json'
Common query examples:
All new incidents: 'state=1'
My assigned incidents: 'assigned_to=javascript:gs.getUserID()'
High priority open: 'priority<=2^state!=7^state!=6'
Incidents by group: 'assignment_group.name=Network Operations'
Recent (last 7 days): 'opened_at>=javascript:gs.beginningOfLast7Days()'
Returns: List of incidents with state, priority, assignment, and timestamps
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (1–100, default 20) | |
| query | No | Encoded ServiceNow query (default: non-closed) | state!=7^state!=6 |
| offset | No | Number of results to skip for pagination (default 0) | |
| response_format | No | Output format: 'markdown' (default) for human-readable or 'json' for structured data | markdown |