WeatherAPI · Capability

WeatherAPI.com — Alerts

Alerts — Alerts. 1 operation. Lead operation: WeatherAPI Weather Alerts. Self-contained Naftiko capability covering one WeatherAPI business surface.

Run with Naftiko WeatherAPIWeatherAlerts

What You Can Do

GET
Getalerts — WeatherAPI Weather Alerts
/v1/alerts

MCP Tools

get-alerts

WeatherAPI Weather Alerts

read-only idempotent

Capability Spec

weatherapi-alerts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WeatherAPI.com — Alerts
  description: |-
    Alerts — Alerts. 1 operation. Lead operation: WeatherAPI Weather Alerts. Self-contained Naftiko capability covering one WeatherAPI business surface.
  tags:
  - WeatherAPI
  - Weather
  - Alerts
  created: '2026-05-28'
  modified: '2026-05-28'
binds:
- namespace: env
  keys:
    WEATHERAPI_KEY: WEATHERAPI_KEY
capability:
  consumes:
  - type: http
    namespace: weatherapi-alerts
    baseUri: https://api.weatherapi.com/v1
    description: WeatherAPI.com — Alerts business capability. Self-contained, no shared references.
    authentication:
      type: apikey
      key: key
      value: '{{env.WEATHERAPI_KEY}}'
      placement: query
    resources:
    - name: alerts-json
      path: /alerts.json
      operations:
      - name: getAlerts
        method: GET
        description: WeatherAPI Weather Alerts
        inputParameters:
        - name: key
          in: query
          type: string
          required: true
          description: Your WeatherAPI.com API key.
        - name: q
          in: query
          type: string
          required: true
          description: 'Location query. Accepts: city name, lat/lon, US zip, UK postcode, Canada postal code, METAR code (metar:EGLL), IATA (iata:DXB), auto:ip, IPv4/IPv6, or location ID (id:2801268).'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: weatherapi-alerts-rest
    port: 8080
    description: REST adapter for WeatherAPI.com — Alerts. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/alerts
      name: alerts
      description: REST surface for /alerts.
      operations:
      - method: GET
        name: getAlerts
        description: WeatherAPI Weather Alerts
        call: weatherapi-alerts.getAlerts
        with:
          key: rest.key
          q: rest.q
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: weatherapi-alerts-mcp
    port: 9090
    transport: http
    description: MCP adapter for WeatherAPI.com — Alerts. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: get-alerts
      description: WeatherAPI Weather Alerts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: weatherapi-alerts.getAlerts
      with:
        key: tools.key
        q: tools.q
      outputParameters:
      - type: object
        mapping: $.