naftiko: 1.0.0-alpha2 info: label: PG&E Share My Data API — Usage description: 'PG&E Share My Data API — Usage. 3 operations. Lead operation: List usage points. Self-contained Naftiko capability covering one Pg And E business surface.' tags: - Pg And E - Usage created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PG_AND_E_API_KEY: PG_AND_E_API_KEY capability: consumes: - type: http namespace: share-my-data-usage baseUri: https://api.pge.com description: PG&E Share My Data API — Usage business capability. Self-contained, no shared references. resources: - name: GreenButtonConnect-espi-1_1-resource-Subscription-subscriptionId-UsagePoint path: /GreenButtonConnect/espi/1_1/resource/Subscription/{subscriptionId}/UsagePoint operations: - name: listusagepoints method: GET description: List usage points outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: subscriptionId in: path type: string description: The subscription identifier. required: true - name: GreenButtonConnect-espi-1_1-resource-Subscription-subscriptionId-UsagePoint-usag path: /GreenButtonConnect/espi/1_1/resource/Subscription/{subscriptionId}/UsagePoint/{usagePointId}/MeterReading operations: - name: listmeterreadings method: GET description: List meter readings outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: subscriptionId in: path type: string description: The subscription identifier. required: true - name: usagePointId in: path type: string description: The usage point identifier. required: true - name: GreenButtonConnect-espi-1_1-resource-Subscription-subscriptionId-UsagePoint-usag path: /GreenButtonConnect/espi/1_1/resource/Subscription/{subscriptionId}/UsagePoint/{usagePointId}/MeterReading/{meterReadingId}/IntervalBlock operations: - name: listintervalblocks method: GET description: List interval blocks outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: subscriptionId in: path type: string description: The subscription identifier. required: true - name: usagePointId in: path type: string description: The usage point identifier. required: true - name: meterReadingId in: path type: string description: The meter reading identifier. required: true authentication: type: bearer token: '{{env.PG_AND_E_API_KEY}}' exposes: - type: rest namespace: share-my-data-usage-rest port: 8080 description: REST adapter for PG&E Share My Data API — Usage. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/greenbuttonconnect/espi/1-1/resource/subscription/{subscriptionid}/usagepoint name: greenbuttonconnect-espi-1-1-resource-subscription-subscriptionid-usagepoint description: REST surface for GreenButtonConnect-espi-1_1-resource-Subscription-subscriptionId-UsagePoint. operations: - method: GET name: listusagepoints description: List usage points call: share-my-data-usage.listusagepoints with: subscriptionId: rest.subscriptionId outputParameters: - type: object mapping: $. - path: /v1/greenbuttonconnect/espi/1-1/resource/subscription/{subscriptionid}/usagepoint/{usagepointid}/meterreading name: greenbuttonconnect-espi-1-1-resource-subscription-subscriptionid-usagepoint-usag description: REST surface for GreenButtonConnect-espi-1_1-resource-Subscription-subscriptionId-UsagePoint-usag. operations: - method: GET name: listmeterreadings description: List meter readings call: share-my-data-usage.listmeterreadings with: subscriptionId: rest.subscriptionId usagePointId: rest.usagePointId outputParameters: - type: object mapping: $. - path: /v1/greenbuttonconnect/espi/1-1/resource/subscription/{subscriptionid}/usagepoint/{usagepointid}/meterreading/{meterreadingid}/intervalblock name: greenbuttonconnect-espi-1-1-resource-subscription-subscriptionid-usagepoint-usag description: REST surface for GreenButtonConnect-espi-1_1-resource-Subscription-subscriptionId-UsagePoint-usag. operations: - method: GET name: listintervalblocks description: List interval blocks call: share-my-data-usage.listintervalblocks with: subscriptionId: rest.subscriptionId usagePointId: rest.usagePointId meterReadingId: rest.meterReadingId outputParameters: - type: object mapping: $. - type: mcp namespace: share-my-data-usage-mcp port: 9090 transport: http description: MCP adapter for PG&E Share My Data API — Usage. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-usage-points description: List usage points hints: readOnly: true destructive: false idempotent: true call: share-my-data-usage.listusagepoints with: subscriptionId: tools.subscriptionId outputParameters: - type: object mapping: $. - name: list-meter-readings description: List meter readings hints: readOnly: true destructive: false idempotent: true call: share-my-data-usage.listmeterreadings with: subscriptionId: tools.subscriptionId usagePointId: tools.usagePointId outputParameters: - type: object mapping: $. - name: list-interval-blocks description: List interval blocks hints: readOnly: true destructive: false idempotent: true call: share-my-data-usage.listintervalblocks with: subscriptionId: tools.subscriptionId usagePointId: tools.usagePointId meterReadingId: tools.meterReadingId outputParameters: - type: object mapping: $.