{"openapi":"3.1.0","info":{"title":"Weatherbit Ag And Energy (BYOK) API","version":"0.1.0","description":"Weatherbit Ag And Energy (BYOK) lets an AI assistant read your own Weatherbit Ag And Energy data through the Weatherbit Ag And Energy API with a key you supply (API key). Read-only: 5 tools (get_ag_forecast, get_ag_history, get_energy_forecast, get_energy_history, get_air_quality_history). The BYOK key travels with each request, is used for that one call only and is never stored, logged or...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-weatherbit-ag-energy.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-weatherbit-ag-energy/docs"},"termsOfService":"https://connectorbay.com/byok-weatherbit-ag-energy/terms"},"servers":[{"url":"https://byok-weatherbit-ag-energy.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-weatherbit-ag-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_ag_forecast":{"post":{"operationId":"get_ag_forecast","summary":"Get the 8 day agriculture forecast for a point: temperature, rain, reference evapotranspiration and soil moisture and te","description":"Get the 8 day agriculture forecast for a point: temperature, rain, reference evapotranspiration and soil moisture and temperature at four depths (Business or Enterprise plan). Use for \"What is the soil moisture and evapotranspiration forecast for latitude 35.78, longitude -78.64\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"lat":{"description":"Latitude in decimal degrees, -90 to 90.","maximum":90,"minimum":-90,"title":"Lat","type":"number"},"lon":{"description":"Longitude in decimal degrees, -180 to 180.","maximum":180,"minimum":-180,"title":"Lon","type":"number"},"units":{"anyOf":[{"enum":["M","I","S"],"type":"string"},{"type":"null"}],"default":"M","description":"Unit system: M metric, I imperial or S scientific.","title":"Units"}},"required":["lat","lon"],"title":"get_ag_forecastArguments","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_ag_history":{"post":{"operationId":"get_ag_history","summary":"Get past agriculture weather for a point and date range from ERA5 and satellite precipitation: soil moisture and tempera","description":"Get past agriculture weather for a point and date range from ERA5 and satellite precipitation: soil moisture and temperature, evapotranspiration, radiation and wind (up to 10 years back; Business or Enterprise plan). Use for \"How wet was the soil at latitude 35.78, longitude -78.64 in the last week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"lat":{"description":"Latitude in decimal degrees, -90 to 90.","maximum":90,"minimum":-90,"title":"Lat","type":"number"},"lon":{"description":"Longitude in decimal degrees, -180 to 180.","maximum":180,"minimum":-180,"title":"Lon","type":"number"},"start_date":{"description":"Start as YYYY-MM-DD or YYYY-MM-DD:HH.","maxLength":13,"title":"Start Date","type":"string"},"end_date":{"description":"End as YYYY-MM-DD or YYYY-MM-DD:HH.","maxLength":13,"title":"End Date","type":"string"},"period":{"anyOf":[{"enum":["daily","hourly"],"type":"string"},{"type":"null"}],"default":"daily","description":"daily (default) or hourly values.","title":"Period"},"units":{"anyOf":[{"enum":["M","I","S"],"type":"string"},{"type":"null"}],"default":"M","description":"Unit system: M metric, I imperial or S scientific.","title":"Units"}},"required":["lat","lon","start_date","end_date"],"title":"get_ag_historyArguments","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_energy_forecast":{"post":{"operationId":"get_energy_forecast","summary":"Get the forecast of heating and cooling degree days with temperature, humidity, cloud cover and wind for a point, daily ","description":"Get the forecast of heating and cooling degree days with temperature, humidity, cloud cover and wind for a point, daily or hourly (Business or Enterprise plan). Use for \"How many heating degree days are forecast for latitude 35.78, longitude -78.64\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"lat":{"description":"Latitude in decimal degrees, -90 to 90.","maximum":90,"minimum":-90,"title":"Lat","type":"number"},"lon":{"description":"Longitude in decimal degrees, -180 to 180.","maximum":180,"minimum":-180,"title":"Lon","type":"number"},"threshold":{"anyOf":[{"maximum":60,"minimum":-40,"type":"number"},{"type":"null"}],"default":null,"description":"Temperature in Celsius used to compute degree days (default 18).","title":"Threshold"},"units":{"anyOf":[{"enum":["M","I","S"],"type":"string"},{"type":"null"}],"default":"M","description":"Unit system: M metric, I imperial or S scientific.","title":"Units"},"period":{"anyOf":[{"enum":["daily","hourly"],"type":"string"},{"type":"null"}],"default":"daily","description":"daily (default) or hourly.","title":"Period"}},"required":["lat","lon"],"title":"get_energy_forecastArguments","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_energy_history":{"post":{"operationId":"get_energy_history","summary":"Get past heating and cooling degree days with temperature, humidity, cloud cover and wind for a point and date range (Bu","description":"Get past heating and cooling degree days with temperature, humidity, cloud cover and wind for a point and date range (Business or Enterprise plan, 5 days per request for hourly detail). Use for \"How many cooling degree days did latitude 35.78, longitude -78.64 have in the past week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"lat":{"description":"Latitude in decimal degrees, -90 to 90.","maximum":90,"minimum":-90,"title":"Lat","type":"number"},"lon":{"description":"Longitude in decimal degrees, -180 to 180.","maximum":180,"minimum":-180,"title":"Lon","type":"number"},"start_date":{"description":"Start as YYYY-MM-DD or YYYY-MM-DD:HH.","maxLength":13,"title":"Start Date","type":"string"},"end_date":{"description":"End as YYYY-MM-DD or YYYY-MM-DD:HH.","maxLength":13,"title":"End Date","type":"string"},"period":{"anyOf":[{"enum":["hourly","daily","monthly"],"type":"string"},{"type":"null"}],"default":"daily","description":"Aggregation: daily (default), hourly or monthly.","title":"Period"},"threshold":{"anyOf":[{"maximum":60,"minimum":-40,"type":"number"},{"type":"null"}],"default":null,"description":"Temperature in Celsius used to compute degree days (default 18).","title":"Threshold"},"units":{"anyOf":[{"enum":["M","I","S"],"type":"string"},{"type":"null"}],"default":"M","description":"Unit system: M metric, I imperial or S scientific.","title":"Units"}},"required":["lat","lon","start_date","end_date"],"title":"get_energy_historyArguments","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_air_quality_history":{"post":{"operationId":"get_air_quality_history","summary":"Get hourly past air quality for a point: AQI and PM2.5, PM10, CO, SO2, NO2 and ozone concentrations (default last 72 hou","description":"Get hourly past air quality for a point: AQI and PM2.5, PM10, CO, SO2, NO2 and ozone concentrations (default last 72 hours; data since 13 January 2022; Business or Enterprise plan). Use for \"How was the air quality at latitude 35.78, longitude -78.64 over the last three days\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"lat":{"description":"Latitude in decimal degrees, -90 to 90.","maximum":90,"minimum":-90,"title":"Lat","type":"number"},"lon":{"description":"Longitude in decimal degrees, -180 to 180.","maximum":180,"minimum":-180,"title":"Lon","type":"number"},"start_date":{"anyOf":[{"maxLength":13,"type":"string"},{"type":"null"}],"default":null,"description":"Start as YYYY-MM-DD or YYYY-MM-DD:HH (default: 72 hours ago).","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":13,"type":"string"},{"type":"null"}],"default":null,"description":"End as YYYY-MM-DD or YYYY-MM-DD:HH (default: now).","title":"End Date"},"tz":{"anyOf":[{"enum":["utc","local"],"type":"string"},{"type":"null"}],"default":"utc","description":"Time zone of the dates: utc (default) or local.","title":"Tz"}},"required":["lat","lon"],"title":"get_air_quality_historyArguments","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}}}}