compare_instances
Compare record counts for a table (with optional query) and system property values across two configured ServiceNow instances to detect dev-to-prod drift and support governance.
Instructions
Compare two configured ServiceNow instances: record counts for a table (with optional query) and/or a specific system property value. Useful for dev→prod drift detection and governance.
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": {
"instance_a": "<instance_a>",
"instance_b": "<instance_b>"
},
"name": "compare_instances"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| async | No | Run as a background job and return a job_id at once. Poll it with get_job. Calls that take longer than about 20 seconds switch to a job on their own. | |
| query | No | Encoded query to scope the count (optional) | |
| table | No | Table to compare record counts for (optional) | |
| property | No | A sys_properties name to compare values for (optional) | |
| instance_a | Yes | First instance name (as configured) | |
| instance_b | Yes | Second instance name (as configured) |