explain_match
Explains the match score between one expected and one observed record, returning signal weights for tuning scoring rules 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:
Scores one pair rather than an entire batch; use reconcile for multi-record batches.
Compares amounts directly rather than converting across currencies; use match_amounts_with_fx_drift with an explicit FX rate.
Behavioral transparency: Pure, deterministic, side-effect-free, read-only calculation without external dependencies.
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": {
"expected": "<expected>",
"observed": "<observed>"
},
"name": "explain_match"
}
}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 | |||