Xweather · Capability
Xweather Weather API — Forecasts
Xweather Weather API — Forecasts. 1 operations. Lead operation: Get Weather Forecasts. Self-contained Naftiko capability covering one Xweather business surface.
What You Can Do
GET
Getforecasts
— Get Weather Forecasts
/v1/forecasts/{location}
MCP Tools
get-weather-forecasts
Get Weather Forecasts
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Xweather Weather API — Forecasts
description: 'Xweather Weather API — Forecasts. 1 operations. Lead operation: Get Weather Forecasts. Self-contained Naftiko
capability covering one Xweather business surface.'
tags:
- Xweather
- Forecasts
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
XWEATHER_API_KEY: XWEATHER_API_KEY
capability:
consumes:
- type: http
namespace: weather-forecasts
baseUri: https://data.api.xweather.com
description: Xweather Weather API — Forecasts business capability. Self-contained, no shared references.
resources:
- name: forecasts-location
path: /forecasts/{location}
operations:
- name: getforecasts
method: GET
description: Get Weather Forecasts
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: location
in: path
type: string
description: Location identifier (ZIP code, city name, 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: filter
in: query
type: string
description: Forecast interval filter.
- name: limit
in: query
type: integer
description: Number of forecast periods 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-forecasts-rest
port: 8080
description: REST adapter for Xweather Weather API — Forecasts. One Spectral-compliant resource per consumed operation,
prefixed with /v1.
resources:
- path: /v1/forecasts/{location}
name: forecasts-location
description: REST surface for forecasts-location.
operations:
- method: GET
name: getforecasts
description: Get Weather Forecasts
call: weather-forecasts.getforecasts
with:
location: rest.location
client_id: rest.client_id
client_secret: rest.client_secret
filter: rest.filter
limit: rest.limit
fields: rest.fields
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: weather-forecasts-mcp
port: 9090
transport: http
description: MCP adapter for Xweather Weather API — Forecasts. One tool per consumed operation, routed inline through
this capability's consumes block.
tools:
- name: get-weather-forecasts
description: Get Weather Forecasts
hints:
readOnly: true
destructive: false
idempotent: true
call: weather-forecasts.getforecasts
with:
location: tools.location
client_id: tools.client_id
client_secret: tools.client_secret
filter: tools.filter
limit: tools.limit
fields: tools.fields
outputParameters:
- type: object
mapping: $.