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: $.