naftiko: 1.0.0-alpha2 info: label: Adobe Analytics API — Calculated Metrics description: 'Adobe Analytics API — Calculated Metrics. 5 operations. Lead operation: Adobe Analytics List Calculated Metrics. Self-contained Naftiko capability covering one Adobe Analytics business surface.' tags: - Adobe Analytics - Calculated Metrics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ADOBE_ANALYTICS_API_KEY: ADOBE_ANALYTICS_API_KEY capability: consumes: - type: http namespace: adobe-analytics-calculated-metrics baseUri: https://analytics.adobe.io/api/{globalCompanyId} description: Adobe Analytics API — Calculated Metrics business capability. Self-contained, no shared references. resources: - name: calculatedmetrics path: /calculatedmetrics operations: - name: listcalculatedmetrics method: GET description: Adobe Analytics List Calculated Metrics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: limit in: query type: integer - name: page in: query type: integer - name: expansion in: query type: string description: Comma-separated additional fields to include - name: includeType in: query type: string description: Controls which calculated metrics are returned - name: createcalculatedmetric method: POST description: Adobe Analytics Create a Calculated Metric outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: calculatedmetrics-calculatedMetricId path: /calculatedmetrics/{calculatedMetricId} operations: - name: getcalculatedmetric method: GET description: Adobe Analytics Get a Calculated Metric outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecalculatedmetric method: PUT description: Adobe Analytics Update a Calculated Metric outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletecalculatedmetric method: DELETE description: Adobe Analytics Delete a Calculated Metric outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.ADOBE_ANALYTICS_API_KEY}}' exposes: - type: rest namespace: adobe-analytics-calculated-metrics-rest port: 8080 description: REST adapter for Adobe Analytics API — Calculated Metrics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/calculatedmetrics name: calculatedmetrics description: REST surface for calculatedmetrics. operations: - method: GET name: listcalculatedmetrics description: Adobe Analytics List Calculated Metrics call: adobe-analytics-calculated-metrics.listcalculatedmetrics with: limit: rest.limit page: rest.page expansion: rest.expansion includeType: rest.includeType outputParameters: - type: object mapping: $. - method: POST name: createcalculatedmetric description: Adobe Analytics Create a Calculated Metric call: adobe-analytics-calculated-metrics.createcalculatedmetric with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/calculatedmetrics/{calculatedmetricid} name: calculatedmetrics-calculatedmetricid description: REST surface for calculatedmetrics-calculatedMetricId. operations: - method: GET name: getcalculatedmetric description: Adobe Analytics Get a Calculated Metric call: adobe-analytics-calculated-metrics.getcalculatedmetric outputParameters: - type: object mapping: $. - method: PUT name: updatecalculatedmetric description: Adobe Analytics Update a Calculated Metric call: adobe-analytics-calculated-metrics.updatecalculatedmetric with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecalculatedmetric description: Adobe Analytics Delete a Calculated Metric call: adobe-analytics-calculated-metrics.deletecalculatedmetric outputParameters: - type: object mapping: $. - type: mcp namespace: adobe-analytics-calculated-metrics-mcp port: 9090 transport: http description: MCP adapter for Adobe Analytics API — Calculated Metrics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: adobe-analytics-list-calculated-metrics description: Adobe Analytics List Calculated Metrics hints: readOnly: true destructive: false idempotent: true call: adobe-analytics-calculated-metrics.listcalculatedmetrics with: limit: tools.limit page: tools.page expansion: tools.expansion includeType: tools.includeType outputParameters: - type: object mapping: $. - name: adobe-analytics-create-calculated-metric description: Adobe Analytics Create a Calculated Metric hints: readOnly: false destructive: false idempotent: false call: adobe-analytics-calculated-metrics.createcalculatedmetric with: body: tools.body outputParameters: - type: object mapping: $. - name: adobe-analytics-get-calculated-metric description: Adobe Analytics Get a Calculated Metric hints: readOnly: true destructive: false idempotent: true call: adobe-analytics-calculated-metrics.getcalculatedmetric outputParameters: - type: object mapping: $. - name: adobe-analytics-update-calculated-metric description: Adobe Analytics Update a Calculated Metric hints: readOnly: false destructive: false idempotent: true call: adobe-analytics-calculated-metrics.updatecalculatedmetric with: body: tools.body outputParameters: - type: object mapping: $. - name: adobe-analytics-delete-calculated-metric description: Adobe Analytics Delete a Calculated Metric hints: readOnly: false destructive: true idempotent: true call: adobe-analytics-calculated-metrics.deletecalculatedmetric outputParameters: - type: object mapping: $.