US Department of Defense · Capability

USACE Corps Water Management System Data API — Ratings

USACE Corps Water Management System Data API — Ratings. 1 operations. Lead operation: Get Rating Curves. Self-contained Naftiko capability covering one Us Department Of Defense business surface.

Run with Naftiko Us Department Of DefenseRatings

What You Can Do

GET
Getratings — Get Rating Curves
/v1/ratings

MCP Tools

get-rating-curves

Get Rating Curves

read-only idempotent

Capability Spec

usace-cwms-data-ratings.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: USACE Corps Water Management System Data API — Ratings
  description: 'USACE Corps Water Management System Data API — Ratings. 1 operations. Lead operation: Get Rating Curves. Self-contained
    Naftiko capability covering one Us Department Of Defense business surface.'
  tags:
  - Us Department Of Defense
  - Ratings
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    US_DEPARTMENT_OF_DEFENSE_API_KEY: US_DEPARTMENT_OF_DEFENSE_API_KEY
capability:
  consumes:
  - type: http
    namespace: usace-cwms-data-ratings
    baseUri: https://cwms-data.usace.army.mil/cwms-data/api/latest
    description: USACE Corps Water Management System Data API — Ratings business capability. Self-contained, no shared references.
    resources:
    - name: ratings
      path: /ratings
      operations:
      - name: getratings
        method: GET
        description: Get Rating Curves
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: office
          in: query
          type: string
          description: USACE district office ID
        - name: rating-id-mask
          in: query
          type: string
          description: Pattern mask to filter rating IDs
        - name: start
          in: query
          type: string
          description: Start of the time window for effective ratings
        - name: end
          in: query
          type: string
          description: End of the time window for effective ratings
        - name: method
          in: query
          type: string
          description: Rating method (e.g., LINEAR, LOGARITHMIC)
        - name: format
          in: query
          type: string
          description: Response format
  exposes:
  - type: rest
    namespace: usace-cwms-data-ratings-rest
    port: 8080
    description: REST adapter for USACE Corps Water Management System Data API — Ratings. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/ratings
      name: ratings
      description: REST surface for ratings.
      operations:
      - method: GET
        name: getratings
        description: Get Rating Curves
        call: usace-cwms-data-ratings.getratings
        with:
          office: rest.office
          rating-id-mask: rest.rating-id-mask
          start: rest.start
          end: rest.end
          method: rest.method
          format: rest.format
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: usace-cwms-data-ratings-mcp
    port: 9090
    transport: http
    description: MCP adapter for USACE Corps Water Management System Data API — Ratings. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: get-rating-curves
      description: Get Rating Curves
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: usace-cwms-data-ratings.getratings
      with:
        office: tools.office
        rating-id-mask: tools.rating-id-mask
        start: tools.start
        end: tools.end
        method: tools.method
        format: tools.format
      outputParameters:
      - type: object
        mapping: $.