{"openapi":"3.1.0","info":{"title":"NREL Energy Data (BYOK) API","version":"0.1.0","description":"NREL Energy Data (BYOK) lets an AI assistant read your own NREL Energy Data data through the NREL Energy Data API with a key you supply (api.data.gov API key (NREL)). Read-only: 7 tools (get_solar_resource, find_solar_weather_stations, get_utility_rates, get_utility_rates_by_census_region, list_fuel_stations, find_nearest_fuel_stations, get_fuel_station). The BYOK key travels with each request,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-nrel-energy.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-nrel-energy/docs"},"termsOfService":"https://connectorbay.com/byok-nrel-energy/terms"},"servers":[{"url":"https://byok-nrel-energy.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-nrel-energy/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/get_solar_resource":{"post":{"operationId":"get_solar_resource","summary":"Get average solar radiation (direct normal, global horizontal and tilt at latitude), annual and by month in kWh/m2/day, ","description":"Get average solar radiation (direct normal, global horizontal and tilt at latitude), annual and by month in kWh/m2/day, for a US location. Use for \"How much sun does Boulder, Colorado get in each month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"address":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Street address or place to use. Give address, or lat and lon.","title":"Address"},"lat":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"Latitude in decimal degrees. Use with lon when no address is given.","title":"Lat"},"lon":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"Longitude in decimal degrees. Use with lat when no address is given.","title":"Lon"}},"title":"get_solar_resourceArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/find_solar_weather_stations":{"post":{"operationId":"find_solar_weather_stations","summary":"Find the weather stations and solar datasets (TMY2, TMY3, international, NSRDB) closest to a location, with distance and","description":"Find the weather stations and solar datasets (TMY2, TMY3, international, NSRDB) closest to a location, with distance and elevation. Use for \"Which solar weather data station is closest to Phoenix\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"address":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Street address or place to use. Give address, or lat and lon.","title":"Address"},"lat":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"Latitude in decimal degrees. Use with lon when no address is given.","title":"Lat"},"lon":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"Longitude in decimal degrees. Use with lat when no address is given.","title":"Lon"},"radius":{"anyOf":[{"maximum":500,"minimum":0,"type":"number"},{"type":"null"}],"default":0,"description":"Search radius in miles (0 returns only the closest stations).","title":"Radius"},"all":{"anyOf":[{"enum":[0,1],"type":"integer"},{"type":"null"}],"default":0,"description":"1 to return every station inside the radius, 0 for the closest of each dataset only.","title":"All"}},"title":"find_solar_weather_stationsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_utility_rates":{"post":{"operationId":"get_utility_rates","summary":"Get the annual average electricity price in USD per kWh (residential, commercial, industrial) and the utility serving a ","description":"Get the annual average electricity price in USD per kWh (residential, commercial, industrial) and the utility serving a US location. Based on 2012 data. Use for \"What is the average residential electricity rate in Denver and who is the utility\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"address":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Street address or place to use. Give address, or lat and lon.","title":"Address"},"lat":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"Latitude in decimal degrees. Use with lon when no address is given.","title":"Lat"},"lon":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"Longitude in decimal degrees. Use with lat when no address is given.","title":"Lon"},"radius":{"anyOf":[{"maximum":500,"minimum":0,"type":"number"},{"type":"null"}],"default":0,"description":"Radius in miles for utilities with intersecting boundaries (0 for the point only).","title":"Radius"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum number of results to return.","title":"Limit"}},"title":"get_utility_ratesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_utility_rates_by_census_region":{"post":{"operationId":"get_utility_rates_by_census_region","summary":"Get the electricity rate, utility and Census Bureau region id for a location at block, block group or tract level. Use f","description":"Get the electricity rate, utility and Census Bureau region id for a location at block, block group or tract level. Use for \"What utility and electricity rate applies to the census block at 1600 Pennsylvania Ave\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"address":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Street address or place to use. Give address, or lat and lon.","title":"Address"},"lat":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"Latitude in decimal degrees. Use with lon when no address is given.","title":"Lat"},"lon":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"Longitude in decimal degrees. Use with lat when no address is given.","title":"Lon"},"region":{"anyOf":[{"enum":["block","blockgroup","track"],"type":"string"},{"type":"null"}],"default":"block","description":"Census region level: block, blockgroup or track (as the provider spells it).","title":"Region"},"id":{"anyOf":[{"maximum":2147483647,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"A number you choose to identify this request in the answer.","title":"Id"}},"title":"get_utility_rates_by_census_regionArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_fuel_stations":{"post":{"operationId":"list_fuel_stations","summary":"List US and Canadian alternative fuel stations (EV charging, E85, CNG, biodiesel, hydrogen, LNG, LPG) with location, fue","description":"List US and Canadian alternative fuel stations (EV charging, E85, CNG, biodiesel, hydrogen, LNG, LPG) with location, fuel type and EV details, filtered by place and fuel. Use for \"Where are the public EV fast chargers in Colorado\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"fuel_type":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Fuel type codes, comma separated, for example ELEC for electric charging, E85, CNG, BD, HY, LNG or LPG.","title":"Fuel Type"},"state":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter US state code (several may be comma separated), for example CO.","title":"State"},"zip":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Five-digit ZIP code (several may be comma separated).","title":"Zip"},"status":{"anyOf":[{"enum":["all","E","P","T"],"type":"string"},{"type":"null"}],"default":null,"description":"Station status: E open, P planned or T temporarily unavailable (comma separated, or all).","title":"Status"},"access":{"anyOf":[{"enum":["all","public","private"],"type":"string"},{"type":"null"}],"default":null,"description":"Access type: public, private or all.","title":"Access"},"ev_charging_level":{"anyOf":[{"enum":["all","1","2","dc_fast","legacy"],"type":"string"},{"type":"null"}],"default":null,"description":"For electric stations only: 1, 2, dc_fast or legacy.","title":"Ev Charging Level"},"ev_network":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"For electric stations only: charging network name, for example Tesla or ChargePoint Network.","title":"Ev Network"},"country":{"anyOf":[{"enum":["all","US","CA"],"type":"string"},{"type":"null"}],"default":null,"description":"Country: US, CA or all.","title":"Country"},"limit":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Maximum stations to return (up to 200).","title":"Limit"}},"title":"list_fuel_stationsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/find_nearest_fuel_stations":{"post":{"operationId":"find_nearest_fuel_stations","summary":"Find alternative fuel stations nearest to a place, within a radius, with the same fuel filters as the list tool. Use for","description":"Find alternative fuel stations nearest to a place, within a radius, with the same fuel filters as the list tool. Use for \"Which EV chargers are within 5 miles of downtown Denver\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"location":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Free-text address or place name. Give location, or latitude and longitude.","title":"Location"},"latitude":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"Latitude in decimal degrees (use with longitude).","title":"Latitude"},"longitude":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"Longitude in decimal degrees (use with latitude).","title":"Longitude"},"radius":{"anyOf":[{"maximum":500,"minimum":0,"type":"number"},{"type":"null"}],"default":5,"description":"Search radius in miles (default 5).","title":"Radius"},"fuel_type":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Fuel type codes, comma separated, for example ELEC for electric charging, E85, CNG, BD, HY, LNG or LPG.","title":"Fuel Type"},"state":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter US state code (several may be comma separated), for example CO.","title":"State"},"zip":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Five-digit ZIP code (several may be comma separated).","title":"Zip"},"status":{"anyOf":[{"enum":["all","E","P","T"],"type":"string"},{"type":"null"}],"default":null,"description":"Station status: E open, P planned or T temporarily unavailable (comma separated, or all).","title":"Status"},"access":{"anyOf":[{"enum":["all","public","private"],"type":"string"},{"type":"null"}],"default":null,"description":"Access type: public, private or all.","title":"Access"},"ev_charging_level":{"anyOf":[{"enum":["all","1","2","dc_fast","legacy"],"type":"string"},{"type":"null"}],"default":null,"description":"For electric stations only: 1, 2, dc_fast or legacy.","title":"Ev Charging Level"},"ev_network":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"For electric stations only: charging network name, for example Tesla or ChargePoint Network.","title":"Ev Network"},"limit":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Maximum stations to return (up to 200).","title":"Limit"}},"title":"find_nearest_fuel_stationsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_fuel_station":{"post":{"operationId":"get_fuel_station","summary":"Get the full record of one alternative fuel station by its numeric id. Use for \"Give me the details of fuel station 1000","description":"Get the full record of one alternative fuel station by its numeric id. Use for \"Give me the details of fuel station 100001\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Numeric station id as returned by the list tools.","maxLength":12,"title":"Id","type":"string"}},"required":["id"],"title":"get_fuel_stationArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}