WegoWise · Capability

WegoWise API — Usage Data

WegoWise API — Usage Data. 7 operations. Lead operation: Get Latest Meter Datapoint. Self-contained Naftiko capability covering one Wegowise business surface.

Run with Naftiko WegowiseUsage Data

What You Can Do

GET
Getlatestdatum — Get Latest Meter Datapoint
/v1/api/v1/wego-data/meters/{id}/latest-datum
GET
Getdatameterrawdata — Get Data Meter Raw Data
/v1/api/v1/wego-data/meters/{id}/raw-data
POST
Createdatameterrawdata — Create Data Meter Datapoint
/v1/api/v1/wego-data/meters/{id}/raw-data
GET
Getbuildingdata — Get Building Usage Data
/v1/api/v1/wego-pro/buildings/{id}/data
GET
Getmeterdata — Get Meter Monthly Data
/v1/api/v1/wego-pro/meters/{id}/data
GET
Getmeterrawdata — Get Meter Raw Data
/v1/api/v1/wego-pro/meters/{id}/raw-data
POST
Createmeterrawdata — Create Meter Datapoint
/v1/api/v1/wego-pro/meters/{id}/raw-data

MCP Tools

get-latest-meter-datapoint

Get Latest Meter Datapoint

read-only idempotent
get-data-meter-raw-data

Get Data Meter Raw Data

read-only idempotent
create-data-meter-datapoint

Create Data Meter Datapoint

get-building-usage-data

Get Building Usage Data

read-only idempotent
get-meter-monthly-data

Get Meter Monthly Data

read-only idempotent
get-meter-raw-data

Get Meter Raw Data

read-only idempotent
create-meter-datapoint

Create Meter Datapoint

Capability Spec

wegowise-usage-data.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WegoWise API — Usage Data
  description: 'WegoWise API — Usage Data. 7 operations. Lead operation: Get Latest Meter Datapoint. Self-contained Naftiko
    capability covering one Wegowise business surface.'
  tags:
  - Wegowise
  - Usage Data
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WEGOWISE_API_KEY: WEGOWISE_API_KEY
capability:
  consumes:
  - type: http
    namespace: wegowise-usage-data
    baseUri: https://www.wegowise.com
    description: WegoWise API — Usage Data business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-wego_data-meters-id-latest_datum
      path: /api/v1/wego_data/meters/{id}/latest_datum
      operations:
      - name: getlatestdatum
        method: GET
        description: Get Latest Meter Datapoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-v1-wego_data-meters-id-raw_data
      path: /api/v1/wego_data/meters/{id}/raw_data
      operations:
      - name: getdatameterrawdata
        method: GET
        description: Get Data Meter Raw Data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: start_date
          in: query
          type: string
        - name: end_date
          in: query
          type: string
      - name: createdatameterrawdata
        method: POST
        description: Create Data Meter Datapoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v1-wego_pro-buildings-id-data
      path: /api/v1/wego_pro/buildings/{id}/data
      operations:
      - name: getbuildingdata
        method: GET
        description: Get Building Usage Data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: data_type
          in: query
          type: string
          description: Filter by utility data type
        - name: unit
          in: query
          type: string
          description: Unit for returned values
        - name: start_date
          in: query
          type: string
          description: Start date for data range (YYYY-MM-DD)
        - name: end_date
          in: query
          type: string
          description: End date for data range (YYYY-MM-DD)
    - name: api-v1-wego_pro-meters-id-data
      path: /api/v1/wego_pro/meters/{id}/data
      operations:
      - name: getmeterdata
        method: GET
        description: Get Meter Monthly Data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: unit
          in: query
          type: string
    - name: api-v1-wego_pro-meters-id-raw_data
      path: /api/v1/wego_pro/meters/{id}/raw_data
      operations:
      - name: getmeterrawdata
        method: GET
        description: Get Meter Raw Data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: start_date
          in: query
          type: string
        - name: end_date
          in: query
          type: string
      - name: createmeterrawdata
        method: POST
        description: Create Meter Datapoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: wegowise-usage-data-rest
    port: 8080
    description: REST adapter for WegoWise API — Usage Data. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/v1/wego-data/meters/{id}/latest-datum
      name: api-v1-wego-data-meters-id-latest-datum
      description: REST surface for api-v1-wego_data-meters-id-latest_datum.
      operations:
      - method: GET
        name: getlatestdatum
        description: Get Latest Meter Datapoint
        call: wegowise-usage-data.getlatestdatum
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/wego-data/meters/{id}/raw-data
      name: api-v1-wego-data-meters-id-raw-data
      description: REST surface for api-v1-wego_data-meters-id-raw_data.
      operations:
      - method: GET
        name: getdatameterrawdata
        description: Get Data Meter Raw Data
        call: wegowise-usage-data.getdatameterrawdata
        with:
          start_date: rest.start_date
          end_date: rest.end_date
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createdatameterrawdata
        description: Create Data Meter Datapoint
        call: wegowise-usage-data.createdatameterrawdata
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/wego-pro/buildings/{id}/data
      name: api-v1-wego-pro-buildings-id-data
      description: REST surface for api-v1-wego_pro-buildings-id-data.
      operations:
      - method: GET
        name: getbuildingdata
        description: Get Building Usage Data
        call: wegowise-usage-data.getbuildingdata
        with:
          data_type: rest.data_type
          unit: rest.unit
          start_date: rest.start_date
          end_date: rest.end_date
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/wego-pro/meters/{id}/data
      name: api-v1-wego-pro-meters-id-data
      description: REST surface for api-v1-wego_pro-meters-id-data.
      operations:
      - method: GET
        name: getmeterdata
        description: Get Meter Monthly Data
        call: wegowise-usage-data.getmeterdata
        with:
          unit: rest.unit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/wego-pro/meters/{id}/raw-data
      name: api-v1-wego-pro-meters-id-raw-data
      description: REST surface for api-v1-wego_pro-meters-id-raw_data.
      operations:
      - method: GET
        name: getmeterrawdata
        description: Get Meter Raw Data
        call: wegowise-usage-data.getmeterrawdata
        with:
          start_date: rest.start_date
          end_date: rest.end_date
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createmeterrawdata
        description: Create Meter Datapoint
        call: wegowise-usage-data.createmeterrawdata
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: wegowise-usage-data-mcp
    port: 9090
    transport: http
    description: MCP adapter for WegoWise API — Usage Data. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-latest-meter-datapoint
      description: Get Latest Meter Datapoint
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: wegowise-usage-data.getlatestdatum
      outputParameters:
      - type: object
        mapping: $.
    - name: get-data-meter-raw-data
      description: Get Data Meter Raw Data
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: wegowise-usage-data.getdatameterrawdata
      with:
        start_date: tools.start_date
        end_date: tools.end_date
      outputParameters:
      - type: object
        mapping: $.
    - name: create-data-meter-datapoint
      description: Create Data Meter Datapoint
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: wegowise-usage-data.createdatameterrawdata
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-building-usage-data
      description: Get Building Usage Data
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: wegowise-usage-data.getbuildingdata
      with:
        data_type: tools.data_type
        unit: tools.unit
        start_date: tools.start_date
        end_date: tools.end_date
      outputParameters:
      - type: object
        mapping: $.
    - name: get-meter-monthly-data
      description: Get Meter Monthly Data
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: wegowise-usage-data.getmeterdata
      with:
        unit: tools.unit
      outputParameters:
      - type: object
        mapping: $.
    - name: get-meter-raw-data
      description: Get Meter Raw Data
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: wegowise-usage-data.getmeterrawdata
      with:
        start_date: tools.start_date
        end_date: tools.end_date
      outputParameters:
      - type: object
        mapping: $.
    - name: create-meter-datapoint
      description: Create Meter Datapoint
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: wegowise-usage-data.createmeterrawdata
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.