Xcel Energy · Capability

Xcel Energy Green Button Connect My Data API — IntervalBlock

Xcel Energy Green Button Connect My Data API — IntervalBlock. 2 operations. Lead operation: List IntervalBlocks for a MeterReading. Self-contained Naftiko capability covering one Xcel Energy business surface.

Run with Naftiko Xcel EnergyIntervalBlock

What You Can Do

GET
Listintervalblocks — List IntervalBlocks for a MeterReading
/v1/subscription/{subscriptionid}/usagepoint/{usagepointid}/meterreading/{meterreadingid}/intervalblock
GET
Getintervalblock — Retrieve a single IntervalBlock
/v1/subscription/{subscriptionid}/usagepoint/{usagepointid}/meterreading/{meterreadingid}/intervalblock/{intervalblockid}

MCP Tools

list-intervalblocks-meterreading

List IntervalBlocks for a MeterReading

read-only idempotent
retrieve-single-intervalblock

Retrieve a single IntervalBlock

read-only idempotent

Capability Spec

green-button-intervalblock.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Xcel Energy Green Button Connect My Data API — IntervalBlock
  description: 'Xcel Energy Green Button Connect My Data API — IntervalBlock. 2 operations. Lead operation: List IntervalBlocks
    for a MeterReading. Self-contained Naftiko capability covering one Xcel Energy business surface.'
  tags:
  - Xcel Energy
  - IntervalBlock
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    XCEL_ENERGY_API_KEY: XCEL_ENERGY_API_KEY
capability:
  consumes:
  - type: http
    namespace: green-button-intervalblock
    baseUri: https://api.xcelenergy.com/DataCustodian/espi/1_1/resource
    description: Xcel Energy Green Button Connect My Data API — IntervalBlock business capability. Self-contained, no shared
      references.
    resources:
    - name: Subscription-subscriptionId-UsagePoint-usagePointId-MeterReading-meterReadingId-
      path: /Subscription/{subscriptionId}/UsagePoint/{usagePointId}/MeterReading/{meterReadingId}/IntervalBlock
      operations:
      - name: listintervalblocks
        method: GET
        description: List IntervalBlocks for a MeterReading
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: Subscription-subscriptionId-UsagePoint-usagePointId-MeterReading-meterReadingId-
      path: /Subscription/{subscriptionId}/UsagePoint/{usagePointId}/MeterReading/{meterReadingId}/IntervalBlock/{intervalBlockId}
      operations:
      - name: getintervalblock
        method: GET
        description: Retrieve a single IntervalBlock
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.XCEL_ENERGY_API_KEY}}'
  exposes:
  - type: rest
    namespace: green-button-intervalblock-rest
    port: 8080
    description: REST adapter for Xcel Energy Green Button Connect My Data API — IntervalBlock. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/subscription/{subscriptionid}/usagepoint/{usagepointid}/meterreading/{meterreadingid}/intervalblock
      name: subscription-subscriptionid-usagepoint-usagepointid-meterreading-meterreadingid
      description: REST surface for Subscription-subscriptionId-UsagePoint-usagePointId-MeterReading-meterReadingId-.
      operations:
      - method: GET
        name: listintervalblocks
        description: List IntervalBlocks for a MeterReading
        call: green-button-intervalblock.listintervalblocks
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscription/{subscriptionid}/usagepoint/{usagepointid}/meterreading/{meterreadingid}/intervalblock/{intervalblockid}
      name: subscription-subscriptionid-usagepoint-usagepointid-meterreading-meterreadingid
      description: REST surface for Subscription-subscriptionId-UsagePoint-usagePointId-MeterReading-meterReadingId-.
      operations:
      - method: GET
        name: getintervalblock
        description: Retrieve a single IntervalBlock
        call: green-button-intervalblock.getintervalblock
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: green-button-intervalblock-mcp
    port: 9090
    transport: http
    description: MCP adapter for Xcel Energy Green Button Connect My Data API — IntervalBlock. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: list-intervalblocks-meterreading
      description: List IntervalBlocks for a MeterReading
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: green-button-intervalblock.listintervalblocks
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-single-intervalblock
      description: Retrieve a single IntervalBlock
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: green-button-intervalblock.getintervalblock
      outputParameters:
      - type: object
        mapping: $.