naftiko: 1.0.0-alpha2 info: label: Swetrix Statistics API — Errors description: 'Swetrix Statistics API — Errors. 3 operations. Lead operation: Get Error Statistics Overview. Self-contained Naftiko capability covering one Swetrix business surface.' tags: - Swetrix - Errors created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SWETRIX_API_KEY: SWETRIX_API_KEY capability: consumes: - type: http namespace: statistics-errors baseUri: https://api.swetrix.com description: Swetrix Statistics API — Errors business capability. Self-contained, no shared references. resources: - name: v1-log-error-overview path: /v1/log/error-overview operations: - name: geterroroverview method: GET description: Get Error Statistics Overview outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1-log-errors path: /v1/log/errors operations: - name: listerrors method: GET description: List Error Events outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1-log-get-error path: /v1/log/get-error operations: - name: geterror method: GET description: Get Error Details outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: eid in: query type: string description: Error group ID required: true authentication: type: apikey key: X-Api-Key value: '{{env.SWETRIX_API_KEY}}' placement: header exposes: - type: rest namespace: statistics-errors-rest port: 8080 description: REST adapter for Swetrix Statistics API — Errors. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/log/error-overview name: v1-log-error-overview description: REST surface for v1-log-error-overview. operations: - method: GET name: geterroroverview description: Get Error Statistics Overview call: statistics-errors.geterroroverview outputParameters: - type: object mapping: $. - path: /v1/v1/log/errors name: v1-log-errors description: REST surface for v1-log-errors. operations: - method: GET name: listerrors description: List Error Events call: statistics-errors.listerrors outputParameters: - type: object mapping: $. - path: /v1/v1/log/get-error name: v1-log-get-error description: REST surface for v1-log-get-error. operations: - method: GET name: geterror description: Get Error Details call: statistics-errors.geterror with: eid: rest.eid outputParameters: - type: object mapping: $. - type: mcp namespace: statistics-errors-mcp port: 9090 transport: http description: MCP adapter for Swetrix Statistics API — Errors. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-error-statistics-overview description: Get Error Statistics Overview hints: readOnly: true destructive: false idempotent: true call: statistics-errors.geterroroverview outputParameters: - type: object mapping: $. - name: list-error-events description: List Error Events hints: readOnly: true destructive: false idempotent: true call: statistics-errors.listerrors outputParameters: - type: object mapping: $. - name: get-error-details description: Get Error Details hints: readOnly: true destructive: false idempotent: true call: statistics-errors.geterror with: eid: tools.eid outputParameters: - type: object mapping: $.