Xweather · Capability
Xweather Weather API — Lightning
Xweather Weather API — Lightning. 2 operations. Lead operation: Get Lightning Threat Nowcast. Self-contained Naftiko capability covering one Xweather business surface.
What You Can Do
GET
Getlightningthreats
— Get Lightning Threat Nowcast
/v1/lightning/threats/{location}
GET
Getlightning
— Get Lightning Strike Data
/v1/lightning/{location}
MCP Tools
get-lightning-threat-nowcast
Get Lightning Threat Nowcast
read-only
idempotent
get-lightning-strike-data
Get Lightning Strike Data
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Xweather Weather API — Lightning
description: 'Xweather Weather API — Lightning. 2 operations. Lead operation: Get Lightning Threat Nowcast. Self-contained
Naftiko capability covering one Xweather business surface.'
tags:
- Xweather
- Lightning
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
XWEATHER_API_KEY: XWEATHER_API_KEY
capability:
consumes:
- type: http
namespace: weather-lightning
baseUri: https://data.api.xweather.com
description: Xweather Weather API — Lightning business capability. Self-contained, no shared references.
resources:
- name: lightning-threats-location
path: /lightning/threats/{location}
operations:
- name: getlightningthreats
method: GET
description: Get Lightning Threat Nowcast
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: location
in: path
type: string
description: Location identifier (lat/long or place name).
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: lightning-location
path: /lightning/{location}
operations:
- name: getlightning
method: GET
description: Get Lightning Strike Data
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: location
in: path
type: string
description: Location identifier or radius query (e.g., "40.7128,-74.0060" or "closest:20:40.7128,-74.0060").
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: radius
in: query
type: string
description: Radius for nearby strikes (e.g., "25mi" or "40km").
- name: limit
in: query
type: integer
description: Maximum number of lightning strikes 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-lightning-rest
port: 8080
description: REST adapter for Xweather Weather API — Lightning. One Spectral-compliant resource per consumed operation,
prefixed with /v1.
resources:
- path: /v1/lightning/threats/{location}
name: lightning-threats-location
description: REST surface for lightning-threats-location.
operations:
- method: GET
name: getlightningthreats
description: Get Lightning Threat Nowcast
call: weather-lightning.getlightningthreats
with:
location: rest.location
client_id: rest.client_id
client_secret: rest.client_secret
outputParameters:
- type: object
mapping: $.
- path: /v1/lightning/{location}
name: lightning-location
description: REST surface for lightning-location.
operations:
- method: GET
name: getlightning
description: Get Lightning Strike Data
call: weather-lightning.getlightning
with:
location: rest.location
client_id: rest.client_id
client_secret: rest.client_secret
radius: rest.radius
limit: rest.limit
fields: rest.fields
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: weather-lightning-mcp
port: 9090
transport: http
description: MCP adapter for Xweather Weather API — Lightning. One tool per consumed operation, routed inline through
this capability's consumes block.
tools:
- name: get-lightning-threat-nowcast
description: Get Lightning Threat Nowcast
hints:
readOnly: true
destructive: false
idempotent: true
call: weather-lightning.getlightningthreats
with:
location: tools.location
client_id: tools.client_id
client_secret: tools.client_secret
outputParameters:
- type: object
mapping: $.
- name: get-lightning-strike-data
description: Get Lightning Strike Data
hints:
readOnly: true
destructive: false
idempotent: true
call: weather-lightning.getlightning
with:
location: tools.location
client_id: tools.client_id
client_secret: tools.client_secret
radius: tools.radius
limit: tools.limit
fields: tools.fields
outputParameters:
- type: object
mapping: $.