bugsnag · Capability

Bugsnag Data Access API — Trends

Bugsnag Data Access API — Trends. 2 operations. Lead operation: Get error trend. Self-contained Naftiko capability covering one Bugsnag business surface.

Run with Naftiko BugsnagTrends

What You Can Do

GET
Geterrortrend — Get error trend
/v1/projects/{project-id}/errors/{error-id}/trend
GET
Getprojecttrend — Get project trend
/v1/projects/{project-id}/trend

MCP Tools

get-error-trend

Get error trend

read-only idempotent
get-project-trend

Get project trend

read-only idempotent

Capability Spec

data-access-trends.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Bugsnag Data Access API — Trends
  description: 'Bugsnag Data Access API — Trends. 2 operations. Lead operation: Get error trend. Self-contained Naftiko capability
    covering one Bugsnag business surface.'
  tags:
  - Bugsnag
  - Trends
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BUGSNAG_API_KEY: BUGSNAG_API_KEY
capability:
  consumes:
  - type: http
    namespace: data-access-trends
    baseUri: https://api.bugsnag.com
    description: Bugsnag Data Access API — Trends business capability. Self-contained, no shared references.
    resources:
    - name: projects-project_id-errors-error_id-trend
      path: /projects/{project_id}/errors/{error_id}/trend
      operations:
      - name: geterrortrend
        method: GET
        description: Get error trend
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: buckets_count
          in: query
          type: integer
          description: The number of time buckets to return in the trend data.
    - name: projects-project_id-trend
      path: /projects/{project_id}/trend
      operations:
      - name: getprojecttrend
        method: GET
        description: Get project trend
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: buckets_count
          in: query
          type: integer
          description: The number of time buckets to return in the trend data.
        - name: resolution
          in: query
          type: string
          description: The time resolution for each bucket in the trend data.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.BUGSNAG_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: data-access-trends-rest
    port: 8080
    description: REST adapter for Bugsnag Data Access API — Trends. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/{project-id}/errors/{error-id}/trend
      name: projects-project-id-errors-error-id-trend
      description: REST surface for projects-project_id-errors-error_id-trend.
      operations:
      - method: GET
        name: geterrortrend
        description: Get error trend
        call: data-access-trends.geterrortrend
        with:
          buckets_count: rest.buckets_count
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{project-id}/trend
      name: projects-project-id-trend
      description: REST surface for projects-project_id-trend.
      operations:
      - method: GET
        name: getprojecttrend
        description: Get project trend
        call: data-access-trends.getprojecttrend
        with:
          buckets_count: rest.buckets_count
          resolution: rest.resolution
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: data-access-trends-mcp
    port: 9090
    transport: http
    description: MCP adapter for Bugsnag Data Access API — Trends. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-error-trend
      description: Get error trend
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: data-access-trends.geterrortrend
      with:
        buckets_count: tools.buckets_count
      outputParameters:
      - type: object
        mapping: $.
    - name: get-project-trend
      description: Get project trend
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: data-access-trends.getprojecttrend
      with:
        buckets_count: tools.buckets_count
        resolution: tools.resolution
      outputParameters:
      - type: object
        mapping: $.