naftiko: 1.0.0-alpha2 info: label: Radio Mast API — Analytics description: 'Radio Mast API — Analytics. 3 operations. Lead operation: Aggregate listener session analytics. Self-contained Naftiko capability covering one Radio Mast business surface.' tags: - Radio Mast - Analytics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RADIO_MAST_API_KEY: RADIO_MAST_API_KEY capability: consumes: - type: http namespace: radio-mast-analytics baseUri: https://api.radiomast.io/v1 description: Radio Mast API — Analytics business capability. Self-contained, no shared references. resources: - name: analytics-listener-sessions-aggregate path: /analytics/listener-sessions/aggregate/ operations: - name: get method: GET description: Aggregate listener session analytics outputRawFormat: json outputParameters: - name: result type: object value: $. - name: analytics-listener-sessions-time-series path: /analytics/listener-sessions/time-series/ operations: - name: get method: GET description: Listener session time-series analytics outputRawFormat: json outputParameters: - name: result type: object value: $. - name: analytics-reports path: /analytics/reports/ operations: - name: get method: GET description: Listener analytics reports outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: Authorization value: '{{env.RADIO_MAST_API_KEY}}' placement: header exposes: - type: rest namespace: radio-mast-analytics-rest port: 8080 description: REST adapter for Radio Mast API — Analytics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/analytics/listener-sessions/aggregate name: analytics-listener-sessions-aggregate description: REST surface for analytics-listener-sessions-aggregate. operations: - method: GET name: get description: Aggregate listener session analytics call: radio-mast-analytics.get outputParameters: - type: object mapping: $. - path: /v1/analytics/listener-sessions/time-series name: analytics-listener-sessions-time-series description: REST surface for analytics-listener-sessions-time-series. operations: - method: GET name: get description: Listener session time-series analytics call: radio-mast-analytics.get outputParameters: - type: object mapping: $. - path: /v1/analytics/reports name: analytics-reports description: REST surface for analytics-reports. operations: - method: GET name: get description: Listener analytics reports call: radio-mast-analytics.get outputParameters: - type: object mapping: $. - type: mcp namespace: radio-mast-analytics-mcp port: 9090 transport: http description: MCP adapter for Radio Mast API — Analytics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: aggregate-listener-session-analytics description: Aggregate listener session analytics hints: readOnly: true destructive: false idempotent: true call: radio-mast-analytics.get outputParameters: - type: object mapping: $. - name: listener-session-time-series-analytics description: Listener session time-series analytics hints: readOnly: true destructive: false idempotent: true call: radio-mast-analytics.get outputParameters: - type: object mapping: $. - name: listener-analytics-reports description: Listener analytics reports hints: readOnly: true destructive: false idempotent: true call: radio-mast-analytics.get outputParameters: - type: object mapping: $.