explain_match
Break down a single expected-versus-observed record match score by reference, amount, date, and name signals for tuning weights or reviewing match confidence.
Instructions
Explain the match score between one expected and one observed record.
Purpose: Scores a single transaction pair across reference, amount, date, and name signals, returning individual signal weights and an explanation even for pairs below threshold.
When to use:
When tuning scoring weights, tolerances, or debugging match decisions.
When explaining match confidence for human review or exception handling.
When NOT to use:
Do NOT use for entire batches; use reconcile instead.
Do NOT use for cross-currency conversions without a known FX rate; use match_amounts_with_fx_drift.
Behavioral transparency: Pure, deterministic, side-effect-free, read-only calculation without external dependencies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Optional tuning object: 'abs_tol'/'rel_tol' (amount tolerance), 'date_window_days', 'high_threshold', 'review_threshold', 'currency_strict', 'enable_one_to_many', 'max_combination'. | |
| expected | Yes | One expected record. | |
| observed | Yes | One observed record. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||