OpenAQ · Capability

OpenAQ — Hourly

OpenAQ — Hourly. 1 operations. Lead operation: OpenAQ Get measurements aggregated to hours by sensor ID. Self-contained Naftiko capability covering one Openaq business surface.

Run with Naftiko OpenaqHourly

What You Can Do

GET
Sensormeasurementsaggregatedgethourlyv3sensorssensorsidmeasurementshourlyget — OpenAQ Get measurements aggregated to hours by sensor ID
/v1/v3/sensors/{sensors-id}/measurements/hourly

MCP Tools

openaq-get-measurements-aggregated-hours

OpenAQ Get measurements aggregated to hours by sensor ID

read-only idempotent

Capability Spec

openaq-hourly.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenAQ — Hourly
  description: 'OpenAQ — Hourly. 1 operations. Lead operation: OpenAQ Get measurements aggregated to hours by sensor ID. Self-contained
    Naftiko capability covering one Openaq business surface.'
  tags:
  - Openaq
  - Hourly
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPENAQ_API_KEY: OPENAQ_API_KEY
capability:
  consumes:
  - type: http
    namespace: openaq-hourly
    baseUri: ''
    description: OpenAQ — Hourly business capability. Self-contained, no shared references.
    resources:
    - name: v3-sensors-sensors_id-measurements-hourly
      path: /v3/sensors/{sensors_id}/measurements/hourly
      operations:
      - name: sensormeasurementsaggregatedgethourlyv3sensorssensorsidmeasurementshourlyget
        method: GET
        description: OpenAQ Get measurements aggregated to hours by sensor ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sensors_id
          in: path
          type: integer
          description: Limit the results to a specific sensors id
          required: true
        - name: datetime_to
          in: query
          type: string
          description: To when?
        - name: datetime_from
          in: query
          type: string
          description: From when?
        - name: limit
          in: query
          type: integer
          description: Change the number of results returned.
        - name: page
          in: query
          type: integer
          description: Paginate through results. e.g. page=1 will return first page of results
    authentication:
      type: apikey
      key: X-API-Key
      value: '{{env.OPENAQ_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: openaq-hourly-rest
    port: 8080
    description: REST adapter for OpenAQ — Hourly. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/v3/sensors/{sensors-id}/measurements/hourly
      name: v3-sensors-sensors-id-measurements-hourly
      description: REST surface for v3-sensors-sensors_id-measurements-hourly.
      operations:
      - method: GET
        name: sensormeasurementsaggregatedgethourlyv3sensorssensorsidmeasurementshourlyget
        description: OpenAQ Get measurements aggregated to hours by sensor ID
        call: openaq-hourly.sensormeasurementsaggregatedgethourlyv3sensorssensorsidmeasurementshourlyget
        with:
          sensors_id: rest.sensors_id
          datetime_to: rest.datetime_to
          datetime_from: rest.datetime_from
          limit: rest.limit
          page: rest.page
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openaq-hourly-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenAQ — Hourly. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: openaq-get-measurements-aggregated-hours
      description: OpenAQ Get measurements aggregated to hours by sensor ID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openaq-hourly.sensormeasurementsaggregatedgethourlyv3sensorssensorsidmeasurementshourlyget
      with:
        sensors_id: tools.sensors_id
        datetime_to: tools.datetime_to
        datetime_from: tools.datetime_from
        limit: tools.limit
        page: tools.page
      outputParameters:
      - type: object
        mapping: $.