naftiko: 1.0.0-alpha2 info: label: Rollbar Metrics API — Occurrences Metrics description: 'Rollbar Metrics API — Occurrences Metrics. 1 operations. Lead operation: Get Occurrences over a Span of Time. Self-contained Naftiko capability covering one Rollbar business surface.' tags: - Rollbar - Occurrences Metrics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ROLLBAR_API_KEY: ROLLBAR_API_KEY capability: consumes: - type: http namespace: metrics-occurrences-metrics baseUri: https://api.rollbar.com/api/1 description: Rollbar Metrics API — Occurrences Metrics business capability. Self-contained, no shared references. resources: - name: metrics-occurrences path: /metrics/occurrences operations: - name: getoccurrencesmetrics method: POST description: Get Occurrences over a Span of Time outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: X-Rollbar-Access-Token value: '{{env.ROLLBAR_API_KEY}}' placement: header exposes: - type: rest namespace: metrics-occurrences-metrics-rest port: 8080 description: REST adapter for Rollbar Metrics API — Occurrences Metrics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/metrics/occurrences name: metrics-occurrences description: REST surface for metrics-occurrences. operations: - method: POST name: getoccurrencesmetrics description: Get Occurrences over a Span of Time call: metrics-occurrences-metrics.getoccurrencesmetrics with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: metrics-occurrences-metrics-mcp port: 9090 transport: http description: MCP adapter for Rollbar Metrics API — Occurrences Metrics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-occurrences-over-span-time description: Get Occurrences over a Span of Time hints: readOnly: true destructive: false idempotent: false call: metrics-occurrences-metrics.getoccurrencesmetrics with: body: tools.body outputParameters: - type: object mapping: $.