naftiko: 1.0.0-alpha2 info: label: Contentstack Analytics API — Device Usage description: 'Contentstack Analytics API — Device Usage. 1 operations. Lead operation: Get device usage metrics. Self-contained Naftiko capability covering one Contentstack business surface.' tags: - Contentstack - Device Usage created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CONTENTSTACK_API_KEY: CONTENTSTACK_API_KEY capability: consumes: - type: http namespace: analytics-device-usage baseUri: https://api.contentstack.io description: Contentstack Analytics API — Device Usage business capability. Self-contained, no shared references. resources: - name: analytics-v2-device-usage path: /analytics/v2/device-usage operations: - name: getdeviceusage method: POST description: Get device usage metrics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.CONTENTSTACK_API_KEY}}' exposes: - type: rest namespace: analytics-device-usage-rest port: 8080 description: REST adapter for Contentstack Analytics API — Device Usage. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/analytics/v2/device-usage name: analytics-v2-device-usage description: REST surface for analytics-v2-device-usage. operations: - method: POST name: getdeviceusage description: Get device usage metrics call: analytics-device-usage.getdeviceusage with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: analytics-device-usage-mcp port: 9090 transport: http description: MCP adapter for Contentstack Analytics API — Device Usage. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-device-usage-metrics description: Get device usage metrics hints: readOnly: true destructive: false idempotent: false call: analytics-device-usage.getdeviceusage with: body: tools.body outputParameters: - type: object mapping: $.