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.
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": {
"criteria": "<criteria>",
"scores": "<scores>"
},
"name": "compare_two"
}
}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 |