Work out rooftop solar payback
spg_solar_paybackRooftop solar payback with the site calculator's math. Start from a state (fills in its 2025 rate, PVWatts output, and median price) and override anything with the user's own numbers.
Size the system either directly (system_kw) or from a monthly bill and the share of usage to cover. value_pct is what each kWh is worth on average as a share of the retail rate: 100 where exports earn retail, lower where they don't (for example 70 to 80 under net billing with good self-use). No federal credit is applied (25D ended after 2025); pass incentive_usd for any state or utility incentive.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "spg_solar_payback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | State name or code, to fill in defaults | |
| cover_pct | No | Share of yearly usage to cover when sizing from the bill (default 100) | |
| system_kw | No | System size in kW DC | |
| value_pct | No | Average value of each kWh as % of retail (default 100) | |
| rate_cents | No | Price per kWh in cents | |
| price_per_w | No | Installed price per watt, before incentives | |
| incentive_usd | No | Upfront incentives in USD (state credits, rebates) | |
| rate_rise_pct | No | Yearly electricity price rise, % (default 0) | |
| kwh_per_kw_year | No | Yearly output per kW for the roof (PVWatts gives it) | |
| monthly_bill_usd | No | Average monthly electric bill, to size the system |