USACE CWMS Data API — Ratings

USACE CWMS Data API — Ratings. 1 operations. Lead operation: Get Ratings. Self-contained Naftiko capability covering one Us Army Corps Of Engineers business surface.

Run with Naftiko Us Army Corps Of EngineersRatings

What You Can Do

GET
Getratings — Get Ratings
/v1/ratings

MCP Tools

get-ratings

Get Ratings

read-only idempotent

Capability Spec

usace-cwms-data-ratings.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: USACE CWMS Data API — Ratings
  description: 'USACE CWMS Data API — Ratings. 1 operations. Lead operation: Get Ratings. Self-contained Naftiko capability
    covering one Us Army Corps Of Engineers business surface.'
  tags:
  - Us Army Corps Of Engineers
  - Ratings
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    US_ARMY_CORPS_OF_ENGINEERS_API_KEY: US_ARMY_CORPS_OF_ENGINEERS_API_KEY
capability:
  consumes:
  - type: http
    namespace: usace-cwms-data-ratings
    baseUri: https://cwms-data.usace.army.mil/cwms-data
    description: USACE CWMS Data API — Ratings business capability. Self-contained, no shared references.
    resources:
    - name: ratings
      path: /ratings
      operations:
      - name: getratings
        method: GET
        description: Get Ratings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: rating-id-mask
          in: query
          type: string
          description: Filter by rating ID pattern
        - name: office
          in: query
          type: string
          description: Filter by office
        - name: begin
          in: query
          type: string
          description: Filter ratings effective after this date
        - name: end
          in: query
          type: string
          description: Filter ratings effective before this date
        - name: page-size
          in: query
          type: integer
          description: Records per page
        - name: page
          in: query
          type: string
          description: Pagination cursor
  exposes:
  - type: rest
    namespace: usace-cwms-data-ratings-rest
    port: 8080
    description: REST adapter for USACE CWMS 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 Ratings
        call: usace-cwms-data-ratings.getratings
        with:
          rating-id-mask: rest.rating-id-mask
          office: rest.office
          begin: rest.begin
          end: rest.end
          page-size: rest.page-size
          page: rest.page
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: usace-cwms-data-ratings-mcp
    port: 9090
    transport: http
    description: MCP adapter for USACE CWMS Data API — Ratings. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-ratings
      description: Get Ratings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: usace-cwms-data-ratings.getratings
      with:
        rating-id-mask: tools.rating-id-mask
        office: tools.office
        begin: tools.begin
        end: tools.end
        page-size: tools.page-size
        page: tools.page
      outputParameters:
      - type: object
        mapping: $.