USDA NRCS AWDB Water and Climate REST API — Forecasts

USDA NRCS AWDB Water and Climate REST API — Forecasts. 1 operations. Lead operation: Get Water Supply Forecasts. Self-contained Naftiko capability covering one United States Department Of Agriculture business surface.

Run with Naftiko United States Department Of AgricultureForecasts

What You Can Do

GET
Getwatersupplyforecasts — Get Water Supply Forecasts
/v1/forecasts

MCP Tools

get-water-supply-forecasts

Get Water Supply Forecasts

read-only idempotent

Capability Spec

usda-nrcs-awdb-forecasts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: USDA NRCS AWDB Water and Climate REST API — Forecasts
  description: 'USDA NRCS AWDB Water and Climate REST API — Forecasts. 1 operations. Lead operation: Get Water Supply Forecasts.
    Self-contained Naftiko capability covering one United States Department Of Agriculture business surface.'
  tags:
  - United States Department Of Agriculture
  - Forecasts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNITED_STATES_DEPARTMENT_OF_AGRICULTURE_API_KEY: UNITED_STATES_DEPARTMENT_OF_AGRICULTURE_API_KEY
capability:
  consumes:
  - type: http
    namespace: usda-nrcs-awdb-forecasts
    baseUri: https://wcc.sc.egov.usda.gov/awdbRestApi/services/v1
    description: USDA NRCS AWDB Water and Climate REST API — Forecasts business capability. Self-contained, no shared references.
    resources:
    - name: forecasts
      path: /forecasts
      operations:
      - name: getwatersupplyforecasts
        method: GET
        description: Get Water Supply Forecasts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: stationIds
          in: query
          type: string
          description: Forecast point station IDs
        - name: stateCds
          in: query
          type: string
          description: State codes to filter forecasts
        - name: forecastPeriodCds
          in: query
          type: string
          description: Forecast period codes (e.g. JAN-SEP)
  exposes:
  - type: rest
    namespace: usda-nrcs-awdb-forecasts-rest
    port: 8080
    description: REST adapter for USDA NRCS AWDB Water and Climate REST API — Forecasts. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/forecasts
      name: forecasts
      description: REST surface for forecasts.
      operations:
      - method: GET
        name: getwatersupplyforecasts
        description: Get Water Supply Forecasts
        call: usda-nrcs-awdb-forecasts.getwatersupplyforecasts
        with:
          stationIds: rest.stationIds
          stateCds: rest.stateCds
          forecastPeriodCds: rest.forecastPeriodCds
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: usda-nrcs-awdb-forecasts-mcp
    port: 9090
    transport: http
    description: MCP adapter for USDA NRCS AWDB Water and Climate REST API — Forecasts. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: get-water-supply-forecasts
      description: Get Water Supply Forecasts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: usda-nrcs-awdb-forecasts.getwatersupplyforecasts
      with:
        stationIds: tools.stationIds
        stateCds: tools.stateCds
        forecastPeriodCds: tools.forecastPeriodCds
      outputParameters:
      - type: object
        mapping: $.