compare_instances
Compare ServiceNow instances to detect drift: verify record counts for a table (with optional query) or system property values across environments for 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 |
|---|---|---|---|
| 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) |