compare_two
Compare two options head-to-head using weighted criteria, returning the winner, score margin, per-criterion wins, and a detailed breakdown for transparent decision-making.
Instructions
Head-to-head comparison of exactly two options. Returns the winner, score margin, how many criteria each option wins, and a per-criterion breakdown. Pass option_a/option_b (names) or a 2-element options array, plus criteria and scores.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | weighted_sum | |
| scores | Yes | Score matrix. {"Option A": {"Criterion 1": 8, ...}, ...} or array form or inline on options. | |
| options | No | Named alternatives. Strings or {name, scores} objects. | |
| criteria | Yes | Weighted criteria. Each: {name, weight (relative, >=0), direction: 'benefit' (higher better, default) | 'cost' (lower better)}. | |
| option_a | No | ||
| option_b | No |