Weatherbit · Capability

Weatherbit - Interactive Swagger UI Documentation — Air Quality Forecast

Weatherbit - Interactive Swagger UI Documentation — Air Quality Forecast. 1 operations. Lead operation: Weatherbit Returns 72 Hour (hourly) Air Quality Forecast - Given a Geolocation.. Self-contained Naftiko capability covering one Weatherbit business surface.

Run with Naftiko WeatherbitAir Quality Forecast

What You Can Do

GET
Get — Weatherbit Returns 72 Hour (hourly) Air Quality Forecast - Given a Geolocation.
/v1/forecast/airquality

MCP Tools

weatherbit-returns-72-hour-hourly

Weatherbit Returns 72 Hour (hourly) Air Quality Forecast - Given a Geolocation.

read-only idempotent

Capability Spec

current-weather-air-quality-forecast.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Weatherbit - Interactive Swagger UI Documentation — Air Quality Forecast
  description: 'Weatherbit - Interactive Swagger UI Documentation — Air Quality Forecast. 1 operations. Lead operation: Weatherbit
    Returns 72 Hour (hourly) Air Quality Forecast - Given a Geolocation.. Self-contained Naftiko capability covering one Weatherbit
    business surface.'
  tags:
  - Weatherbit
  - Air Quality Forecast
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WEATHERBIT_API_KEY: WEATHERBIT_API_KEY
capability:
  consumes:
  - type: http
    namespace: current-weather-air-quality-forecast
    baseUri: https://api.weatherbit.io/v2.0
    description: Weatherbit - Interactive Swagger UI Documentation — Air Quality Forecast business capability. Self-contained,
      no shared references.
    resources:
    - name: forecast-airquality
      path: /forecast/airquality
      operations:
      - name: get
        method: GET
        description: Weatherbit Returns 72 Hour (hourly) Air Quality Forecast - Given a Geolocation.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: lat
          in: query
          type: number
          description: Latitude component of location.
        - name: lon
          in: query
          type: number
          description: Longitude component of location.
        - name: city_id
          in: query
          type: string
          description: 'City ID. Example: 4487042'
        - name: city
          in: query
          type: string
          description: City search.. Example - &city=Raleigh,NC or &city=Berlin,DE or city=Paris&country=FR
        - name: postal_code
          in: query
          type: string
          description: 'Postal Code. Example: 28546'
        - name: country
          in: query
          type: string
          description: Country Code (2 letter) - to be used with postal_code.
        - name: key
          in: query
          type: string
          description: Your registered API key.
          required: true
        - name: hours
          in: query
          type: integer
          description: Number of hours to return.
  exposes:
  - type: rest
    namespace: current-weather-air-quality-forecast-rest
    port: 8080
    description: REST adapter for Weatherbit - Interactive Swagger UI Documentation — Air Quality Forecast. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/forecast/airquality
      name: forecast-airquality
      description: REST surface for forecast-airquality.
      operations:
      - method: GET
        name: get
        description: Weatherbit Returns 72 Hour (hourly) Air Quality Forecast - Given a Geolocation.
        call: current-weather-air-quality-forecast.get
        with:
          lat: rest.lat
          lon: rest.lon
          city_id: rest.city_id
          city: rest.city
          postal_code: rest.postal_code
          country: rest.country
          key: rest.key
          hours: rest.hours
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: current-weather-air-quality-forecast-mcp
    port: 9090
    transport: http
    description: MCP adapter for Weatherbit - Interactive Swagger UI Documentation — Air Quality Forecast. One tool per consumed
      operation, routed inline through this capability's consumes block.
    tools:
    - name: weatherbit-returns-72-hour-hourly
      description: Weatherbit Returns 72 Hour (hourly) Air Quality Forecast - Given a Geolocation.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: current-weather-air-quality-forecast.get
      with:
        lat: tools.lat
        lon: tools.lon
        city_id: tools.city_id
        city: tools.city
        postal_code: tools.postal_code
        country: tools.country
        key: tools.key
        hours: tools.hours
      outputParameters:
      - type: object
        mapping: $.