explain_duplicate
Compares identification fields of two CIs side-by-side to determine if they are true duplicates or false positives, showing which rule matched or failed.
Instructions
Explain why two CIs might be duplicates by comparing their identification fields.
Fetches both CIs and the identification rules for their class, then compares the identifier fields side-by-side. This helps determine whether two CIs are true duplicates or false positives, and which identification rule matched (or failed to match).
Prerequisites: Use find_duplicate_cis to identify the duplicate pair first.
Example: explain_duplicate(sys_id_a="abc123...", sys_id_b="def456...", table="cmdb_ci_server")
Args: sys_id_a: sys_id of the first CI. sys_id_b: sys_id of the second CI. table: The CMDB table both CIs belong to (default cmdb_ci).
Returns: JSON object with both CIs' key fields, the applicable identification rules, and a field-by-field comparison showing matches and mismatches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sys_id_a | Yes | ||
| sys_id_b | Yes | ||
| table | No | cmdb_ci |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |