WeatherAPI · Capability
WeatherAPI.com — Marine
Marine — Marine. 1 operation. Lead operation: WeatherAPI Marine Weather. Self-contained Naftiko capability covering one WeatherAPI business surface.
What You Can Do
GET
Getmarine
— WeatherAPI Marine Weather
/v1/marine
MCP Tools
get-marine
WeatherAPI Marine Weather
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: WeatherAPI.com — Marine
description: |-
Marine — Marine. 1 operation. Lead operation: WeatherAPI Marine Weather. Self-contained Naftiko capability covering one WeatherAPI business surface.
tags:
- WeatherAPI
- Weather
- Marine
created: '2026-05-28'
modified: '2026-05-28'
binds:
- namespace: env
keys:
WEATHERAPI_KEY: WEATHERAPI_KEY
capability:
consumes:
- type: http
namespace: weatherapi-marine
baseUri: https://api.weatherapi.com/v1
description: WeatherAPI.com — Marine business capability. Self-contained, no shared references.
authentication:
type: apikey
key: key
value: '{{env.WEATHERAPI_KEY}}'
placement: query
resources:
- name: marine-json
path: /marine.json
operations:
- name: getMarine
method: GET
description: WeatherAPI Marine Weather
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).'
- name: days
in: query
type: integer
required: true
description: Number of forecast days (1–7 depending on plan).
- name: dt
in: query
type: string
required: false
description: Restrict date output in yyyy-MM-dd format.
- name: hour
in: query
type: integer
required: false
description: Restrict output to a specific hour (0–23) in 24-hour format.
- name: tides
in: query
type: string
required: false
description: Enable/disable tide data (Pro+ and above).
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
exposes:
- type: rest
namespace: weatherapi-marine-rest
port: 8080
description: REST adapter for WeatherAPI.com — Marine. One Spectral-compliant resource per consumed operation, prefixed with /v1.
resources:
- path: /v1/marine
name: marine
description: REST surface for /marine.
operations:
- method: GET
name: getMarine
description: WeatherAPI Marine Weather
call: weatherapi-marine.getMarine
with:
key: rest.key
q: rest.q
days: rest.days
dt: rest.dt
hour: rest.hour
tides: rest.tides
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: weatherapi-marine-mcp
port: 9090
transport: http
description: MCP adapter for WeatherAPI.com — Marine. One tool per consumed operation, routed inline through this capability's consumes block.
tools:
- name: get-marine
description: WeatherAPI Marine Weather
hints:
readOnly: true
destructive: false
idempotent: true
call: weatherapi-marine.getMarine
with:
key: tools.key
q: tools.q
days: tools.days
dt: tools.dt
hour: tools.hour
tides: tools.tides
outputParameters:
- type: object
mapping: $.