Xweather · Capability

Xweather Weather API — Maritime

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

Run with Naftiko XweatherMaritime

What You Can Do

GET
Getmaritimeconditions — Get Maritime Weather Conditions
/v1/maritime/{location}

MCP Tools

get-maritime-weather-conditions

Get Maritime Weather Conditions

read-only idempotent

Capability Spec

weather-maritime.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Xweather Weather API — Maritime
  description: 'Xweather Weather API — Maritime. 1 operations. Lead operation: Get Maritime Weather Conditions. Self-contained
    Naftiko capability covering one Xweather business surface.'
  tags:
  - Xweather
  - Maritime
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    XWEATHER_API_KEY: XWEATHER_API_KEY
capability:
  consumes:
  - type: http
    namespace: weather-maritime
    baseUri: https://data.api.xweather.com
    description: Xweather Weather API — Maritime business capability. Self-contained, no shared references.
    resources:
    - name: maritime-location
      path: /maritime/{location}
      operations:
      - name: getmaritimeconditions
        method: GET
        description: Get Maritime Weather Conditions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: location
          in: path
          type: string
          description: Location identifier (lat/long or coastal 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: 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-maritime-rest
    port: 8080
    description: REST adapter for Xweather Weather API — Maritime. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/maritime/{location}
      name: maritime-location
      description: REST surface for maritime-location.
      operations:
      - method: GET
        name: getmaritimeconditions
        description: Get Maritime Weather Conditions
        call: weather-maritime.getmaritimeconditions
        with:
          location: rest.location
          client_id: rest.client_id
          client_secret: rest.client_secret
          fields: rest.fields
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: weather-maritime-mcp
    port: 9090
    transport: http
    description: MCP adapter for Xweather Weather API — Maritime. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-maritime-weather-conditions
      description: Get Maritime Weather Conditions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: weather-maritime.getmaritimeconditions
      with:
        location: tools.location
        client_id: tools.client_id
        client_secret: tools.client_secret
        fields: tools.fields
      outputParameters:
      - type: object
        mapping: $.