naftiko: 1.0.0-alpha2 info: label: WattTime API — Grid Regions description: 'WattTime API — Grid Regions. 2 operations. Lead operation: WattTime Get Grid Region Boundary Maps. Self-contained Naftiko capability covering one Watttime business surface.' tags: - Watttime - Grid Regions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: WATTTIME_API_KEY: WATTTIME_API_KEY capability: consumes: - type: http namespace: watttime-grid-regions baseUri: https://api.watttime.org/v3 description: WattTime API — Grid Regions business capability. Self-contained, no shared references. resources: - name: maps path: /maps operations: - name: getgridmaps method: GET description: WattTime Get Grid Region Boundary Maps outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: signal_type in: query type: string description: Filter maps by signal type availability. - name: region-from-loc path: /region-from-loc operations: - name: getregionfromlocation method: GET description: WattTime Get Grid Region from Location outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: latitude in: query type: number description: Latitude of the location in decimal degrees. required: true - name: longitude in: query type: number description: Longitude of the location in decimal degrees. required: true - name: signal_type in: query type: string description: Signal type to check region availability for. Defaults to co2_moer. authentication: type: bearer token: '{{env.WATTTIME_API_KEY}}' exposes: - type: rest namespace: watttime-grid-regions-rest port: 8080 description: REST adapter for WattTime API — Grid Regions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/maps name: maps description: REST surface for maps. operations: - method: GET name: getgridmaps description: WattTime Get Grid Region Boundary Maps call: watttime-grid-regions.getgridmaps with: signal_type: rest.signal_type outputParameters: - type: object mapping: $. - path: /v1/region-from-loc name: region-from-loc description: REST surface for region-from-loc. operations: - method: GET name: getregionfromlocation description: WattTime Get Grid Region from Location call: watttime-grid-regions.getregionfromlocation with: latitude: rest.latitude longitude: rest.longitude signal_type: rest.signal_type outputParameters: - type: object mapping: $. - type: mcp namespace: watttime-grid-regions-mcp port: 9090 transport: http description: MCP adapter for WattTime API — Grid Regions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: watttime-get-grid-region-boundary description: WattTime Get Grid Region Boundary Maps hints: readOnly: true destructive: false idempotent: true call: watttime-grid-regions.getgridmaps with: signal_type: tools.signal_type outputParameters: - type: object mapping: $. - name: watttime-get-grid-region-location description: WattTime Get Grid Region from Location hints: readOnly: true destructive: false idempotent: true call: watttime-grid-regions.getregionfromlocation with: latitude: tools.latitude longitude: tools.longitude signal_type: tools.signal_type outputParameters: - type: object mapping: $.