naftiko: 1.0.0-alpha2 info: label: Turbonomic REST API — Statistics description: 'Turbonomic REST API — Statistics. 3 operations. Lead operation: Get Entity Statistics. Self-contained Naftiko capability covering one Turbonomic business surface.' tags: - Turbonomic - Statistics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TURBONOMIC_API_KEY: TURBONOMIC_API_KEY capability: consumes: - type: http namespace: rest-statistics baseUri: https://{turbonomic_host}/api/v3 description: Turbonomic REST API — Statistics business capability. Self-contained, no shared references. resources: - name: entities-uuid-stats path: /entities/{uuid}/stats operations: - name: getentitystats method: GET description: Get Entity Statistics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: uuid in: path type: string description: The unique identifier of the entity required: true - name: start_date in: query type: string description: Start date for statistics (ISO 8601 format) - name: end_date in: query type: string description: End date for statistics (ISO 8601 format) - name: markets-uuid-actions-stats path: /markets/{uuid}/actions/stats operations: - name: getmarketactionstats method: POST description: Get Market Action Statistics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: uuid in: path type: string description: Market UUID required: true - name: body in: body type: object description: Request body (JSON). required: false - name: stats path: /stats operations: - name: getstats method: POST description: Get Statistics 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.TURBONOMIC_API_KEY}}' exposes: - type: rest namespace: rest-statistics-rest port: 8080 description: REST adapter for Turbonomic REST API — Statistics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/entities/{uuid}/stats name: entities-uuid-stats description: REST surface for entities-uuid-stats. operations: - method: GET name: getentitystats description: Get Entity Statistics call: rest-statistics.getentitystats with: uuid: rest.uuid start_date: rest.start_date end_date: rest.end_date outputParameters: - type: object mapping: $. - path: /v1/markets/{uuid}/actions/stats name: markets-uuid-actions-stats description: REST surface for markets-uuid-actions-stats. operations: - method: POST name: getmarketactionstats description: Get Market Action Statistics call: rest-statistics.getmarketactionstats with: uuid: rest.uuid body: rest.body outputParameters: - type: object mapping: $. - path: /v1/stats name: stats description: REST surface for stats. operations: - method: POST name: getstats description: Get Statistics call: rest-statistics.getstats with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: rest-statistics-mcp port: 9090 transport: http description: MCP adapter for Turbonomic REST API — Statistics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-entity-statistics description: Get Entity Statistics hints: readOnly: true destructive: false idempotent: true call: rest-statistics.getentitystats with: uuid: tools.uuid start_date: tools.start_date end_date: tools.end_date outputParameters: - type: object mapping: $. - name: get-market-action-statistics description: Get Market Action Statistics hints: readOnly: true destructive: false idempotent: false call: rest-statistics.getmarketactionstats with: uuid: tools.uuid body: tools.body outputParameters: - type: object mapping: $. - name: get-statistics description: Get Statistics hints: readOnly: true destructive: false idempotent: false call: rest-statistics.getstats with: body: tools.body outputParameters: - type: object mapping: $.