Agromonitoring · Capability

Agromonitoring Agro API — Weather

Agromonitoring Agro API — Weather. 2 operations. Lead operation: Agromonitoring Get Current Weather. Self-contained Naftiko capability covering one Agromonitoring business surface.

Run with Naftiko AgromonitoringWeather

What You Can Do

GET
Getcurrentweather — Agromonitoring Get Current Weather
/v1/weather
GET
Getweatherforecast — Agromonitoring Get Weather Forecast
/v1/weather/forecast

MCP Tools

agromonitoring-get-current-weather

Agromonitoring Get Current Weather

read-only idempotent
agromonitoring-get-weather-forecast

Agromonitoring Get Weather Forecast

read-only idempotent

Capability Spec

agromonitoring-weather.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Agromonitoring Agro API — Weather
  description: 'Agromonitoring Agro API — Weather. 2 operations. Lead operation: Agromonitoring Get Current Weather. Self-contained
    Naftiko capability covering one Agromonitoring business surface.'
  tags:
  - Agromonitoring
  - Weather
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AGROMONITORING_API_KEY: AGROMONITORING_API_KEY
capability:
  consumes:
  - type: http
    namespace: agromonitoring-weather
    baseUri: https://api.agromonitoring.com/agro/1.0
    description: Agromonitoring Agro API — Weather business capability. Self-contained, no shared references.
    resources:
    - name: weather
      path: /weather
      operations:
      - name: getcurrentweather
        method: GET
        description: Agromonitoring Get Current Weather
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: polyid
          in: query
          type: string
          description: Polygon identifier (use instead of lat/lon for field-specific weather).
        - name: lat
          in: query
          type: number
          description: Latitude coordinate.
        - name: lon
          in: query
          type: number
          description: Longitude coordinate.
        - name: appid
          in: query
          type: string
          description: API key for authentication.
          required: true
        - name: units
          in: query
          type: string
          description: Units system (metric, imperial, standard).
    - name: weather-forecast
      path: /weather/forecast
      operations:
      - name: getweatherforecast
        method: GET
        description: Agromonitoring Get Weather Forecast
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: polyid
          in: query
          type: string
          description: Polygon identifier.
        - name: appid
          in: query
          type: string
          description: API key for authentication.
          required: true
        - name: units
          in: query
          type: string
          description: Units system (metric, imperial, standard).
    authentication:
      type: apikey
      key: appid
      value: '{{env.AGROMONITORING_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: agromonitoring-weather-rest
    port: 8080
    description: REST adapter for Agromonitoring Agro API — Weather. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/weather
      name: weather
      description: REST surface for weather.
      operations:
      - method: GET
        name: getcurrentweather
        description: Agromonitoring Get Current Weather
        call: agromonitoring-weather.getcurrentweather
        with:
          polyid: rest.polyid
          lat: rest.lat
          lon: rest.lon
          appid: rest.appid
          units: rest.units
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/weather/forecast
      name: weather-forecast
      description: REST surface for weather-forecast.
      operations:
      - method: GET
        name: getweatherforecast
        description: Agromonitoring Get Weather Forecast
        call: agromonitoring-weather.getweatherforecast
        with:
          polyid: rest.polyid
          appid: rest.appid
          units: rest.units
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: agromonitoring-weather-mcp
    port: 9090
    transport: http
    description: MCP adapter for Agromonitoring Agro API — Weather. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: agromonitoring-get-current-weather
      description: Agromonitoring Get Current Weather
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: agromonitoring-weather.getcurrentweather
      with:
        polyid: tools.polyid
        lat: tools.lat
        lon: tools.lon
        appid: tools.appid
        units: tools.units
      outputParameters:
      - type: object
        mapping: $.
    - name: agromonitoring-get-weather-forecast
      description: Agromonitoring Get Weather Forecast
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: agromonitoring-weather.getweatherforecast
      with:
        polyid: tools.polyid
        appid: tools.appid
        units: tools.units
      outputParameters:
      - type: object
        mapping: $.