Rank states
spg_rank_statesRank the 50 states and DC by one measure: the 2025 home electricity rate, expected solar output (kWh per kW a year, PVWatts), best-case payback of a typical 7.7 kW system, or Berkeley Lab's median installed price (only the 16 states it reports).
Examples: "Where does solar pay back fastest?" -> metric="payback", order="asc". "Most expensive electricity" -> metric="rate", order="desc".
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": {
"metric": "<metric>"
},
"name": "spg_rank_states"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| order | No | desc: highest first; asc: lowest first | desc |
| metric | Yes |