{"openapi":"3.0.3","info":{"title":"Meter Energy Public API","version":"1.0.0","description":"REST endpoints for Meter Energy's public tools — Texas electricity plan lookup, TDU rate retrieval, ESI ID lookup, bill math, and related primitives. Every tool listed here is also exposed via the Meter Energy MCP server (see /.well-known/mcp.json) for ChatGPT, Claude, and other MCP-aware agents.","contact":{"name":"Meter Energy","url":"https://meterplan.com","email":"tyler@meterplan.com"},"license":{"name":"Proprietary","url":"https://meterplan.com/terms"},"x-publisher":{"name":"Meter Energy Inc.","puctBrokerNumber":"BR250137","url":"https://meterplan.com"},"x-discovery":{"mcpManifest":"https://meterplan.com/.well-known/mcp.json","llmsTxt":"https://meterplan.com/llms.txt","llmsFullTxt":"https://meterplan.com/llms-full.txt","toolLandingPages":"https://meterplan.com/tools"}},"servers":[{"url":"https://meterplan.com","description":"Production"}],"tags":[{"name":"plan-comparison","description":"Tools for finding and comparing Texas retail electricity plans."},{"name":"data-feed","description":"Public structured data feeds for AI agents and integrations."},{"name":"bill-analysis","description":"Tools that read or audit a customer's electricity bill or meter data."},{"name":"battery-economics","description":"Tools that model battery savings, VPP credits, and ROI."}],"paths":{"/api/v1/find-electricity-plan":{"post":{"operationId":"find_electricity_plans","summary":"Texas Electricity Plan Finder","description":"Use when a user wants to compare residential electricity plans in a deregulated Texas ZIP code, estimate a bill, or filter by contract term, provider, or 100% renewable content. Requires a ZIP code; usage defaults to 1000 kWh/month. Optional monthly solar export kWh (for example avgMonthlyExportKwh from a Smart Meter Texas pull) returns Meter's solar buyback plans, Saver and Earner, each priced with its buyback credit at that import/export mix; market plans are compared for homes without exports. Returns a curated selection sorted by estimated effective rate, with fees, terms, EFL and signup links. Compact results may include a Meter plan and favor selected providers; they are not an exhaustive cheapest-plan list. Unmatched provider filters return clearly labeled alternatives. Records search analytics and diagnostic logs. Does not enroll users, access accounts, or support municipal utilities, co-ops, commercial service, battery-credit calculations, or other states.\n\nCompare residential electricity plans in supported deregulated Texas service areas.\n\n**Inputs:** a five-digit Texas ZIP code, optional monthly usage (250–5000 kWh),\noptional monthly solar exports (kWh), exact or minimum contract length, provider,\nrenewable-only preference, and result limit. Usage defaults to 1000 kWh. Generic searches without a term filter use 12-month plans;\nprovider-specific searches do not impose that default.\n\n**Results:** competitor estimates interpolate disclosed EFL average rates, using\n500-kWh or 2000-kWh rates outside that range. Meter estimates use Meter's plan\ncalculator with a Light quote, cached for up to six hours. Estimates are approximate.\n\n**Solar exports:** when monthly export kWh is supplied, the result lists Meter's solar\nbuyback plans only: Saver and Earner, quoted live and each priced at that import/export\nmix with Meter's plan calculator, sorted by monthly estimate. Each estimate subtracts the\nplan's fixed buyback credit, reported as exportCreditEstimate. Market plans are compared\nfor homes without exports, and provider or renewable filters do not apply to solar homes.\nWithout export kWh the results are unchanged.\n\nResults are capped at six plans regardless of the requested limit. Generic comparisons\nmay include Meter Standard, the two cheapest indexed plans, and selected higher-priced\nproviders. Requests for one or two plans return the cheapest candidates. Without a\nMeter quote, results favor Reliant and TXU when available. An unmatched provider\nfilter returns labeled alternatives. Failed or unsupported service-area lookups return an error, not fallback rates.\n\nPlan documents and signup open external websites after a user clicks. The tool does\nnot enroll customers. Invocation inputs and outbound clicks are recorded for analytics.\nBattery-credit calculations are outside this tool's scope.","tags":["plan-comparison"],"x-status":"live","x-audience":["homeowner","agent"],"x-mcp-tool-name":"find_electricity_plans","x-examples":["What's a good electricity plan in Texas (75001)?","Cheapest Texas electricity plan in Houston (77002), 1200 kWh/mo.","Find a 24-month electricity plan for 76102.","100% renewable Texas electricity plan for 76101.","TXU plans available at 75201 for 500 kWh/mo."],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"zipCode":{"type":"string","pattern":"^\\d{5}$","description":"5-digit Texas ZIP code where service will start. Examples: '75201' (Dallas), '77002' (Houston), '76102' (Fort Worth), '78401' (Corpus Christi)."},"usageKwh":{"type":"number","minimum":250,"maximum":5000,"description":"Estimated monthly electricity usage in kWh. Typical Texas residential usage: ~500 kWh (apartment), ~1000 kWh (small home, default), ~2000 kWh (large home with electric heat/AC). Defaults to 1000 if omitted."},"exportKwh":{"type":"number","minimum":0,"maximum":5000,"description":"Optional. Average monthly solar export to the grid in kWh. Pass avgMonthlyExportKwh from a completed get_smt_data / request_smt_data pull when hasSolarExports is true, or the 'received' / 'surplus' / negative net kWh line on a solar bill. When greater than 0, the result lists Meter's solar buyback plans (Saver and Earner) only, each priced with its buyback credit at this import/export mix and sorted by monthlyEstimate, with exportCreditEstimate per plan; market plans are compared only for homes without exports. Omit (or pass 0) for homes without solar: results are then identical to a call without it."},"termMonths":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Exact contract length in months (e.g. 12, 24, 36). Use this when the user specifies an exact term. If they say 'at least N months' or 'N months or longer', use minTermMonths instead."},"minTermMonths":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Minimum contract length in months (returns plans with term >= this value). Use this for ranges like 'at least 12 months' or 'a year or longer'. For an exact term, use termMonths instead."},"renewableOnly":{"type":"boolean","description":"When true, only return 100% renewable / green energy plans. Use when the user asks for green, clean, wind, solar, or 100% renewable plans."},"retailer":{"type":"string","description":"Filter by retail electric provider (REP) name; if no provider matches, returns clearly labeled alternatives. Common Texas retailers include: TXU Energy, Reliant, Green Mountain Energy, Direct Energy, Gexa, Constellation, Cirro, Discount Power, Frontier, 4Change, Champion, Pulse Power, Octopus Energy, Rhythm, Chariot. Partial matches accepted."},"limit":{"type":"integer","exclusiveMinimum":true,"minimum":0,"maximum":500,"description":"Maximum result count, 1 to 6 (default 6); larger values are reduced to 6. Results are a curated selection that may include Meter Standard and selected providers rather than every cheapest plan."}},"required":["zipCode"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool ran successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"criteria":{"type":"object","properties":{"zipCode":{"type":"string"},"usageKwh":{"type":"number"},"termMonths":{"type":"number","nullable":true},"renewableOnly":{"type":"boolean"},"exportKwh":{"type":"number"}},"required":["zipCode","usageKwh","termMonths","renewableOnly"],"additionalProperties":false,"description":"The criteria used to compute these results. Echoed back so the agent can confirm assumptions."},"utility":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"],"additionalProperties":false,"description":"The TDU serving the ZIP. Absent if the utility could not be determined."},"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Stable identifier for the plan row: an index row id, or 'meter-{group}-{term}-{tdu}' for a Meter quote."},"name":{"type":"string","description":"Plan product name as listed by the retailer."},"retailer":{"type":"string","description":"Retail electric provider (REP) name, e.g. 'TXU Energy', 'Reliant'."},"retailerLogo":{"type":"string","nullable":true,"description":"Retailer logo URL, preferably an app-relative static asset path. Null if no logo is on file."},"retailerWebsite":{"type":"string","nullable":true,"description":"Retailer's public website URL, if known."},"signupUrl":{"type":"string","description":"Direct URL where the customer can sign up for this plan."},"etf":{"type":"number","nullable":true,"description":"Early termination fee in dollars. Null if the plan has no ETF or the value is not on file."},"termLengthMonths":{"type":"number","description":"Contract length in months."},"baseFee":{"type":"number","description":"Monthly base fee charged by the retailer, in dollars."},"energyRate":{"type":"number","description":"Effective rate at the user's usage level, in cents/kWh. Interpolated between the EFL's 500/1000/2000 kWh average rates."},"renewablePercent":{"type":"number","description":"Percentage of energy from renewable sources (0-100)."},"utility":{"type":"string","nullable":true,"description":"TDU display name (e.g. 'ONCOR', 'CenterPoint')."},"utilityCode":{"type":"string","nullable":true,"description":"TDU code (e.g. 'ONCOR', 'CNP', 'AEP_CENTRAL', 'AEP_NORTH', 'TNMP', 'LPPL')."},"eflUrl":{"type":"string","nullable":true,"description":"URL to the Electricity Facts Label (EFL) — the legally-required disclosure document — if available."},"monthlyEstimate":{"type":"number","description":"Estimated monthly bill at the user's usage level, in dollars. Computed as `usageKwh × energyRate` where energyRate is the EFL average for that usage bucket (TDU charges + base fee are baked in). For Meter's plans the estimate comes from Meter's plan calculator (energy, delivery and base fee). When exportKwh was supplied, the plan's solar buyback credit (exportCreditEstimate) has already been subtracted."},"exportRate":{"type":"number","nullable":true,"description":"Only present when exportKwh was supplied. Solar buyback rate the plan pays for exported kWh, in cents/kWh. Null only when exportRateType is not 'fixed'."},"exportRateType":{"type":"string","enum":["fixed","real_time_wholesale","not_on_file"],"description":"Only present when exportKwh was supplied. How the plan credits exports. Meter's Saver and Earner are 'fixed' (a published cents/kWh rate, in exportRate). 'real_time_wholesale' and 'not_on_file' are kept for compatibility and are not currently returned."},"exportCreditEstimate":{"type":"number","description":"Only present when exportKwh was supplied. Monthly solar buyback credit applied to this plan's estimate, in dollars (already subtracted from monthlyEstimate). Credit beyond what the plan lets exports offset banks forward or is forfeited and is not counted here."},"googleRating":{"type":"number","nullable":true,"description":"Google Business Profile star rating (0-5) for the retailer, if known."},"googleReviewsUrl":{"type":"string","nullable":true,"description":"URL to the retailer's Google reviews, if known."}},"required":["id","name","retailer","retailerLogo","retailerWebsite","signupUrl","etf","termLengthMonths","baseFee","energyRate","renewablePercent","utility","utilityCode","eflUrl","monthlyEstimate","googleRating","googleReviewsUrl"],"additionalProperties":false},"description":"Selected electricity plans sorted by estimated effective rate. Compact results may include Meter Standard and favor selected providers; they are not an exhaustive list of the cheapest plans. When exportKwh > 0, only Meter's solar buyback plans (Saver and Earner), sorted by monthlyEstimate."},"summary":{"type":"string","description":"One-line text summary for hosts that can't render the widget (e.g. voice). Names the cheapest plan, the retailer, and the monthly estimate."}},"required":["criteria","plans","summary"],"additionalProperties":false}}}},"400":{"description":"Request body was missing, malformed JSON, or failed input schema validation.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"422":{"description":"Input was valid but the tool could not complete the request. `message` is safe to show the user.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"500":{"description":"Tool execution failed or produced an output that violated the schema.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}}}}},"/api/v1/list-solar-buyback-plans":{"post":{"operationId":"list_solar_buyback_plans","summary":"Texas Solar Buyback Plan Catalog","description":"Return the current catalog of solar buyback plans available in Texas, across every deregulated TDU (Oncor, CenterPoint, AEP Texas Central, AEP Texas North, TNMP, Lubbock Power & Light). Includes Meter Energy plans (fetched live from the Light API) plus competitor plans (TXU, Reliant, Octopus, Rhythm, Gexa, Cirro, Champion, and others). For each plan: provider name, plan name, TDU, contract term, import rate (¢/kWh), export buyback rate, base fee, ETF, estimated annual cost at a default profile, battery program support, signup URL, and source URL. Optional filters: tdu, providerType, termMonths.\n\nA developer-facing data feed of every Texas solar buyback plan Meter\ntracks. Backed by the same engine that powers the public JSON feed at\n`/data/texas-solar-buyback-plans.json` and the markdown feed at\n`/data/texas-solar-buyback-plans.md` — surfaced here as a callable tool\nso it shows up in the discovery manifest and OpenAPI spec, and can be\nbundled into a submitted MCP app when it has a clear user-facing job.\n\n**What you get:**\n- `plans` — array of solar buyback plans. Each row is a (provider × plan\n  × TDU) tuple with import rate, export rate, base fee, ETF, term length,\n  estimated annual cost at a default profile, battery program support,\n  and source/signup URLs.\n- `tduReferences` — representative ZIP code for each Texas TDU. Useful\n  for downstream lookups against `get-utility-for-zip` or\n  `get-tdu-delivery-rates`.\n- `assumptions` — the default energy profile used to compute\n  `estimatedAnnualCostDollars`. Override these client-side if you have\n  the customer's actual usage shape.\n- `sourceStatus` — per-source freshness and coverage status. Always\n  inspect this before treating a TDU slice as complete; competitor\n  coverage is partial outside Oncor and CenterPoint today.\n- `methodology` and `publisher` — provenance for citation.\n\n**Use cases:**\n- Build a \"compare Texas solar plans\" page or quote engine.\n- Power AI agents that recommend a plan and need real, current rate data.\n- Audit a homeowner's current plan against alternatives.\n- Track competitor pricing over time (the feed updates as Meter's\n  underlying `formatted_plans` table refreshes).\n\n**Filters:** all optional. Omit all three to get the full catalog.\n- `tdu` — case-insensitive partial match on display name (e.g. \"Oncor\",\n  \"CenterPoint\", \"AEP Texas Central\").\n- `providerType` — `meter` for Meter Energy plans only, `competitor`\n  for everything else.\n- `termMonths` — exact contract length filter (e.g. 12, 24, 36).\n\n**Methodology notes:**\n- Meter plans are fetched live from the Light API using one\n  representative ZIP per TDU. Rates are real-time.\n- Competitor plans are read from Meter's `formatted_plans` dataset and\n  costed with the same engine the public `/solarbuybackplans`\n  comparison page uses.\n- `estimatedAnnualCostDollars` assumes a default solar homeowner\n  profile (700 kWh imported and 700 kWh exported per month, 40% of\n  imports at night, no battery). For personalized estimates, post the\n  profile fields you have to `/api/v1/plan-cost-calc`.\n\nThis is an audience-4 (developer / agent) tool. For a ranked\nhomeowner-facing recommendation given a ZIP, use `find-electricity-plan`\ninstead — it does the ZIP-to-TDU lookup and ranks the cheapest plans for\nthe user's stated usage.","tags":["data-feed"],"x-status":"live","x-audience":["developer","agent","installer"],"x-mcp-tool-name":"list_solar_buyback_plans","x-examples":["List every solar buyback plan available in Texas.","Show all 12-month solar buyback plans in Oncor territory.","Return Meter Energy plans across all TDUs.","What competitor plans are in CenterPoint with a 24-month term?","Audit the full Texas solar buyback rate catalog."],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tdu":{"type":"string","description":"Optional filter on TDU (Transmission and Distribution Utility) display name. Case-insensitive partial match. Examples: 'Oncor', 'CenterPoint', 'AEP Texas Central', 'AEP Texas North', 'TNMP', 'Lubbock Power & Light'. Omit to return plans from every TDU."},"providerType":{"type":"string","enum":["meter","competitor"],"description":"Optional filter on provider type. 'meter' returns only Meter Energy plans. 'competitor' returns only non-Meter plans (TXU, Reliant, Octopus, Rhythm, Gexa, Cirro, Champion, and others). Omit to return both."},"termMonths":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"Optional filter on exact contract length in months. Typical values: 12, 24, 36. Omit to return every term length."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool ran successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","enum":["Texas Solar Buyback Plan Index"],"description":"Catalog identifier."},"generatedAt":{"type":"string","description":"ISO 8601 timestamp the catalog was assembled."},"validThrough":{"type":"string","description":"ISO 8601 timestamp after which the catalog should be re-fetched. The underlying feed revalidates hourly."},"publisher":{"type":"object","properties":{"name":{"type":"string","enum":["Meter Energy Inc."]},"url":{"type":"string","enum":["https://meterplan.com"]},"puctBrokerNumber":{"type":"string","enum":["BR250137"]},"description":{"type":"string","description":"Plain-text description of the publisher."}},"required":["name","url","puctBrokerNumber","description"],"additionalProperties":false,"description":"Catalog publisher and provenance metadata."},"methodology":{"type":"array","items":{"type":"string"},"description":"Bullet points documenting how the catalog is assembled. Cite these when summarizing the data."},"assumptions":{"type":"object","properties":{"defaultProfileName":{"type":"string","description":"Name of the default energy profile used to compute estimated costs."},"monthlyImportKwh":{"type":"number","description":"Default monthly grid imports in kWh."},"monthlyExportKwh":{"type":"number","description":"Default monthly grid exports in kWh."},"nightImportPercent":{"type":"number","description":"Default share of imports occurring overnight, as a percentage (0-100)."},"peakImportPercent":{"type":"number","description":"Default share of imports occurring during peak hours, as a percentage."},"daytimeImportPercent":{"type":"number","description":"Default share of imports occurring during daytime hours, as a percentage."},"weekendImportPercent":{"type":"number","description":"Default share of imports occurring on weekends, as a percentage."},"batteryBrand":{"type":"string","nullable":true,"description":"Default battery brand assumed in the cost estimate. Null when no battery is assumed."},"batteryKwh":{"type":"number","nullable":true,"description":"Default battery capacity in kWh assumed in the cost estimate. Null when no battery is assumed."},"notes":{"type":"array","items":{"type":"string"},"description":"Free-form notes clarifying when the default estimate may not apply."}},"required":["defaultProfileName","monthlyImportKwh","monthlyExportKwh","nightImportPercent","peakImportPercent","daytimeImportPercent","weekendImportPercent","batteryBrand","batteryKwh","notes"],"additionalProperties":false,"description":"Default profile used to compute estimatedAnnualCostDollars."},"tduReferences":{"type":"array","items":{"type":"object","properties":{"tdu":{"type":"string","description":"TDU display name."},"representativeZipcode":{"type":"string","description":"Representative 5-digit ZIP for this TDU territory."},"plansUrl":{"type":"string","description":"URL on meterplan.com listing plans for this TDU."}},"required":["tdu","representativeZipcode","plansUrl"],"additionalProperties":false},"description":"Representative ZIP and landing URL for each Texas TDU."},"sourceStatus":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","description":"Label for the data source contributing to this row (e.g. 'Meter plans - Oncor')."},"status":{"type":"string","enum":["ok","partial","unavailable"],"description":"Freshness and coverage status for this source. Treat 'partial' or 'unavailable' slices as incomplete."},"detail":{"type":"string","description":"Human-readable explanation of the status."},"planCount":{"type":"number","description":"Number of plans contributed by this source."}},"required":["source","status","detail","planCount"],"additionalProperties":false},"description":"Per-source freshness and coverage status. Inspect before treating a TDU slice as complete."},"recommendedPages":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","description":"Display label for the recommended page."},"url":{"type":"string","description":"Public URL on meterplan.com."},"description":{"type":"string","description":"One-sentence summary of what the page offers."}},"required":["label","url","description"],"additionalProperties":false},"description":"Public pages on meterplan.com to link to for human readers and follow-up workflows."},"plans":{"type":"array","items":{"type":"object","properties":{"providerName":{"type":"string","description":"Provider company name as displayed to consumers. Examples: 'Meter Energy', 'TXU Energy', 'Reliant', 'Octopus Energy'."},"providerType":{"type":"string","enum":["meter","competitor"],"description":"'meter' for Meter Energy plans, 'competitor' for every other retail electric provider."},"planName":{"type":"string","description":"Plan product name. Examples: 'Meter Saver 12', 'TXU Solar Buyback 12'."},"tdu":{"type":"string","description":"TDU display name. One of: 'Oncor', 'CenterPoint', 'AEP Texas Central', 'AEP Texas North', 'TNMP', 'Lubbock Power & Light'."},"representativeZipcode":{"type":"string","description":"Representative 5-digit ZIP used to fetch this plan from the source. Plans are available throughout the TDU territory, not only at this ZIP."},"termMonths":{"type":"number","description":"Contract length in months."},"planType":{"type":"string","enum":["fixed_export","real_time_wholesale","free_nights","battery_vpp","standard","other"],"description":"Plan structure classification. 'fixed_export' = solar buyback at a fixed rate. 'real_time_wholesale' = export credit tied to ERCOT wholesale prices. 'free_nights' = nighttime usage free. 'battery_vpp' = battery program with a virtual power plant credit. 'standard' = non-solar fixed-rate plan included for comparison. 'other' = none of the above."},"importRateCentsPerKwh":{"type":"number","nullable":true,"description":"Energy charge in cents per kWh for grid imports. Excludes TDU delivery and base fees."},"exportRateCentsPerKwh":{"type":"number","nullable":true,"description":"Solar buyback credit in cents per kWh for grid exports. Null for real-time wholesale plans (variable) and plans without solar buyback."},"exportRateType":{"type":"string","enum":["fixed","real_time_wholesale","none","unknown"],"description":"Structure of the export credit. 'fixed' = locked ¢/kWh for the term. 'real_time_wholesale' = tied to ERCOT prices. 'none' = no buyback. 'unknown' = not on file."},"baseFeeDollarsPerMonth":{"type":"number","nullable":true,"description":"Monthly base fee in dollars charged by the retailer. Null if not on file."},"earlyTerminationFeeDollars":{"type":"number","nullable":true,"description":"Early termination fee in dollars. Null if the plan has no ETF or the value is not on file."},"estimatedAnnualCostDollars":{"type":"number","nullable":true,"description":"Estimated annual electricity cost in dollars at the default solar homeowner profile (see assumptions). Excludes battery program credits."},"displayImportRate":{"type":"string","description":"Human-readable import rate string. Example: '14.5 cents/kWh'."},"displayExportRate":{"type":"string","description":"Human-readable export rate string. Example: '4.2 cents/kWh' or 'ERCOT wholesale'."},"displayBaseFee":{"type":"string","description":"Human-readable base fee string. Example: '$0/month' or '$9.95/month'."},"displayEarlyTerminationFee":{"type":"string","description":"Human-readable ETF string. Example: '$295' or 'None'."},"batterySupport":{"type":"object","properties":{"tesla":{"type":"boolean","description":"True if Tesla Powerwall is eligible for this plan's battery program."},"solaredge":{"type":"boolean","description":"True if SolarEdge battery is eligible."},"enphase":{"type":"boolean","description":"True if Enphase battery is eligible."},"qcells":{"type":"boolean","description":"True if Qcells battery is eligible."},"eligibleBrands":{"type":"array","items":{"type":"string"},"description":"List of battery brands eligible for this plan's battery program. Empty if the plan has no battery program."},"customerStorageCreditDollarsPerKwhMonth":{"type":"number","nullable":true,"description":"Customer-facing storage credit in dollars per kWh per month. Null if the plan has no battery program."},"storageCreditIncludedInEstimatedCost":{"type":"boolean","description":"True if estimatedAnnualCostDollars already nets out the storage credit. False (the default) means the credit is shown but not subtracted from the estimate, since the default profile assumes no battery."},"exampleMonthlyCreditDollars":{"type":"number","nullable":true,"description":"Illustrative monthly credit dollars at the default battery capacity (one 13.5 kWh Tesla Powerwall). Null if the plan has no battery program."},"meterStorageCreditDollarsPerKwhMonth":{"type":"number","nullable":true,"description":"Deprecated alias of customerStorageCreditDollarsPerKwhMonth. Kept for existing consumers."}},"required":["tesla","solaredge","enphase","qcells","eligibleBrands","customerStorageCreditDollarsPerKwhMonth","storageCreditIncludedInEstimatedCost","exampleMonthlyCreditDollars","meterStorageCreditDollarsPerKwhMonth"],"additionalProperties":false,"description":"Battery program eligibility and credit structure for this plan."},"creditNotes":{"type":"array","items":{"type":"string"},"description":"Per-plan notes explaining structure quirks (rate type, battery program rules, profile sensitivity, etc.)."},"signupUrl":{"type":"string","nullable":true,"description":"Direct URL where the customer can sign up for this plan. Null if no public signup URL is on file."},"sourceUrl":{"type":"string","description":"URL on meterplan.com where this plan is presented to consumers."},"updatedAt":{"type":"string","nullable":true,"description":"ISO 8601 timestamp of the most recent source refresh for this plan."}},"required":["providerName","providerType","planName","tdu","representativeZipcode","termMonths","planType","importRateCentsPerKwh","exportRateCentsPerKwh","exportRateType","baseFeeDollarsPerMonth","earlyTerminationFeeDollars","estimatedAnnualCostDollars","displayImportRate","displayExportRate","displayBaseFee","displayEarlyTerminationFee","batterySupport","creditNotes","signupUrl","sourceUrl","updatedAt"],"additionalProperties":false},"description":"Solar buyback plan rows after applying any filters from the input. Sorted by TDU, then by estimated annual cost ascending, then by provider and plan name."},"filter":{"type":"object","properties":{"tdu":{"type":"string","nullable":true},"providerType":{"type":"string","enum":["meter","competitor"],"nullable":true},"termMonths":{"type":"number","nullable":true},"totalPlansBeforeFilter":{"type":"number"},"totalPlansAfterFilter":{"type":"number"}},"required":["tdu","providerType","termMonths","totalPlansBeforeFilter","totalPlansAfterFilter"],"additionalProperties":false,"description":"Echo of the filter inputs alongside before/after plan counts. Useful for confirming a filter narrowed the catalog as expected."}},"required":["name","generatedAt","validThrough","publisher","methodology","assumptions","tduReferences","sourceStatus","recommendedPages","plans","filter"],"additionalProperties":false}}}},"400":{"description":"Request body was missing, malformed JSON, or failed input schema validation.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"422":{"description":"Input was valid but the tool could not complete the request. `message` is safe to show the user.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"500":{"description":"Tool execution failed or produced an output that violated the schema.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}}}}},"/api/v1/get-utility-for-zip":{"post":{"operationId":"get_utility_for_zip","summary":"Texas TDU Lookup by ZIP","description":"Resolve any Texas residential ZIP code to its Transmission and Distribution Utility (TDU): Oncor, CenterPoint, AEP Texas Central, AEP Texas North, TNMP, or Lubbock Power & Light. Returns the canonical utility code, full display name, short name, and whether the ZIP is in a deregulated retail electric market. Backed by Light API's eligibility check (private API made public via this tool).\n\nA primitive utility-lookup tool. Useful as a building block for any agent\nor app that needs to know which TDU serves a Texas ZIP — TDU determines\nwhich retail electric providers are available, what delivery rates apply,\nand whether the customer can switch providers.\n\nTexas has 6 TDUs serving the deregulated retail market:\n- Oncor Electric Delivery (DFW + much of north/central Texas)\n- CenterPoint Energy (Houston + southeast Texas)\n- AEP Texas Central (south Texas, including Corpus Christi)\n- AEP Texas North (Abilene + west-central Texas)\n- Texas-New Mexico Power Company / TNMP (scattered pockets)\n- Lubbock Power & Light (Lubbock — recently joined deregulated market)\n\nReturns null for ZIPs that aren't in the deregulated market (e.g., Austin\nEnergy / CPS / municipal utilities — these markets don't offer retail\nprovider choice).\n\n**Why this tool exists**: Light API's eligibility endpoint isn't publicly\naccessible. This tool wraps it as a stable, public primitive so any agent\ncan resolve TDU without needing Light credentials.","tags":["data-feed"],"x-status":"live","x-audience":["developer","agent","installer"],"x-mcp-tool-name":"get_utility_for_zip","x-examples":["What utility serves ZIP 75001?","Resolve TDU for 77002.","Is 78704 in CenterPoint or AEP territory?","Get the utility code for 79401."],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"zipCode":{"type":"string","pattern":"^\\d{5}$","description":"5-digit Texas ZIP code. Examples: '75201' (Dallas), '77002' (Houston), '78401' (Corpus Christi), '76901' (Abilene), '79401' (Lubbock)."}},"required":["zipCode"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool ran successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"zipCode":{"type":"string","description":"The ZIP code that was looked up."},"utilityCode":{"type":"string","description":"Canonical TDU code. One of: 'ONCOR', 'CNP' (CenterPoint), 'AEP_CENTRAL', 'AEP_NORTH', 'TNMP', 'LPPL' (Lubbock Power & Light)."},"utilityDisplayName":{"type":"string","description":"Full TDU name as the utility presents it. Examples: 'Oncor Electric Delivery', 'CenterPoint Energy', 'Texas-New Mexico Power Company'."},"utilityShortName":{"type":"string","description":"Common short name. Examples: 'Oncor', 'CenterPoint', 'AEP Central'."},"isDeregulated":{"type":"boolean","description":"True if the ZIP is in the Texas deregulated retail electric market (where customers can choose a retail provider). False for municipal utility territories (Austin Energy, CPS, etc.)."},"eligibilityLikelihood":{"type":"number","description":"Light API's confidence (0-1) that this ZIP can be served by a retail provider. Useful for spotting edge cases like new construction or address ambiguity."},"resolved":{"type":"boolean","description":"True if Light API returned a confident answer. False if we fell back to the default (ONCOR) due to API unavailability or unknown ZIP."}},"required":["zipCode","utilityCode","utilityDisplayName","utilityShortName","isDeregulated","eligibilityLikelihood","resolved"],"additionalProperties":false}}}},"400":{"description":"Request body was missing, malformed JSON, or failed input schema validation.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"422":{"description":"Input was valid but the tool could not complete the request. `message` is safe to show the user.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"500":{"description":"Tool execution failed or produced an output that violated the schema.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}}}}},"/api/v1/lookup-esi-id":{"post":{"operationId":"lookup_esi_id","summary":"Texas ESI ID Lookup by Address","description":"Use when a Texas homeowner needs the ESI ID (Electric Service Identifier) for their own home's electricity meter and doesn't have their electricity bill handy, or an installer needs it for a customer's home. Takes the service address and returns matching service points, each with its ESI ID, normalized address, and serving utility (Oncor, CenterPoint, AEP Texas, TNMP, or Lubbock Power & Light). ESI IDs are public identifiers in the Texas electricity market. Show the matches and have the user confirm which one is their home before using the ESI ID, for example with request_smt_data. Read-only: returns no names, account details, usage, or billing data. Texas deregulated service only.\n\nEvery Texas residential meter has a 17-22 digit Electric Service Identifier\n(ESI ID). It's the primary key for everything in the deregulated electric\nmarket: enrollment, plan switching, billing, Smart Meter Texas data access,\nand any TDU coordination.\n\nCustomers usually find their ESI ID printed on their electricity bill.\nSolar installers, energy advisors, and AI agents that don't have a bill\nin hand need to look it up by address — that's what this tool does.\n\nThe lookup is fuzzy: pass a partial address (street + city OR street + ZIP)\nand the tool returns up to N matches with full address normalization.\nEach match includes the ESI ID and the serving utility.\n\n**PII note**: Addresses returned by Light contain real residential service\npoints. The tool returns the data but does NOT log raw addresses or ESI\nIDs in our application logs (PostHog event captures only the count of\nmatches, not the matches themselves). Agents should treat results as\nsensitive and confirm with the end user before acting on them.\n\n**Why this tool exists**: Light API's address-search isn't publicly\naccessible. Other Texas energy retailers run \"ESI ID lookup\" SEO landing\npages because the demand is so high — this tool is the API equivalent.","tags":["data-feed"],"x-status":"live","x-audience":["installer","agent","homeowner","developer"],"x-mcp-tool-name":"lookup_esi_id","x-examples":["Find the ESI ID for 123 Main St, Austin TX 78701.","Lookup ESI for 5500 Greenville Ave, Dallas, 75206.","What's the ESI ID for my address at 4200 Westheimer, Houston?","Get the ESI ID and utility for this Corpus Christi address."],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":3,"maxLength":200,"description":"Address query. Most reliable: full street address + city OR street address + 5-digit ZIP. Examples: '123 Main St, Austin 78701' or '5500 Greenville Ave Dallas TX'. Matching is fuzzy and tolerates apartment numbers, abbreviations, and minor typos."},"maxResults":{"type":"integer","minimum":1,"maximum":20,"default":10,"description":"Maximum number of address matches to return. Defaults to 10."}},"required":["query"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool ran successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Echo of the original query."},"matchCount":{"type":"number","description":"Total matches found (before maxResults truncation)."},"matches":{"type":"array","items":{"type":"object","properties":{"esiId":{"type":"string","nullable":true,"description":"Texas Electric Service Identifier (17-22 digits). Null if the address is on file without an ESI ID (rare; usually new construction)."},"street":{"type":"string","description":"Normalized street address line, e.g., '5500 GREENVILLE AVE'."},"city":{"type":"string","description":"City name."},"state":{"type":"string","description":"Two-letter state code. Always 'TX' for matches."},"postalCode":{"type":"string","description":"5-digit ZIP code."},"formattedAddress":{"type":"string","description":"Full one-line address suitable for display. Format: 'STREET, CITY, ST ZIP'."},"utility":{"type":"string","description":"Serving TDU name (Oncor, CenterPoint, AEP Central, AEP North, TNMP, Lubbock P&L)."}},"required":["esiId","street","city","state","postalCode","formattedAddress","utility"],"additionalProperties":false},"description":"Address matches with ESI IDs. Empty array if nothing matched."}},"required":["query","matchCount","matches"],"additionalProperties":false}}}},"400":{"description":"Request body was missing, malformed JSON, or failed input schema validation.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"422":{"description":"Input was valid but the tool could not complete the request. `message` is safe to show the user.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"500":{"description":"Tool execution failed or produced an output that violated the schema.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}}}}},"/api/v1/get-tdu-delivery-rates":{"post":{"operationId":"get_tdu_delivery_rates","summary":"Texas TDU Delivery Rates","description":"Get current TDU delivery rates for one or all six Texas utilities (Oncor, CenterPoint, AEP Texas Central, AEP Texas North, TNMP, Lubbock Power & Light). Returns per-kWh delivery rate and fixed monthly base fee for each utility — these charges appear on every Texas electricity bill regardless of which retailer the customer chose. Backed by Light API rate sheets.\n\nEvery Texas electricity bill has two parts:\n1. **Energy charges** from your retailer (Meter, TXU, Reliant, etc.)\n2. **Delivery charges** from your utility company / TDU (Oncor, CenterPoint, etc.)\n\nThe delivery side is regulated by the Public Utility Commission of Texas\n(PUCT) and is the same regardless of which retailer the customer picks.\nMost plan-comparison and bill-modeling tools need these numbers — without\nthem, \"I save $X on my bill\" estimates are off by $30-50/month.\n\nThis tool returns:\n- Variable rate in cents per kilowatt-hour (kWh) — applied to every kWh you import from the grid\n- Fixed monthly base fee in dollars — charged regardless of usage\n\nPass a single utility code or omit to get all six. Rates are pulled from\nLight's plan rate sheets on each call (no caching), so the values reflect\nthe current PUCT-approved tariffs.\n\n**Why this tool exists**: Light API isn't publicly accessible. Any agent\nmodeling a Texas electricity bill needs these numbers — without them, the\nmath is off by the cost of the delivery component.","tags":["data-feed"],"x-status":"live","x-audience":["developer","agent","installer"],"x-mcp-tool-name":"get_tdu_delivery_rates","x-examples":["Get current Oncor delivery rates.","What are the TDU charges for CenterPoint?","List delivery rates for all Texas utilities.","What fixed delivery fee does AEP Central charge?"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"utilityCode":{"type":"string","enum":["ONCOR","CNP","AEP_CENTRAL","AEP_NORTH","TNMP","LPPL"],"description":"Optional utility code to filter to a single TDU. Omit to return rates for all six. Use `get_utility_for_zip` if you have a ZIP and need the code."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool ran successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"fetchedAt":{"type":"string","description":"ISO 8601 timestamp when the rates were fetched from Light."},"rates":{"type":"array","items":{"type":"object","properties":{"utilityCode":{"type":"string","description":"Canonical TDU code (ONCOR, CNP, AEP_CENTRAL, AEP_NORTH, TNMP, LPPL)."},"utilityDisplayName":{"type":"string","description":"Full TDU display name."},"utilityShortName":{"type":"string","description":"Common short name."},"representativeZipcode":{"type":"string","description":"ZIP code used to fetch the rate sheet. Rates apply to the entire TDU territory; we just need one ZIP per TDU to ask Light for them."},"deliveryRateCentsPerKwh":{"type":"number","nullable":true,"description":"TDU variable delivery rate in cents per kilowatt-hour (kWh). Applied to every kWh imported from the grid. Null if Light didn't return a rate."},"deliveryBaseFeeDollarsPerMonth":{"type":"number","nullable":true,"description":"TDU fixed monthly base fee in dollars. Charged regardless of usage. Null if Light didn't return a fee."},"source":{"type":"string","description":"Where the rates came from. Currently always 'light_api_plan_rate_sheet'."}},"required":["utilityCode","utilityDisplayName","utilityShortName","representativeZipcode","deliveryRateCentsPerKwh","deliveryBaseFeeDollarsPerMonth","source"],"additionalProperties":false},"description":"Per-TDU delivery rates. One entry per utility, ordered ONCOR → CNP → AEP_CENTRAL → AEP_NORTH → TNMP → LPPL. Filtered to the requested utility if `utilityCode` was provided."}},"required":["fetchedAt","rates"],"additionalProperties":false}}}},"400":{"description":"Request body was missing, malformed JSON, or failed input schema validation.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"422":{"description":"Input was valid but the tool could not complete the request. `message` is safe to show the user.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"500":{"description":"Tool execution failed or produced an output that violated the schema.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}}}}},"/api/v1/get-residential-load-profile":{"post":{"operationId":"get_residential_load_profile","summary":"Texas Residential Load Profile (ERCOT)","description":"Get the typical residential electricity load curve for any Texas weather zone — averaged from ERCOT's official residential load profiles, in 15-minute resolution. Returns hourly or monthly aggregated kWh by hour-of-day and month-of-year, peak demand, and annual total. Useful for solar designers, battery sizers, AI agents modeling 'what does a typical home in Houston use', and anyone building bill-projection or solar-savings tools without a real customer's meter data.\n\nERCOT publishes residential load profiles (15-minute kWh values) for each\nof its 8 weather zones, broken into 4 residential profile types:\n\n| Profile | Customer type |\n|---|---|\n| RESHIWR | Residential heating with weather response (default — most common) |\n| RESHIDG | Residential heating with distributed generation (solar homes) |\n| RESHIPV | Residential heating with PV |\n| RESHIWD | Residential without distributed generation |\n\nThese curves represent the *typical* home in a zone. They're the same\ncurves Meter uses internally to model bill projections and solar savings\nwhen a real customer's Smart Meter Texas (SMT) data isn't yet available.\n\n**Inputs:**\nProvide either a ZIP code (resolved to weather zone via ZIP-prefix → zone\nmapping) OR a weatherZone code directly. Optional profileType + year.\nThe granularity flag controls payload size:\n- `monthly_hourly` (default, 288 entries): typical kWh by month × hour\n- `monthly_totals` (12 entries): just monthly kWh totals\n- `annual_hourly` (8760 entries): full year of hourly averages\n\n**Why this exists:**\n- Solar designers need a typical load curve for every proposal — without\n  it, \"your panels will save you $X\" estimates are guesswork\n- Battery sizers need to know when in the day a home draws power\n- AI agents modeling Texas electricity bills need a baseline shape when\n  the user can't provide their own meter data\n- Researchers and energy nerds compare zones (Houston vs DFW summer\n  shapes are very different)\n\n**For real customer data**, use `request_smt_data` (gives the\nactual home's usage, not the regional average). This tool is the\n\"typical home\" baseline; SMT is \"this specific home.\"","tags":["data-feed"],"x-status":"live","x-audience":["installer","agent","developer","researcher"],"x-mcp-tool-name":"get_residential_load_profile","x-examples":["Get the typical residential load profile for Houston (zone COAST).","What does a typical home in DFW use by hour of the day?","ERCOT residential load curve for ZIP 78704.","Annual hourly load profile for the South weather zone with solar PV.","Monthly total kWh for a typical residential home in West Texas."],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"zipCode":{"type":"string","pattern":"^\\d{5}$","description":"5-digit Texas ZIP code. Resolved to ERCOT weather zone via ZIP prefix mapping. Use this OR weatherZone."},"weatherZone":{"type":"string","enum":["COAST","EAST","FWEST","NCENT","NORTH","SCENT","SOUTH","WEST"],"description":"ERCOT weather zone code. COAST=Houston, NCENT=DFW + central TX, SCENT=Austin, SOUTH=SA/Corpus/RGV, NORTH=Wichita Falls/Lubbock, WEST=Abilene/Big Spring, FWEST=Midland/El Paso, EAST=Tyler. Use this OR zipCode."},"profileType":{"type":"string","enum":["RESHIWR","RESHIDG","RESHIPV","RESHIWD"],"default":"RESHIWR","description":"ERCOT residential profile type. Default RESHIWR (residential heating with weather response — most common). RESHIDG/RESHIPV cover solar homes; RESHIWD covers homes without distributed generation."},"year":{"type":"integer","minimum":2020,"maximum":2030,"description":"Profile year. Defaults to most recent year on file (currently 2025)."},"granularity":{"type":"string","enum":["monthly_hourly","monthly_totals","annual_hourly"],"default":"monthly_hourly","description":"Output detail. `monthly_hourly` (default, 288 entries) = typical kWh by month × hour-of-day. `monthly_totals` (12 entries) = just monthly kWh totals. `annual_hourly` (8760 entries) = full year of hourly averages — largest payload."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool ran successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"resolvedWeatherZone":{"type":"string","description":"ERCOT weather zone the request resolved to (matches input or derived from ZIP)."},"profileType":{"type":"string","description":"ERCOT residential profile type used."},"year":{"type":"number","description":"Profile year used."},"granularity":{"type":"string","description":"Granularity flag echoed back."},"annualTotalKwh":{"type":"number","description":"Total annual kWh for the typical home in this zone."},"peakHourlyKw":{"type":"number","description":"Peak hourly demand in kW (highest hourly kWh × 1 — since 1 kWh in 1 hour = 1 kW average)."},"monthlyTotalsKwh":{"type":"array","items":{"type":"number"},"minItems":12,"maxItems":12,"description":"12-element array of monthly kWh totals (Jan first, Dec last)."},"intervals":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"month":{"type":"number","description":"Month 1-12 (1=January)."},"hour":{"type":"number","description":"Hour 0-23 (0=midnight, 13=1pm)."},"avgKwh":{"type":"number","description":"Average kWh consumed during this hour-of-day in this month."}},"required":["month","hour","avgKwh"],"additionalProperties":false}},{"type":"array","items":{"type":"object","properties":{"month":{"type":"number","description":"Month 1-12."},"totalKwh":{"type":"number","description":"Total kWh consumed during the month."}},"required":["month","totalKwh"],"additionalProperties":false}},{"type":"array","items":{"type":"object","properties":{"hourOfYear":{"type":"number","description":"Hour-of-year 0-8759."},"date":{"type":"string","description":"Date in YYYY-MM-DD format."},"hour":{"type":"number","description":"Hour 0-23."},"kwh":{"type":"number","description":"kWh consumed in this specific hour."}},"required":["hourOfYear","date","hour","kwh"],"additionalProperties":false}}],"description":"The actual data, shape depends on granularity. monthly_hourly = 288 entries; monthly_totals = 12 entries; annual_hourly = 8760 entries."},"source":{"type":"object","properties":{"provider":{"type":"string"},"url":{"type":"string"},"notes":{"type":"string"}},"required":["provider","url","notes"],"additionalProperties":false,"description":"Metadata about the data source."}},"required":["resolvedWeatherZone","profileType","year","granularity","annualTotalKwh","peakHourlyKw","monthlyTotalsKwh","intervals","source"],"additionalProperties":false}}}},"400":{"description":"Request body was missing, malformed JSON, or failed input schema validation.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"422":{"description":"Input was valid but the tool could not complete the request. `message` is safe to show the user.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"500":{"description":"Tool execution failed or produced an output that violated the schema.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}}}}},"/api/v1/plan-cost-calc":{"post":{"operationId":"calculate_plan_cost","summary":"Plan Cost Calculator","description":"Low-level Texas electricity bill calculator. Computes the exact monthly and annual bill given a fully-specified plan rate sheet (energy rate, solar buyback, base fee, TDU delivery rate, TDU monthly fee) and a home's usage profile. For ZIP-based lookups that fetch plan rates and TDU charges automatically, use `quote-meter-plan`.\n\nPure bill math. This is the same calculator that powers Meter's plans page,\nrenewal flow, and battery analysis — exposed for agents that already have a\ncomplete rate sheet.\n\n**Required inputs:**\n- `importKwh`, `exportKwh`: monthly usage\n- `importRate`, `exportRate`: plan energy + solar buyback rates (¢/kWh)\n- `baseFee`: plan monthly base fee ($)\n- `deliveryRate`, `deliveryBaseFee`: **TDU charges — mandatory for Texas residential.**\n  TDU rates are billed separately from energy rates in Texas. Omitting them\n  produces a bill ~$30/mo too low. Sample ONCOR rates: 4.2¢/kWh + $3.42/mo\n  base. Look up your TDU's current rate on the plan's EFL.\n\n**Optional inputs:**\n- `batteryCapacityKwh` + `storageCreditPerKwh`: for battery VPP plans\n- `monthlyCreditDollars`: direct VPP credit override\n\n**Outputs:** import charges, export credits, net energy, carryforward credits,\ndelivery charges, battery credit, excess battery credits, monthly + annual bill.\n\n**Notes:**\n- Rates are in ¢/kWh. Fees in $.\n- Negative bills are clamped to zero; excess credits carry forward.\n- Battery credits offset the entire bill (energy + delivery + base).\n- For competitor plans with free-nights, RTW, or other non-standard structures,\n  use the (forthcoming) `compare-plans` tool.\n- For \"what would Meter's Saver cost in my ZIP\" — use the (forthcoming)\n  `quote-meter-plan` tool which handles ZIP → utility → rate sheet lookup.","tags":["plan-comparison"],"x-status":"live","x-audience":["installer","agent","developer"],"x-mcp-tool-name":"calculate_plan_cost","x-examples":["Calculate the bill for ONCOR territory with import 700 kWh @ 13¢, export 500 kWh @ 8¢, $14.95 base, TDU 4.2¢/kWh + $3.42 base.","What's the annual cost for CenterPoint Houston with 900 kWh @ 11¢ import, 0 export, no base, TDU 5.3¢/kWh + $4.39 base?","Battery plan bill: 1200 kWh @ 13¢, 800 kWh export @ 3¢, $0 base, ONCOR delivery 4.2¢ + $3.42, 13.5 kWh Powerwall @ $2/kWh/mo storage credit."],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"importKwh":{"type":"number","minimum":0,"description":"Monthly electricity imported from the grid, in kWh."},"exportKwh":{"type":"number","minimum":0,"description":"Monthly solar electricity exported to the grid, in kWh. Use 0 for non-solar homes."},"importRate":{"type":"number","description":"Plan's energy import rate in cents per kWh (e.g., 12.5 for 12.5¢/kWh)."},"exportRate":{"type":"number","description":"Plan's solar buyback credit in cents per kWh (e.g., 8 for 8¢/kWh). Use 0 for plans without solar buyback."},"baseFee":{"type":"number","minimum":0,"description":"Plan's monthly base fee in dollars (e.g., 14.95). Use 0 for no-base-fee plans."},"deliveryRate":{"type":"number","minimum":0,"description":"Required. Texas TDU per-kWh delivery charge in cents (e.g., 4.2 for ONCOR ~4.2¢/kWh). TDU charges are billed separately from energy in Texas retail electricity — omitting them produces a bill ~$30/mo too low. Look up the rate for your utility from the EFL or use the `quote-meter-plan` tool which fetches it automatically by ZIP."},"deliveryBaseFee":{"type":"number","minimum":0,"description":"Required. Texas TDU monthly base fee in dollars (e.g., 3.42 for ONCOR). Like delivery rate, this is mandatory for Texas residential electricity and not bundled into the energy rate."},"batteryCapacityKwh":{"type":"number","minimum":0,"description":"Battery capacity in kWh (e.g., 13.5 for a Tesla Powerwall 3). Required if storageCreditPerKwh is set."},"storageCreditPerKwh":{"type":"number","minimum":0,"description":"Plan's battery VPP credit rate in $/kWh/month (e.g., 2 for $2/kWh/mo)."},"monthlyCreditDollars":{"type":"number","description":"Optional override: direct monthly battery credit in dollars, replacing the capacity × credit-rate calculation."}},"required":["importKwh","exportKwh","importRate","exportRate","baseFee","deliveryRate","deliveryBaseFee"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool ran successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"importCharges":{"type":"number","description":"Gross monthly cost of imported energy, in dollars."},"exportCredits":{"type":"number","description":"Gross monthly solar export credit, in dollars."},"netEnergyCharges":{"type":"number","description":"Net energy charges after applying export credits (clamped at 0)."},"carryforwardCredits":{"type":"number","description":"Solar credits that exceed import charges and carry forward."},"deliveryCharges":{"type":"number","description":"Monthly TDU delivery charges, in dollars."},"billBeforeCredits":{"type":"number","description":"Bill total before battery credits are applied."},"batteryCredit":{"type":"number","description":"Monthly battery VPP credit, in dollars."},"excessBatteryCredits":{"type":"number","description":"Battery credits that exceed the bill (banked)."},"totalMonthlyBill":{"type":"number","description":"Final monthly bill after all credits, in dollars."},"totalAnnualBill":{"type":"number","description":"Final annual bill (monthly × 12), in dollars."}},"required":["importCharges","exportCredits","netEnergyCharges","carryforwardCredits","deliveryCharges","billBeforeCredits","batteryCredit","excessBatteryCredits","totalMonthlyBill","totalAnnualBill"],"additionalProperties":false}}}},"400":{"description":"Request body was missing, malformed JSON, or failed input schema validation.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"422":{"description":"Input was valid but the tool could not complete the request. `message` is safe to show the user.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"500":{"description":"Tool execution failed or produced an output that violated the schema.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}}}}},"/api/v1/request-smt-data":{"post":{"operationId":"request_smt_data","summary":"Request Smart Meter Texas Data","description":"Pull up to 12 months of 15-minute electricity usage for a Texas smart meter from Smart Meter Texas: grid imports, solar exports, monthly totals, peak demand, and a CSV download of the full 15-minute data (Aurora Solar, OpenSolar, and Solargraf import files are available for installers who ask). For a Texas homeowner pulling their own meter's usage, or an installer pulling a customer's. Needs the ESI ID (or service address), meter number, and current electricity provider, all printed on the electricity bill. If the user has shared a bill image or PDF, read those values from it and call this tool; it takes the values, not the file.\n\nStarts a Smart Meter Texas pull for one meter and waits up to\n`waitSeconds` (default 20) for the data. Most pulls finish in about 20\nseconds; when one takes longer the result is `pending` with a\n`requestId`, and `get_smt_data` returns the data once it's ready.\n\n**What you need from the bill**\n- ESI ID (17 or 22 digits), or the service address so it can be looked up\n- Meter number (8 to 12 characters, not the serial printed on the meter)\n- Current electricity provider, as named on the bill\n\n**What you get back**\n- Monthly grid imports, solar exports, net usage, and peak demand\n- Average monthly import and export, and whether the meter exports solar\n- A CSV download of the full 15-minute data, plus Aurora Solar, OpenSolar, and Solargraf import files on request\n\n**How it works**: this creates a Smart Meter Texas data-sharing agreement\nfor the meter, the same flow as\n[meterplan.com/smart-meter-texas](https://meterplan.com/smart-meter-texas).\nOnly request data for a meter you're authorized to access: your own, or a\ncustomer's with their permission. A pull completed for the same meter in\nthe last 24 hours is reused instead of creating a new agreement, and a pull\nalready in progress is joined rather than duplicated.\n\n**Scope**: residential and small-business meters in the deregulated Texas\nmarket that report to Smart Meter Texas. Not for municipal utilities or\nco-ops (for example Austin Energy or CPS Energy), and not for reading bill\nPDFs.","tags":["bill-analysis"],"x-status":"experimental","x-audience":["homeowner","installer","agent","developer"],"x-mcp-tool-name":"request_smt_data","x-examples":["Pull my home's smart meter data. My ESI ID is 10443720012345678, meter 119026839, and I'm with TXU Energy.","Here's my electricity bill. Can you pull my actual usage and show me how much solar I'm sending back?","Pull 12 months of interval data for this customer and give me the Aurora file.","How much solar did my house export to the grid each month this year?","Get 15-minute usage for 123 Main St, Dallas, TX 75201, meter 119026839, Reliant Energy."],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"esiId":{"type":"string","description":"ESI ID (Electric Service Identifier) of the meter: a 17 or 22 digit number printed on the electricity bill, usually labeled \"ESI ID\" or \"ESIID\" near the service address. Spaces and dashes are fine. Provide this or address."},"address":{"type":"string","description":"Service address of the home (street, city, and ZIP), used to look up the ESI ID when it isn't handy. Provide this or esiId; esiId is more reliable."},"meterNumber":{"type":"string","description":"Meter number printed on the electricity bill, usually in the meter-read or usage section: 8 to 12 letters and digits, sometimes ending in \"LG\". This is not the serial number printed on the meter itself."},"currentRetailer":{"anyOf":[{"type":"string","enum":["Abundance Energy","AE Texas","Accent Energy","Ambit Energy","Amigo Energy","Almika Power","Ammper Power","APG&E","Arrow Energy TX","Axpo US","Base Power","BKV Energy","Budget Power","BP Energy Company","BP Energy Retail Company","Branch Energy","Calpine Energy Solutions","Champion Energy Services","Chariot Energy","Cirro Energy","Clearview Energy","CleanSky Energy","Clyde Energy","ConocoPhillips Company","Constellation","David Energy","Direct Energy","Discount Power","Digital Power USA","Eligo Energy","Elevate Energy","ENGIE Resources","Energy Texas","Fanfare Energy","Flagship Power","Freepoint Energy Solutions","Frontier Utilities","Gexa Energy","Good Charlie","Green Mountain Energy","Gridmatic Retail Energy","Grid Power Direct","Heritage Power","Hudson Energy Services","Infuse Energy","Ironhorse Power Services","Just Energy","Light Energy","Maison Energy","Market Place Energy","MEMSIS 1","Meter Energy","Metroplex Energy","MidAmerican Energy Services","MI Texas Rep 4","MI Texas Rep 3","Mothership","National Gas & Electric Texas","NextVolt Texas","Now Power","NRG","Octopus Energy","OhmConnect Energy","OnPoint Energy Texas","Otovo","Payless Power","Penstar Power","Peridot Power","Pogo Energy","Pulse Power","Ranchero Power","Southern Federal Power LLC","Reliant Energy","Rhythm Energy","RPower Retail","SFE Energy Texas","Shell Energy Solutions","SmartEnergy Holdings","SmartestEnergy US","Spark Energy","STAT Energy","Stream Energy","Summer Energy","Tara Energy","Tesla Energy","Texas Retail Energy","Texpo Energy","TotalEnergies Gas & Power North America","Tomorrow Energy Corp","Town Square Energy","TriEagle Energy","True Power","TXU Energy","Value Power","Varsity Energy","TESM","Xoom Energy Texas","4Change Energy"]},{"type":"string","pattern":"^\\d{5}$"}],"description":"The current electricity provider named on the bill, chosen from the listed provider names (for example \"TXU Energy\", \"Reliant Energy\", or \"Gexa Energy\"), or its 5-digit PUCT certificate number. If the user's provider isn't on the list, ask them for the name exactly as printed on the bill. Smart Meter Texas checks it against the meter, so it must be the provider today, not a past one."},"waitSeconds":{"type":"integer","minimum":0,"maximum":45,"default":20,"description":"How long to wait for Smart Meter Texas before returning, 0 to 45 seconds (default 20). Most pulls finish in about 20 seconds; if time runs out the result is pending with a requestId to pass to get_smt_data."}},"required":["meterNumber","currentRetailer"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool ran successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["needs_clarification","pending","complete","error"],"description":"needs_clarification: the address matched more than one meter and nothing was started; ask the user which of candidates is theirs, then call request_smt_data with that esiId. pending: Smart Meter Texas is still working; call get_smt_data with requestId after checkAfterSeconds. complete: usage data is included. error: see errorMessage."},"requestId":{"type":"string","nullable":true,"description":"Identifier for this pull. Pass it to get_smt_data. Null only when status is needs_clarification."},"reused":{"type":"boolean","description":"True when this result comes from a pull for the same meter in the last 24 hours (or one already in progress) instead of a new Smart Meter Texas request."},"step":{"type":"string","description":"Current processing step, in plain words."},"checkAfterSeconds":{"type":"number","description":"Present when status is pending: wait about this long before calling get_smt_data."},"esiId":{"type":"string","nullable":true,"description":"ESI ID of the meter."},"utility":{"type":"string","nullable":true,"description":"Utility (TDU) that serves the meter, such as Oncor or CenterPoint, when known."},"serviceAddress":{"type":"string","nullable":true,"description":"Service address on file for this pull, when known."},"dataStart":{"type":"string","nullable":true,"description":"First reading, local Central Time (YYYY-MM-DDTHH:MM:00)."},"dataEnd":{"type":"string","nullable":true,"description":"Last reading, local Central Time (YYYY-MM-DDTHH:MM:00)."},"readingCount":{"type":"number","description":"Number of 15-minute readings covered."},"monthlyAggregates":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","description":"Calendar month, YYYY-MM."},"totalImportsKwh":{"type":"number","description":"Electricity drawn from the grid this month, in kWh."},"totalExportsKwh":{"type":"number","description":"Electricity sent back to the grid this month (solar exports), in kWh."},"netKwh":{"type":"number","description":"Imports minus exports, in kWh. Negative when the home exported more than it used from the grid."},"peakDemandKw":{"type":"number","description":"Highest 15-minute grid import this month, converted to kW."},"daysOfData":{"type":"number","description":"Number of days this month with at least one reading."}},"required":["month","totalImportsKwh","totalExportsKwh","netKwh","peakDemandKw","daysOfData"],"additionalProperties":false},"description":"Per-month totals, oldest first."},"avgMonthlyImportKwh":{"type":"number","nullable":true,"description":"Average grid import per month, in kWh."},"avgMonthlyExportKwh":{"type":"number","nullable":true,"description":"Average grid export (solar sent back) per month, in kWh."},"peakDemandKw":{"type":"number","nullable":true,"description":"Highest 15-minute grid import across the data, in kW."},"hasSolarExports":{"type":"boolean","nullable":true,"description":"True when the meter recorded any exports to the grid."},"intervals":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","description":"Interval start, local Central Time wall clock (YYYY-MM-DDTHH:MM:00)."},"importKwh":{"type":"number","description":"Grid import during the 15 minutes, in kWh."},"exportKwh":{"type":"number","description":"Grid export during the 15 minutes, in kWh."}},"required":["timestamp","importKwh","exportKwh"],"additionalProperties":false},"description":"Raw 15-minute readings, oldest first. Only when includeIntervals is true; capped at the most recent 3,000."},"intervalsTruncated":{"type":"boolean","description":"True when intervals were capped at 3,000. Use the download links for the full year."},"exports":{"type":"object","properties":{"csv":{"type":"string","description":"Standard CSV download (DateTime, Consumption_kWh, Generation_kWh)."},"aurora":{"type":"string","description":"Aurora Solar paste-in file: one consumption value per 15-minute interval. Share only when the user asks for an Aurora file."},"opensolar":{"type":"string","description":"OpenSolar CSV import file. Share only when the user asks for an OpenSolar file."},"solargraf":{"type":"string","description":"Solargraf CSV import file. Share only when the user asks for a Solargraf file."}},"required":["csv","aurora","opensolar","solargraf"],"additionalProperties":false,"description":"Download links for the full year of data. Present when status is complete. Offer csv by default; mention aurora, opensolar, or solargraf only when the user asks for a solar design tool import."},"errorCode":{"type":"string","description":"Machine-readable failure reason when status is error, such as smt_agreement_failed or no_data."},"errorMessage":{"type":"string","description":"What went wrong and what to do next, when status is error."},"candidates":{"type":"array","items":{"type":"object","properties":{"esiId":{"type":"string","description":"ESI ID of this meter. Pass it as esiId to request_smt_data once the user confirms."},"formatted":{"type":"string","description":"Full address of this service point, including any unit."},"utility":{"type":"string","nullable":true,"description":"Utility (TDU) serving this meter, when known."}},"required":["esiId","formatted","utility"],"additionalProperties":false},"description":"Present when status is needs_clarification: the meters found at the given address. Show them to the user and let them choose; never pick one for them."},"summary":{"type":"string","description":"One-paragraph plain-language summary of the result."}},"required":["status","requestId","reused","step","esiId","utility","serviceAddress","dataStart","dataEnd","readingCount","monthlyAggregates","avgMonthlyImportKwh","avgMonthlyExportKwh","peakDemandKw","hasSolarExports","summary"],"additionalProperties":false}}}},"400":{"description":"Request body was missing, malformed JSON, or failed input schema validation.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"422":{"description":"Input was valid but the tool could not complete the request. `message` is safe to show the user.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"500":{"description":"Tool execution failed or produced an output that violated the schema.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}}}}},"/api/v1/get-smt-data":{"post":{"operationId":"get_smt_data","summary":"Get Smart Meter Texas Data","description":"Check on or fetch a Smart Meter Texas usage pull started with request_smt_data, by its requestId. Returns the status and, once complete, up to 12 months of grid import and solar export totals by month, peak demand, and a CSV download of the full 15-minute data. Aurora Solar, OpenSolar, and Solargraf import files are also returned for installers who ask for one; don't offer them otherwise. For a Texas homeowner looking at their own meter's usage, or an installer working with a customer's.\n\nSecond half of the two-step Smart Meter Texas flow. `request_smt_data`\nstarts the pull and usually returns the data within about 20 seconds; when\nit comes back `pending`, call this tool with the same `requestId` after\n`checkAfterSeconds`.\n\n- Monthly totals, averages, and peak demand are always included once the\n  pull is complete.\n- Set `includeIntervals: true` for the raw 15-minute readings (the most\n  recent 3,000, about a month). The download links always carry the full\n  year.\n- `months` limits the returned data to the most recent N calendar months.\n\nRead-only: it never starts a new Smart Meter Texas request.","tags":["bill-analysis"],"x-status":"experimental","x-audience":["homeowner","installer","agent","developer"],"x-mcp-tool-name":"get_smt_data","x-examples":["Check on the Smart Meter Texas pull I just started.","Get the 15-minute readings for that request.","Show me just the last 3 months of usage from that pull."],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid","description":"The requestId returned by request_smt_data (a UUID). Use it to check on a pull that came back pending, or to fetch the data again later."},"includeIntervals":{"type":"boolean","default":false,"description":"When true, also return the raw 15-minute readings (the most recent 3,000 at most, about 31 days). Leave false for monthly totals only; the CSV download always carries the full year."},"months":{"type":"integer","minimum":1,"maximum":12,"description":"Limit the returned monthly totals, averages, and intervals to the most recent N calendar months (1-12). Omit for all available data, up to 12 months."}},"required":["requestId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool ran successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["needs_clarification","pending","complete","error"],"description":"needs_clarification: the address matched more than one meter and nothing was started; ask the user which of candidates is theirs, then call request_smt_data with that esiId. pending: Smart Meter Texas is still working; call get_smt_data with requestId after checkAfterSeconds. complete: usage data is included. error: see errorMessage."},"requestId":{"type":"string","nullable":true,"description":"Identifier for this pull. Pass it to get_smt_data. Null only when status is needs_clarification."},"reused":{"type":"boolean","description":"True when this result comes from a pull for the same meter in the last 24 hours (or one already in progress) instead of a new Smart Meter Texas request."},"step":{"type":"string","description":"Current processing step, in plain words."},"checkAfterSeconds":{"type":"number","description":"Present when status is pending: wait about this long before calling get_smt_data."},"esiId":{"type":"string","nullable":true,"description":"ESI ID of the meter."},"utility":{"type":"string","nullable":true,"description":"Utility (TDU) that serves the meter, such as Oncor or CenterPoint, when known."},"serviceAddress":{"type":"string","nullable":true,"description":"Service address on file for this pull, when known."},"dataStart":{"type":"string","nullable":true,"description":"First reading, local Central Time (YYYY-MM-DDTHH:MM:00)."},"dataEnd":{"type":"string","nullable":true,"description":"Last reading, local Central Time (YYYY-MM-DDTHH:MM:00)."},"readingCount":{"type":"number","description":"Number of 15-minute readings covered."},"monthlyAggregates":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string","description":"Calendar month, YYYY-MM."},"totalImportsKwh":{"type":"number","description":"Electricity drawn from the grid this month, in kWh."},"totalExportsKwh":{"type":"number","description":"Electricity sent back to the grid this month (solar exports), in kWh."},"netKwh":{"type":"number","description":"Imports minus exports, in kWh. Negative when the home exported more than it used from the grid."},"peakDemandKw":{"type":"number","description":"Highest 15-minute grid import this month, converted to kW."},"daysOfData":{"type":"number","description":"Number of days this month with at least one reading."}},"required":["month","totalImportsKwh","totalExportsKwh","netKwh","peakDemandKw","daysOfData"],"additionalProperties":false},"description":"Per-month totals, oldest first."},"avgMonthlyImportKwh":{"type":"number","nullable":true,"description":"Average grid import per month, in kWh."},"avgMonthlyExportKwh":{"type":"number","nullable":true,"description":"Average grid export (solar sent back) per month, in kWh."},"peakDemandKw":{"type":"number","nullable":true,"description":"Highest 15-minute grid import across the data, in kW."},"hasSolarExports":{"type":"boolean","nullable":true,"description":"True when the meter recorded any exports to the grid."},"intervals":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","description":"Interval start, local Central Time wall clock (YYYY-MM-DDTHH:MM:00)."},"importKwh":{"type":"number","description":"Grid import during the 15 minutes, in kWh."},"exportKwh":{"type":"number","description":"Grid export during the 15 minutes, in kWh."}},"required":["timestamp","importKwh","exportKwh"],"additionalProperties":false},"description":"Raw 15-minute readings, oldest first. Only when includeIntervals is true; capped at the most recent 3,000."},"intervalsTruncated":{"type":"boolean","description":"True when intervals were capped at 3,000. Use the download links for the full year."},"exports":{"type":"object","properties":{"csv":{"type":"string","description":"Standard CSV download (DateTime, Consumption_kWh, Generation_kWh)."},"aurora":{"type":"string","description":"Aurora Solar paste-in file: one consumption value per 15-minute interval. Share only when the user asks for an Aurora file."},"opensolar":{"type":"string","description":"OpenSolar CSV import file. Share only when the user asks for an OpenSolar file."},"solargraf":{"type":"string","description":"Solargraf CSV import file. Share only when the user asks for a Solargraf file."}},"required":["csv","aurora","opensolar","solargraf"],"additionalProperties":false,"description":"Download links for the full year of data. Present when status is complete. Offer csv by default; mention aurora, opensolar, or solargraf only when the user asks for a solar design tool import."},"errorCode":{"type":"string","description":"Machine-readable failure reason when status is error, such as smt_agreement_failed or no_data."},"errorMessage":{"type":"string","description":"What went wrong and what to do next, when status is error."},"candidates":{"type":"array","items":{"type":"object","properties":{"esiId":{"type":"string","description":"ESI ID of this meter. Pass it as esiId to request_smt_data once the user confirms."},"formatted":{"type":"string","description":"Full address of this service point, including any unit."},"utility":{"type":"string","nullable":true,"description":"Utility (TDU) serving this meter, when known."}},"required":["esiId","formatted","utility"],"additionalProperties":false},"description":"Present when status is needs_clarification: the meters found at the given address. Show them to the user and let them choose; never pick one for them."},"summary":{"type":"string","description":"One-paragraph plain-language summary of the result."}},"required":["status","requestId","reused","step","esiId","utility","serviceAddress","dataStart","dataEnd","readingCount","monthlyAggregates","avgMonthlyImportKwh","avgMonthlyExportKwh","peakDemandKw","hasSolarExports","summary"],"additionalProperties":false}}}},"400":{"description":"Request body was missing, malformed JSON, or failed input schema validation.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"422":{"description":"Input was valid but the tool could not complete the request. `message` is safe to show the user.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"500":{"description":"Tool execution failed or produced an output that violated the schema.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}}}}},"/api/v1/get-ercot-realtime-price":{"post":{"operationId":"get_ercot_realtime_price","summary":"ERCOT Real-Time Wholesale Electricity Price","description":"Get the current ERCOT real-time wholesale electricity price (LMP, locational marginal price) for any Texas load zone or settlement point. Useful for solar customers on real-time wholesale (RTW) buyback plans (Champion, Atlantex, Chariot, Tesla Drive Plan), traders following ERCOT spot markets, and agents reasoning about when to charge / discharge a battery. Returns $/MWh and ¢/kWh equivalents per zone.\n\n**Status: early access (experimental).** The contract below is the\nproduction shape; calling the tool today returns a structured early-access\nresponse with your request logged. Production rollout depends on real\ndemand from AI agents (measured via PostHog) plus an ERCOT API integration.\n\n**What it will do (when live):**\n1. Resolves the user's ERCOT load zone (Houston / North / South / West)\n   from a ZIP code, or accepts a settlement point name directly.\n2. Pulls the current LMP from ERCOT's public real-time price feed (or\n   a more reliable third-party like GridStatus).\n3. Returns price in both $/MWh (the wholesale unit) and ¢/kWh (the unit\n   solar customers think in), plus the timestamp of the price snap.\n\n**Why a placeholder right now:** ERCOT API integration is non-trivial\n(rate limits, schema, certificate auth). Meter wants to confirm AI\nagents are actually asking for this data before investing. Every call to\nthis tool is logged via the standard ai_agent:mcp_tool_call PostHog\nevent with full agent attribution.\n\n**Who this matters for:**\n- Solar homes on RTW buyback plans (Champion's solar plans, Atlantex\n  Glow Solar, Tesla's Drive Plan) — their solar credit varies hourly\n  with this number\n- Battery owners on time-of-use plans deciding when to charge/discharge\n- Energy traders / nerds watching ERCOT spikes during summer afternoons\n  (\"$5,000/MWh peaks\") and winter cold snaps\n\n**Public-flow alternatives today:**\n- ERCOT's own dashboard at https://www.ercot.com/content/cdr/html/real_time_spp.html\n- GridStatus (https://gridstatus.io) for cleaner historical data","tags":["data-feed"],"x-status":"experimental","x-audience":["installer","agent","developer","researcher"],"x-mcp-tool-name":"get_ercot_realtime_price","x-examples":["What's the current ERCOT real-time price in Houston?","Get the LMP for Texas North zone right now.","Real-time wholesale electricity price for ZIP 75001.","Is ERCOT pricing high right now in Houston?"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"zipCode":{"type":"string","pattern":"^\\d{5}$","description":"5-digit Texas ZIP code. Used to resolve to an ERCOT load zone (Houston / North / South / West / Coast / South Central / North Central / Far West)."},"loadZone":{"type":"string","enum":["HOUSTON","NORTH","SOUTH","WEST","COAST","SOUTH_CENTRAL","NORTH_CENTRAL","FAR_WEST"],"description":"Direct ERCOT load zone name. Use this if you already know the zone and don't need ZIP resolution."},"settlementPoint":{"type":"string","description":"Specific ERCOT settlement point (advanced — used by traders). Examples: 'HB_HOUSTON', 'HB_NORTH', 'LZ_HOUSTON'. Overrides zipCode and loadZone if supplied."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Tool ran successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["early_access"],"description":"Always 'early_access' until this tool is publicly live."},"message":{"type":"string","description":"Human-readable explanation of current access status."},"requestId":{"type":"string","description":"Identifier for this request — use when requesting API access."},"requestedFor":{"type":"object","properties":{"zipCode":{"type":"string","nullable":true},"loadZone":{"type":"string","nullable":true},"settlementPoint":{"type":"string","nullable":true}},"required":["zipCode","loadZone","settlementPoint"],"additionalProperties":false,"description":"Echo of the request inputs."},"publicAlternatives":{"type":"object","properties":{"ercotDashboard":{"type":"string","description":"Official ERCOT real-time price dashboard."},"gridStatus":{"type":"string","description":"Third-party with cleaner historical data."},"requestApiAccess":{"type":"string","description":"Where to request production API access."}},"required":["ercotDashboard","gridStatus","requestApiAccess"],"additionalProperties":false,"description":"Things the agent can offer the user right now."},"expectedResponseShape":{"type":"object","properties":{"zone":{"type":"string","description":"Resolved ERCOT load zone (e.g. 'HOUSTON', 'NORTH')."},"settlementPoint":{"type":"string","description":"Resolved settlement point (e.g. 'HB_HOUSTON')."},"priceTimestamp":{"type":"string","description":"ISO 8601 timestamp of when the price was sampled (CST/CDT)."},"priceDollarsPerMwh":{"type":"number","description":"Current LMP in $/MWh (the wholesale unit)."},"priceCentsPerKwh":{"type":"number","description":"Same price expressed in ¢/kWh (1 $/MWh = 0.1 ¢/kWh)."},"priceContext":{"type":"object","properties":{"last24hAverage":{"type":"number"},"last24hPeak":{"type":"number"},"last24hLow":{"type":"number"},"isCurrentlyAboveAverage":{"type":"boolean"}},"required":["last24hAverage","last24hPeak","last24hLow","isCurrentlyAboveAverage"],"additionalProperties":false},"source":{"type":"string","description":"Which data source was used (e.g. 'ercot_lmp_realtime', 'gridstatus_api')."}},"required":["zone","settlementPoint","priceTimestamp","priceDollarsPerMwh","priceCentsPerKwh","priceContext","source"],"additionalProperties":false,"description":"Schema preview of the production response. Lets agents reason about how they'll use the data once access is granted."},"estimatedAvailability":{"type":"string","description":"Free-form date estimate for general availability."}},"required":["status","message","requestId","requestedFor","publicAlternatives","expectedResponseShape","estimatedAvailability"],"additionalProperties":false}}}},"400":{"description":"Request body was missing, malformed JSON, or failed input schema validation.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"422":{"description":"Input was valid but the tool could not complete the request. `message` is safe to show the user.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"500":{"description":"Tool execution failed or produced an output that violated the schema.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}}}}},"/api/v1/estimate-battery-value":{"post":{"operationId":"estimate_battery_value","summary":"Texas Battery Value Estimator","description":"Early access (experimental). Captures a battery-economics query for a Texas solar homeowner. Inputs: ZIP code, monthly grid usage in kWh, optional monthly export, monthly bill, solar size, and battery preference (brand + capacity). Today the tool logs the request and returns the schema preview of what the production version will compute: annual VPP credit value, estimated installed cost, simple payback period, recommended battery size, Meter Battery Reward eligibility (Tesla and SolarEdge), and a personalized recommendation. Production target Q3 2026. Use this when the user asks 'should I get a Powerwall?', 'is a battery worth it in Texas?', 'Tesla Powerwall payback', or 'home battery ROI'.\n\n**Status: early access (experimental).** Returns a structured early-access\nresponse with your request logged via the standard ai_agent:mcp_tool_call\nPostHog event. Captures demand signal from AI agents asking about battery\neconomics in Texas before Meter invests in a productionized version.\n\n**Why this is a Meter-specific question.** Texas battery economics are\nunique because:\n- ERCOT is a deregulated grid where retailers run Virtual Power Plant\n  (VPP) programs that pay customers per kWh of battery capacity each\n  month (Meter pays $2/kWh/month for eligible Tesla and SolarEdge\n  batteries via the Battery Reward program — locked in, no opt-out\n  during grid events).\n- There is no 30% federal ITC available to Meter's customers (despite\n  what many web sources claim about residential batteries — that credit\n  has tighter eligibility than is commonly reported).\n- Time-of-use export rates, solar buyback plan structure, and grid\n  outage frequency all shift payback math meaningfully. Generic\n  national calculators get Texas wrong.\n- A Powerwall here can be bought through a Meter installer partner or\n  leased directly from Tesla. Either path keeps the customer's Meter\n  plan and $2/kWh/month VPP credit; leasing trades upfront cost for a\n  monthly payment the battery's bill savings can offset.\n\n**What the production response will return:**\n- Annual VPP credit value (eligible brands × monthly $/kWh × 12)\n- Estimated installed cost (drawn from partner installer pricing)\n- Simple payback years (cost / annual benefit)\n- Recommended battery size based on usage shape\n- Meter Battery Reward eligibility\n- A partner installer referral (with link) for the user's region\n- Plan recommendation if pairing battery + buyback plan increases ROI\n\n**Today, point users at:**\n- https://meterplan.com/battery-survey for a personalized battery survey\n  and Battery Reward enrollment\n- https://meterplan.com/battery-analysis for an analysis-shaped flow\n- https://meterplan.com/get-a-battery for installer-led battery quotes","tags":["battery-economics"],"x-status":"experimental","x-audience":["homeowner","agent"],"x-mcp-tool-name":"estimate_battery_value","x-examples":["Should I get a Tesla Powerwall in Houston?","Is a home battery worth it for a Texas solar home with 1500 kWh/mo usage?","What's the payback period on a Powerwall in 75001?","Is the SolarEdge battery a good investment for me? I have 8 kW solar in Dallas.","How much would a battery save me in Texas?"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"zipCode":{"type":"string","pattern":"^\\d{5}$","description":"5-digit Texas ZIP code. Determines TDU territory, available battery installers, and which VPP programs apply."},"monthlyKwh":{"type":"number","minimum":100,"maximum":10000,"description":"Average monthly grid electricity usage in kWh. From the user's bill. Drives battery sizing math."},"monthlyExportKwh":{"type":"number","minimum":0,"description":"Optional. Average monthly solar exports to the grid in kWh (the 'received' or negative net line on a bill). Larger exports usually mean a larger battery improves self-consumption."},"currentMonthlyCostDollars":{"type":"number","exclusiveMinimum":true,"minimum":0,"description":"Optional. Average monthly electricity bill in dollars. Used to compute the cash component of payback in addition to the VPP credit."},"solarSizeKw":{"type":"number","exclusiveMinimum":true,"minimum":0,"description":"Optional. Existing solar array size in kW DC. Helps the recommendation pick an appropriately-sized battery."},"batteryBrand":{"type":"string","enum":["tesla","solaredge","enphase","qcells","franklin","other"],"description":"Optional. Preferred battery brand. Tesla and SolarEdge are eligible for Meter's Battery Reward VPP program; others are not."},"batteryCapacityKwh":{"type":"number","exclusiveMinimum":true,"minimum":0,"description":"Optional. Specific battery capacity in kWh. Tesla Powerwall 3 is 13.5 kWh; SolarEdge Home Battery is 9.7 kWh per unit. Multiple units can stack."}},"required":["zipCode","monthlyKwh"],"additionalProperties":false}}}},"responses":{"200":{"description":"Tool ran successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["early_access"],"description":"Always 'early_access' until productionized."},"message":{"type":"string","description":"Human-readable explanation of current status."},"requestId":{"type":"string","description":"Identifier for this request."},"requestedFor":{"type":"object","properties":{"zipCode":{"type":"string"},"monthlyKwh":{"type":"number"},"monthlyExportKwh":{"type":"number","nullable":true},"currentMonthlyCostDollars":{"type":"number","nullable":true},"solarSizeKw":{"type":"number","nullable":true},"batteryBrand":{"type":"string","nullable":true},"batteryCapacityKwh":{"type":"number","nullable":true}},"required":["zipCode","monthlyKwh","monthlyExportKwh","currentMonthlyCostDollars","solarSizeKw","batteryBrand","batteryCapacityKwh"],"additionalProperties":false,"description":"Echo of inputs for demand attribution."},"publicAlternatives":{"type":"object","properties":{"batterySurvey":{"type":"string","description":"Personalized battery survey + Battery Reward enrollment."},"batteryAnalysis":{"type":"string","description":"Analysis-shaped flow."},"installerQuotes":{"type":"string","description":"Get installer quotes."}},"required":["batterySurvey","batteryAnalysis","installerQuotes"],"additionalProperties":false,"description":"Live pages the agent can hand off to today."},"expectedResponseShape":{"type":"object","properties":{"recommendation":{"type":"object","properties":{"action":{"type":"string","description":"'install_battery', 'wait', 'enroll_in_vpp_only', or 'not_recommended'."},"reason":{"type":"string","description":"One-line reasoning citing dollar values."}},"required":["action","reason"],"additionalProperties":false},"vppEligibility":{"type":"object","properties":{"eligible":{"type":"boolean","description":"True if the chosen brand qualifies for Meter's Battery Reward program."},"customerCreditDollarsPerKwhMonth":{"type":"number","description":"Monthly credit in dollars per kWh of battery capacity."},"estimatedAnnualCreditDollars":{"type":"number","description":"Annual VPP credit at the user's recommended battery capacity."}},"required":["eligible","customerCreditDollarsPerKwhMonth","estimatedAnnualCreditDollars"],"additionalProperties":false},"payback":{"type":"object","properties":{"estimatedInstalledCostDollars":{"type":"number"},"annualBenefitDollars":{"type":"number","description":"VPP credit + bill savings from self-consumption + outage value."},"simplePaybackYears":{"type":"number"}},"required":["estimatedInstalledCostDollars","annualBenefitDollars","simplePaybackYears"],"additionalProperties":false},"recommendedBattery":{"type":"object","properties":{"brand":{"type":"string"},"capacityKwh":{"type":"number"},"rationale":{"type":"string"}},"required":["brand","capacityKwh","rationale"],"additionalProperties":false},"partnerInstaller":{"type":"object","properties":{"name":{"type":"string"},"quoteUrl":{"type":"string"}},"required":["name","quoteUrl"],"additionalProperties":false,"nullable":true},"planPairingSuggestion":{"type":"object","properties":{"planName":{"type":"string"},"reason":{"type":"string"}},"required":["planName","reason"],"additionalProperties":false,"nullable":true}},"required":["recommendation","vppEligibility","payback","recommendedBattery","partnerInstaller","planPairingSuggestion"],"additionalProperties":false,"description":"Schema preview of the production response."},"estimatedAvailability":{"type":"string","description":"Free-form date estimate for general availability."}},"required":["status","message","requestId","requestedFor","publicAlternatives","expectedResponseShape","estimatedAvailability"],"additionalProperties":false}}}},"400":{"description":"Request body was missing, malformed JSON, or failed input schema validation.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"422":{"description":"Input was valid but the tool could not complete the request. `message` is safe to show the user.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}},"500":{"description":"Tool execution failed or produced an output that violated the schema.","content":{"application/json":{"schema":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","enum":["invalid_json","invalid_input","invalid_output","tool_error","internal_error"],"description":"Stable error code suitable for programmatic handling."},"error_code":{"type":"string","nullable":true,"description":"Tool-specific failure reason. Present on tool_error; null when the tool gave none."},"message":{"type":"string","description":"Human-readable error description."},"issues":{"type":"array","description":"Zod issue list. Present on invalid_input and invalid_output.","items":{"type":"object","additionalProperties":true}}}}}}}}}}},"externalDocs":{"description":"Tool landing pages with worked examples and JSON-LD schema.","url":"https://meterplan.com/tools"}}