Compare contract variants
cashflow_compare_contractsCompare 2-5 contract variants side by side and rank them by NPV, IRR, or payback to choose between payment plans, terms, or pricing structures.
Instructions
Evaluate two to five named contract variants and rank them side by side.
Built for the question these models exist to answer: pay cash or finance, 24 months interest-free or 36 with interest, higher fixed fee or higher per-unit price, 3-year term or 5-year.
Args:
variants (array): 2 to 5 entries of { name, model }.
rank_by ('npv' | 'irr' | 'payback'): Which metric orders the result. Default 'npv'.
response_format ('markdown' | 'json'): Default 'markdown'.
Returns: variants[] ordered best first by the chosen metric, each with its headline metrics and financing cost, plus the name of the winner.
Ranking by IRR places variants without a reportable IRR last, because an absent IRR is not a low one.
Examples:
Use when: "Should we take the 24-month interest-free plan or pay cash?"
Use when: "Compare a 3-year and a 5-year term on the same contract."
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rank_by | No | Metric that orders the result. | npv |
| variants | Yes | The variants to compare. | |
| response_format | No | 'markdown' for a readable report, 'json' for the full structured result. Structured data is returned either way in structuredContent. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| winner | Yes | ||
| rankedBy | Yes | ||
| variants | Yes |