query_table
Query ServiceNow tables with sysparm_query filters to find records like incidents, change requests, and assets. Returns human-readable display values for reference fields.
Instructions
Query any ServiceNow table using a sysparm_query filter. Use this to find records — incidents, change requests, hardware assets, anything. Returns human-readable display values for reference fields. Subject to the table + field allowlist; some tables and fields will be denied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max records to return. Hard cap: 50. Default: 10. | |
| query | No | sysparm_query filter string. Example: 'active=true^priority=1'. Some identity-revealing filters (like caller_id) are denied. Max 500 chars. | |
| table | Yes | ServiceNow table name. Allowed tables: 'incident', 'kb_knowledge', 'sc_request', 'change_request'. Other tables will be denied. | |
| fields | No | Comma-separated list of fields to return. Disallowed fields are silently dropped. Omit to return the full set of allowed fields for the table. |