Sweep one or two inputs
rentbuy_sweepVaries one input (or a grid of two) across a range and returns, for every point, the buyer-minus-renter net worth at year 30 after selling costs, the winner, both net worths and the break-even year, plus the interpolated crossover value where the winner flips for single-parameter sweeps. Give values[] or min, max and steps (2 to 50 per axis, at most 400 grid points). Other inputs come from "base" or the site defaults. Use it for sensitivity questions such as "at what rent does buying win?" or "how does the result change with the mortgage rate?".
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": {
"axis": "<axis>"
},
"name": "rentbuy_sweep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | Yes | ||
| base | No | Inputs held fixed during the sweep. | |
| secondAxis | No | Optional second input for a grid. | |
| oneTimeCosts | No | Up to 20 one-time costs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| unit | Yes | ||
| points | Yes | One row per grid point; difference is buy minus rent at year 30 after selling costs. | |
| crossover | Yes | Single-parameter sweeps only: the interpolated value where the winner flips, or null. | |
| parameter | Yes | ||
| secondUnit | Yes | ||
| secondParameter | Yes |