naftiko: 1.0.0-alpha2 info: label: Red Hat Insights API — Stats description: 'Red Hat Insights API — Stats. 2 operations. Lead operation: Red Hat Get Rule Statistics. Self-contained Naftiko capability covering one Red Hat business surface.' tags: - Red Hat - Stats created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RED_HAT_API_KEY: RED_HAT_API_KEY capability: consumes: - type: http namespace: insights-stats baseUri: https://console.redhat.com/api description: Red Hat Insights API — Stats business capability. Self-contained, no shared references. resources: - name: insights-v1-stats-rules path: /insights/v1/stats/rules/ operations: - name: getrulestats method: GET description: Red Hat Get Rule Statistics outputRawFormat: json outputParameters: - name: result type: object value: $. - name: insights-v1-stats-systems path: /insights/v1/stats/systems/ operations: - name: getsystemstats method: GET description: Red Hat Get System Statistics outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.RED_HAT_API_KEY}}' exposes: - type: rest namespace: insights-stats-rest port: 8080 description: REST adapter for Red Hat Insights API — Stats. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/insights/v1/stats/rules name: insights-v1-stats-rules description: REST surface for insights-v1-stats-rules. operations: - method: GET name: getrulestats description: Red Hat Get Rule Statistics call: insights-stats.getrulestats outputParameters: - type: object mapping: $. - path: /v1/insights/v1/stats/systems name: insights-v1-stats-systems description: REST surface for insights-v1-stats-systems. operations: - method: GET name: getsystemstats description: Red Hat Get System Statistics call: insights-stats.getsystemstats outputParameters: - type: object mapping: $. - type: mcp namespace: insights-stats-mcp port: 9090 transport: http description: MCP adapter for Red Hat Insights API — Stats. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: red-hat-get-rule-statistics description: Red Hat Get Rule Statistics hints: readOnly: true destructive: false idempotent: true call: insights-stats.getrulestats outputParameters: - type: object mapping: $. - name: red-hat-get-system-statistics description: Red Hat Get System Statistics hints: readOnly: true destructive: false idempotent: true call: insights-stats.getsystemstats outputParameters: - type: object mapping: $.