Xweather · Capability

Xweather Weather API — Fires

Xweather Weather API — Fires. 1 operations. Lead operation: Get Wildfire Data. Self-contained Naftiko capability covering one Xweather business surface.

Run with Naftiko XweatherFires

What You Can Do

GET
Getwildfires — Get Wildfire Data
/v1/fires/{location}

MCP Tools

get-wildfire-data

Get Wildfire Data

read-only idempotent

Capability Spec

weather-fires.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Xweather Weather API — Fires
  description: 'Xweather Weather API — Fires. 1 operations. Lead operation: Get Wildfire Data. Self-contained Naftiko capability
    covering one Xweather business surface.'
  tags:
  - Xweather
  - Fires
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    XWEATHER_API_KEY: XWEATHER_API_KEY
capability:
  consumes:
  - type: http
    namespace: weather-fires
    baseUri: https://data.api.xweather.com
    description: Xweather Weather API — Fires business capability. Self-contained, no shared references.
    resources:
    - name: fires-location
      path: /fires/{location}
      operations:
      - name: getwildfires
        method: GET
        description: Get Wildfire Data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: location
          in: path
          type: string
          description: Location identifier or state/province code.
          required: true
        - name: client_id
          in: query
          type: string
          description: Your Xweather API client ID.
          required: true
        - name: client_secret
          in: query
          type: string
          description: Your Xweather API client secret.
          required: true
        - name: limit
          in: query
          type: integer
          description: Maximum number of fire records to return.
        - name: fields
          in: query
          type: string
          description: Comma-separated list of fields to return.
    authentication:
      type: apikey
      key: client_id
      value: '{{env.XWEATHER_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: weather-fires-rest
    port: 8080
    description: REST adapter for Xweather Weather API — Fires. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/fires/{location}
      name: fires-location
      description: REST surface for fires-location.
      operations:
      - method: GET
        name: getwildfires
        description: Get Wildfire Data
        call: weather-fires.getwildfires
        with:
          location: rest.location
          client_id: rest.client_id
          client_secret: rest.client_secret
          limit: rest.limit
          fields: rest.fields
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: weather-fires-mcp
    port: 9090
    transport: http
    description: MCP adapter for Xweather Weather API — Fires. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-wildfire-data
      description: Get Wildfire Data
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: weather-fires.getwildfires
      with:
        location: tools.location
        client_id: tools.client_id
        client_secret: tools.client_secret
        limit: tools.limit
        fields: tools.fields
      outputParameters:
      - type: object
        mapping: $.