USACE CWMS Data API — Levels

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

Run with Naftiko Us Army Corps Of EngineersLevels

What You Can Do

GET
Getlevels — Get Location Levels
/v1/levels

MCP Tools

get-location-levels

Get Location Levels

read-only idempotent

Capability Spec

usace-cwms-data-levels.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: USACE CWMS Data API — Levels
  description: 'USACE CWMS Data API — Levels. 1 operations. Lead operation: Get Location Levels. Self-contained Naftiko capability
    covering one Us Army Corps Of Engineers business surface.'
  tags:
  - Us Army Corps Of Engineers
  - Levels
  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-levels
    baseUri: https://cwms-data.usace.army.mil/cwms-data
    description: USACE CWMS Data API — Levels business capability. Self-contained, no shared references.
    resources:
    - name: levels
      path: /levels
      operations:
      - name: getlevels
        method: GET
        description: Get Location Levels
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: location-id-mask
          in: query
          type: string
          description: Filter by location ID pattern
        - name: office
          in: query
          type: string
          description: Filter by office
        - name: unit
          in: query
          type: string
          description: Unit system
        - name: datum
          in: query
          type: string
          description: Vertical datum
        - name: begin
          in: query
          type: string
          description: Start time filter
        - name: end
          in: query
          type: string
          description: End time filter
        - name: page-size
          in: query
          type: integer
        - name: page
          in: query
          type: string
  exposes:
  - type: rest
    namespace: usace-cwms-data-levels-rest
    port: 8080
    description: REST adapter for USACE CWMS Data API — Levels. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/levels
      name: levels
      description: REST surface for levels.
      operations:
      - method: GET
        name: getlevels
        description: Get Location Levels
        call: usace-cwms-data-levels.getlevels
        with:
          location-id-mask: rest.location-id-mask
          office: rest.office
          unit: rest.unit
          datum: rest.datum
          begin: rest.begin
          end: rest.end
          page-size: rest.page-size
          page: rest.page
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: usace-cwms-data-levels-mcp
    port: 9090
    transport: http
    description: MCP adapter for USACE CWMS Data API — Levels. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-location-levels
      description: Get Location Levels
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: usace-cwms-data-levels.getlevels
      with:
        location-id-mask: tools.location-id-mask
        office: tools.office
        unit: tools.unit
        datum: tools.datum
        begin: tools.begin
        end: tools.end
        page-size: tools.page-size
        page: tools.page
      outputParameters:
      - type: object
        mapping: $.