Salesforce Net Zero Cloud REST API — Energy Consumption

Salesforce Net Zero Cloud REST API — Energy Consumption. 3 operations. Lead operation: List Energy Consumption Records. Self-contained Naftiko capability covering one Salesforce Net Zero Cloud business surface.

Run with Naftiko Salesforce Net Zero CloudEnergy Consumption

What You Can Do

GET
Listenergyconsumption — List Energy Consumption Records
/v1/sobjects/energyconsumption
POST
Createenergyconsumption — Create Energy Consumption Record
/v1/sobjects/energyconsumption
GET
Getenergyconsumption — Get Energy Consumption Record
/v1/sobjects/energyconsumption/{consumptionid}

MCP Tools

list-energy-consumption-records

List Energy Consumption Records

read-only idempotent
create-energy-consumption-record

Create Energy Consumption Record

get-energy-consumption-record

Get Energy Consumption Record

read-only idempotent

Capability Spec

rest-energy-consumption.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Salesforce Net Zero Cloud REST API — Energy Consumption
  description: 'Salesforce Net Zero Cloud REST API — Energy Consumption. 3 operations. Lead operation: List Energy Consumption
    Records. Self-contained Naftiko capability covering one Salesforce Net Zero Cloud business surface.'
  tags:
  - Salesforce Net Zero Cloud
  - Energy Consumption
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SALESFORCE_NET_ZERO_CLOUD_API_KEY: SALESFORCE_NET_ZERO_CLOUD_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-energy-consumption
    baseUri: https://{instance}.my.salesforce.com/services/data/v59.0
    description: Salesforce Net Zero Cloud REST API — Energy Consumption business capability. Self-contained, no shared references.
    resources:
    - name: sobjects-EnergyConsumption
      path: /sobjects/EnergyConsumption
      operations:
      - name: listenergyconsumption
        method: GET
        description: List Energy Consumption Records
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: energyType
          in: query
          type: string
          description: Filter by energy type
        - name: reportingYear
          in: query
          type: integer
      - name: createenergyconsumption
        method: POST
        description: Create Energy Consumption Record
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: sobjects-EnergyConsumption-consumptionId
      path: /sobjects/EnergyConsumption/{consumptionId}
      operations:
      - name: getenergyconsumption
        method: GET
        description: Get Energy Consumption Record
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: consumptionId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.SALESFORCE_NET_ZERO_CLOUD_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-energy-consumption-rest
    port: 8080
    description: REST adapter for Salesforce Net Zero Cloud REST API — Energy Consumption. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/sobjects/energyconsumption
      name: sobjects-energyconsumption
      description: REST surface for sobjects-EnergyConsumption.
      operations:
      - method: GET
        name: listenergyconsumption
        description: List Energy Consumption Records
        call: rest-energy-consumption.listenergyconsumption
        with:
          energyType: rest.energyType
          reportingYear: rest.reportingYear
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createenergyconsumption
        description: Create Energy Consumption Record
        call: rest-energy-consumption.createenergyconsumption
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/sobjects/energyconsumption/{consumptionid}
      name: sobjects-energyconsumption-consumptionid
      description: REST surface for sobjects-EnergyConsumption-consumptionId.
      operations:
      - method: GET
        name: getenergyconsumption
        description: Get Energy Consumption Record
        call: rest-energy-consumption.getenergyconsumption
        with:
          consumptionId: rest.consumptionId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-energy-consumption-mcp
    port: 9090
    transport: http
    description: MCP adapter for Salesforce Net Zero Cloud REST API — Energy Consumption. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: list-energy-consumption-records
      description: List Energy Consumption Records
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-energy-consumption.listenergyconsumption
      with:
        energyType: tools.energyType
        reportingYear: tools.reportingYear
      outputParameters:
      - type: object
        mapping: $.
    - name: create-energy-consumption-record
      description: Create Energy Consumption Record
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-energy-consumption.createenergyconsumption
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-energy-consumption-record
      description: Get Energy Consumption Record
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-energy-consumption.getenergyconsumption
      with:
        consumptionId: tools.consumptionId
      outputParameters:
      - type: object
        mapping: $.