Swetrix · Capability

Swetrix Statistics API — Errors

Swetrix Statistics API — Errors. 3 operations. Lead operation: Get Error Statistics Overview. Self-contained Naftiko capability covering one Swetrix business surface.

Run with Naftiko SwetrixErrors

What You Can Do

GET
Geterroroverview — Get Error Statistics Overview
/v1/v1/log/error-overview
GET
Listerrors — List Error Events
/v1/v1/log/errors
GET
Geterror — Get Error Details
/v1/v1/log/get-error

MCP Tools

get-error-statistics-overview

Get Error Statistics Overview

read-only idempotent
list-error-events

List Error Events

read-only idempotent
get-error-details

Get Error Details

read-only idempotent

Capability Spec

statistics-errors.yaml Raw ↑
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: $.