naftiko: 1.0.0-alpha2 info: label: Sentry Alerts API — Metric Alerts description: 'Sentry Alerts API — Metric Alerts. 5 operations. Lead operation: Sentry List an organization''s metric alert rules. Self-contained Naftiko capability covering one Sentry System business surface.' tags: - Sentry System - Metric Alerts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SENTRY_SYSTEM_API_KEY: SENTRY_SYSTEM_API_KEY capability: consumes: - type: http namespace: sentry-alerts-metric-alerts baseUri: https://sentry.io/api/0 description: Sentry Alerts API — Metric Alerts business capability. Self-contained, no shared references. resources: - name: organizations-organization_id_or_slug-alert-rules path: /organizations/{organization_id_or_slug}/alert-rules/ operations: - name: listmetricalertrules method: GET description: Sentry List an organization's metric alert rules outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: cursor in: query type: string description: Pagination cursor. - name: createmetricalertrule method: POST description: Sentry Create a metric alert rule for an organization outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: organizations-organization_id_or_slug-alert-rules-alert_rule_id path: /organizations/{organization_id_or_slug}/alert-rules/{alert_rule_id}/ operations: - name: retrievemetricalertrule method: GET description: Sentry Retrieve a metric alert rule for an organization outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatemetricalertrule method: PUT description: Sentry Update a metric alert rule outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletemetricalertrule method: DELETE description: Sentry Delete a metric alert rule outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.SENTRY_SYSTEM_API_KEY}}' exposes: - type: rest namespace: sentry-alerts-metric-alerts-rest port: 8080 description: REST adapter for Sentry Alerts API — Metric Alerts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/organizations/{organization-id-or-slug}/alert-rules name: organizations-organization-id-or-slug-alert-rules description: REST surface for organizations-organization_id_or_slug-alert-rules. operations: - method: GET name: listmetricalertrules description: Sentry List an organization's metric alert rules call: sentry-alerts-metric-alerts.listmetricalertrules with: cursor: rest.cursor outputParameters: - type: object mapping: $. - method: POST name: createmetricalertrule description: Sentry Create a metric alert rule for an organization call: sentry-alerts-metric-alerts.createmetricalertrule with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/organizations/{organization-id-or-slug}/alert-rules/{alert-rule-id} name: organizations-organization-id-or-slug-alert-rules-alert-rule-id description: REST surface for organizations-organization_id_or_slug-alert-rules-alert_rule_id. operations: - method: GET name: retrievemetricalertrule description: Sentry Retrieve a metric alert rule for an organization call: sentry-alerts-metric-alerts.retrievemetricalertrule outputParameters: - type: object mapping: $. - method: PUT name: updatemetricalertrule description: Sentry Update a metric alert rule call: sentry-alerts-metric-alerts.updatemetricalertrule with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletemetricalertrule description: Sentry Delete a metric alert rule call: sentry-alerts-metric-alerts.deletemetricalertrule outputParameters: - type: object mapping: $. - type: mcp namespace: sentry-alerts-metric-alerts-mcp port: 9090 transport: http description: MCP adapter for Sentry Alerts API — Metric Alerts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: sentry-list-organization-s-metric-alert description: Sentry List an organization's metric alert rules hints: readOnly: true destructive: false idempotent: true call: sentry-alerts-metric-alerts.listmetricalertrules with: cursor: tools.cursor outputParameters: - type: object mapping: $. - name: sentry-create-metric-alert-rule description: Sentry Create a metric alert rule for an organization hints: readOnly: false destructive: false idempotent: false call: sentry-alerts-metric-alerts.createmetricalertrule with: body: tools.body outputParameters: - type: object mapping: $. - name: sentry-retrieve-metric-alert-rule description: Sentry Retrieve a metric alert rule for an organization hints: readOnly: true destructive: false idempotent: true call: sentry-alerts-metric-alerts.retrievemetricalertrule outputParameters: - type: object mapping: $. - name: sentry-update-metric-alert-rule description: Sentry Update a metric alert rule hints: readOnly: false destructive: false idempotent: true call: sentry-alerts-metric-alerts.updatemetricalertrule with: body: tools.body outputParameters: - type: object mapping: $. - name: sentry-delete-metric-alert-rule description: Sentry Delete a metric alert rule hints: readOnly: false destructive: true idempotent: true call: sentry-alerts-metric-alerts.deletemetricalertrule outputParameters: - type: object mapping: $.