Rollbar · Capability

Rollbar REST API — Occurrences

Rollbar REST API — Occurrences. 3 operations. Lead operation: Get an Occurrence. Self-contained Naftiko capability covering one Rollbar business surface.

Run with Naftiko RollbarOccurrences

What You Can Do

GET
Getoccurrence — Get an Occurrence
/v1/instance/{instanceid}
GET
Listprojectoccurrences — List All Occurrences in a Project
/v1/instances
GET
Listitemoccurrences — List All Occurrences of an Item
/v1/item/{itemid}/instances

MCP Tools

get-occurrence

Get an Occurrence

read-only idempotent
list-all-occurrences-project

List All Occurrences in a Project

read-only idempotent
list-all-occurrences-item

List All Occurrences of an Item

read-only idempotent

Capability Spec

rest-occurrences.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Rollbar REST API — Occurrences
  description: 'Rollbar REST API — Occurrences. 3 operations. Lead operation: Get an Occurrence. Self-contained Naftiko capability
    covering one Rollbar business surface.'
  tags:
  - Rollbar
  - Occurrences
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ROLLBAR_API_KEY: ROLLBAR_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-occurrences
    baseUri: https://api.rollbar.com/api/1
    description: Rollbar REST API — Occurrences business capability. Self-contained, no shared references.
    resources:
    - name: instance-instanceId
      path: /instance/{instanceId}
      operations:
      - name: getoccurrence
        method: GET
        description: Get an Occurrence
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: instanceId
          in: path
          type: integer
          description: The ID of the occurrence instance to retrieve.
          required: true
    - name: instances
      path: /instances/
      operations:
      - name: listprojectoccurrences
        method: GET
        description: List All Occurrences in a Project
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: item-itemId-instances
      path: /item/{itemId}/instances/
      operations:
      - name: listitemoccurrences
        method: GET
        description: List All Occurrences of an Item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: X-Rollbar-Access-Token
      value: '{{env.ROLLBAR_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: rest-occurrences-rest
    port: 8080
    description: REST adapter for Rollbar REST API — Occurrences. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/instance/{instanceid}
      name: instance-instanceid
      description: REST surface for instance-instanceId.
      operations:
      - method: GET
        name: getoccurrence
        description: Get an Occurrence
        call: rest-occurrences.getoccurrence
        with:
          instanceId: rest.instanceId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/instances
      name: instances
      description: REST surface for instances.
      operations:
      - method: GET
        name: listprojectoccurrences
        description: List All Occurrences in a Project
        call: rest-occurrences.listprojectoccurrences
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/item/{itemid}/instances
      name: item-itemid-instances
      description: REST surface for item-itemId-instances.
      operations:
      - method: GET
        name: listitemoccurrences
        description: List All Occurrences of an Item
        call: rest-occurrences.listitemoccurrences
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-occurrences-mcp
    port: 9090
    transport: http
    description: MCP adapter for Rollbar REST API — Occurrences. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-occurrence
      description: Get an Occurrence
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-occurrences.getoccurrence
      with:
        instanceId: tools.instanceId
      outputParameters:
      - type: object
        mapping: $.
    - name: list-all-occurrences-project
      description: List All Occurrences in a Project
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-occurrences.listprojectoccurrences
      outputParameters:
      - type: object
        mapping: $.
    - name: list-all-occurrences-item
      description: List All Occurrences of an Item
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-occurrences.listitemoccurrences
      outputParameters:
      - type: object
        mapping: $.