compare_sources
Compare two sources for schema differences and distribution drift, returning a drop-in verdict (safe/risky/incompatible) with PSI/KS/chi-square stats. Samples large sources; optional key overlap.
Instructions
Schema diff + per-column distribution drift between two loaded sources.
Returns a 'drop-in verdict' (safe / risky / incompatible). Numeric drift
via PSI (Population Stability Index, scale-invariant) + KS test p-value.
Categorical drift via PSI + chi-square + value-set diff. Auto-samples
sources over 500K rows. Pass `keys` for join-key overlap stats.
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": {
"source_a": "<source_a>",
"source_b": "<source_b>"
},
"name": "compare_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | ||
| source_a | Yes | ||
| source_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||