USDA NRCS AWDB Water and Climate REST API — Data

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

Run with Naftiko United States Department Of AgricultureData

What You Can Do

GET
Getstationdata — Get Station Data
/v1/data

MCP Tools

get-station-data

Get Station Data

read-only idempotent

Capability Spec

usda-nrcs-awdb-data.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: USDA NRCS AWDB Water and Climate REST API — Data
  description: 'USDA NRCS AWDB Water and Climate REST API — Data. 1 operations. Lead operation: Get Station Data. Self-contained
    Naftiko capability covering one United States Department Of Agriculture business surface.'
  tags:
  - United States Department Of Agriculture
  - Data
  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-data
    baseUri: https://wcc.sc.egov.usda.gov/awdbRestApi/services/v1
    description: USDA NRCS AWDB Water and Climate REST API — Data business capability. Self-contained, no shared references.
    resources:
    - name: data
      path: /data
      operations:
      - name: getstationdata
        method: GET
        description: Get Station Data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: stationIds
          in: query
          type: string
          description: Comma-separated station IDs
          required: true
        - name: elementCds
          in: query
          type: string
          description: Element codes to retrieve (WTEQ=Snow Water Equivalent, PREC=Precipitation, TOBS=Air Temperature Observed,
            SMS=Soil Moisture)
          required: true
        - name: beginDate
          in: query
          type: string
          description: Start date (YYYY-MM-DD)
        - name: endDate
          in: query
          type: string
          description: End date (YYYY-MM-DD)
        - name: duration
          in: query
          type: string
          description: Data duration/temporal resolution
  exposes:
  - type: rest
    namespace: usda-nrcs-awdb-data-rest
    port: 8080
    description: REST adapter for USDA NRCS AWDB Water and Climate REST API — Data. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/data
      name: data
      description: REST surface for data.
      operations:
      - method: GET
        name: getstationdata
        description: Get Station Data
        call: usda-nrcs-awdb-data.getstationdata
        with:
          stationIds: rest.stationIds
          elementCds: rest.elementCds
          beginDate: rest.beginDate
          endDate: rest.endDate
          duration: rest.duration
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: usda-nrcs-awdb-data-mcp
    port: 9090
    transport: http
    description: MCP adapter for USDA NRCS AWDB Water and Climate REST API — Data. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: get-station-data
      description: Get Station Data
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: usda-nrcs-awdb-data.getstationdata
      with:
        stationIds: tools.stationIds
        elementCds: tools.elementCds
        beginDate: tools.beginDate
        endDate: tools.endDate
        duration: tools.duration
      outputParameters:
      - type: object
        mapping: $.