TECO Energy · Capability

Tampa Electric Account API — Energy Usage

Tampa Electric Account API — Energy Usage. 1 operations. Lead operation: Get Energy Usage History. Self-contained Naftiko capability covering one Teco Energy business surface.

Run with Naftiko Teco EnergyEnergy Usage

What You Can Do

GET
Getusagehistory — Get Energy Usage History
/v1/accounts/{accountnumber}/usage

MCP Tools

get-energy-usage-history

Get Energy Usage History

read-only idempotent

Capability Spec

account-energy-usage.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Tampa Electric Account API — Energy Usage
  description: 'Tampa Electric Account API — Energy Usage. 1 operations. Lead operation: Get Energy Usage History. Self-contained
    Naftiko capability covering one Teco Energy business surface.'
  tags:
  - Teco Energy
  - Energy Usage
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TECO_ENERGY_API_KEY: TECO_ENERGY_API_KEY
capability:
  consumes:
  - type: http
    namespace: account-energy-usage
    baseUri: https://api.tecoenergy.com/v1
    description: Tampa Electric Account API — Energy Usage business capability. Self-contained, no shared references.
    resources:
    - name: accounts-accountNumber-usage
      path: /accounts/{accountNumber}/usage
      operations:
      - name: getusagehistory
        method: GET
        description: Get Energy Usage History
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: accountNumber
          in: path
          type: string
          description: Customer account number.
          required: true
        - name: startDate
          in: query
          type: string
          description: Start date for usage history (ISO 8601 format).
        - name: endDate
          in: query
          type: string
          description: End date for usage history (ISO 8601 format).
        - name: interval
          in: query
          type: string
          description: Data interval granularity.
    authentication:
      type: bearer
      token: '{{env.TECO_ENERGY_API_KEY}}'
  exposes:
  - type: rest
    namespace: account-energy-usage-rest
    port: 8080
    description: REST adapter for Tampa Electric Account API — Energy Usage. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/accounts/{accountnumber}/usage
      name: accounts-accountnumber-usage
      description: REST surface for accounts-accountNumber-usage.
      operations:
      - method: GET
        name: getusagehistory
        description: Get Energy Usage History
        call: account-energy-usage.getusagehistory
        with:
          accountNumber: rest.accountNumber
          startDate: rest.startDate
          endDate: rest.endDate
          interval: rest.interval
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: account-energy-usage-mcp
    port: 9090
    transport: http
    description: MCP adapter for Tampa Electric Account API — Energy Usage. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-energy-usage-history
      description: Get Energy Usage History
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: account-energy-usage.getusagehistory
      with:
        accountNumber: tools.accountNumber
        startDate: tools.startDate
        endDate: tools.endDate
        interval: tools.interval
      outputParameters:
      - type: object
        mapping: $.