naftiko: 1.0.0-alpha2 info: label: Sentry Explore API — Explore description: 'Sentry Explore API — Explore. 2 operations. Lead operation: Sentry Query Explore events in timeseries format. Self-contained Naftiko capability covering one Sentry System business surface.' tags: - Sentry System - Explore 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-explore-explore baseUri: https://sentry.io/api/0 description: Sentry Explore API — Explore business capability. Self-contained, no shared references. resources: - name: organizations-organization_id_or_slug-events-stats path: /organizations/{organization_id_or_slug}/events-stats/ operations: - name: queryexploreeventstimeseries method: GET description: Sentry Query Explore events in timeseries format outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: yAxis in: query type: array description: The aggregate field to chart (e.g., count(), p50(transaction.duration)). required: true - name: query in: query type: string description: An optional search query to filter events. - name: statsPeriod in: query type: string description: Stats period (e.g., 24h, 14d). - name: start in: query type: string description: Start date for the query range. - name: end in: query type: string description: End date for the query range. - name: interval in: query type: string description: Resolution interval (e.g., 1h, 1d). - name: project in: query type: array description: Project IDs to filter by. - name: environment in: query type: string description: Environment name to filter by. - name: organizations-organization_id_or_slug-events path: /organizations/{organization_id_or_slug}/events/ operations: - name: queryexploreeventstable method: GET description: Sentry Query Explore events in table format outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: field in: query type: array description: The fields to select (may be specified multiple times). required: true - name: query in: query type: string description: An optional Sentry search query to filter events. - name: statsPeriod in: query type: string description: Stats period (e.g., 24h, 14d). - name: start in: query type: string description: Start date for the query range. - name: end in: query type: string description: End date for the query range. - name: sort in: query type: string description: Field to sort by (prefix with - for descending). - name: project in: query type: array description: Project IDs to filter by. - name: environment in: query type: string description: Environment name to filter by. - name: per_page in: query type: integer description: Number of results per page. - name: cursor in: query type: string description: Pagination cursor. authentication: type: bearer token: '{{env.SENTRY_SYSTEM_API_KEY}}' exposes: - type: rest namespace: sentry-explore-explore-rest port: 8080 description: REST adapter for Sentry Explore API — Explore. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/organizations/{organization-id-or-slug}/events-stats name: organizations-organization-id-or-slug-events-stats description: REST surface for organizations-organization_id_or_slug-events-stats. operations: - method: GET name: queryexploreeventstimeseries description: Sentry Query Explore events in timeseries format call: sentry-explore-explore.queryexploreeventstimeseries with: yAxis: rest.yAxis query: rest.query statsPeriod: rest.statsPeriod start: rest.start end: rest.end interval: rest.interval project: rest.project environment: rest.environment outputParameters: - type: object mapping: $. - path: /v1/organizations/{organization-id-or-slug}/events name: organizations-organization-id-or-slug-events description: REST surface for organizations-organization_id_or_slug-events. operations: - method: GET name: queryexploreeventstable description: Sentry Query Explore events in table format call: sentry-explore-explore.queryexploreeventstable with: field: rest.field query: rest.query statsPeriod: rest.statsPeriod start: rest.start end: rest.end sort: rest.sort project: rest.project environment: rest.environment per_page: rest.per_page cursor: rest.cursor outputParameters: - type: object mapping: $. - type: mcp namespace: sentry-explore-explore-mcp port: 9090 transport: http description: MCP adapter for Sentry Explore API — Explore. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: sentry-query-explore-events-timeseries description: Sentry Query Explore events in timeseries format hints: readOnly: true destructive: false idempotent: true call: sentry-explore-explore.queryexploreeventstimeseries with: yAxis: tools.yAxis query: tools.query statsPeriod: tools.statsPeriod start: tools.start end: tools.end interval: tools.interval project: tools.project environment: tools.environment outputParameters: - type: object mapping: $. - name: sentry-query-explore-events-table description: Sentry Query Explore events in table format hints: readOnly: true destructive: false idempotent: true call: sentry-explore-explore.queryexploreeventstable with: field: tools.field query: tools.query statsPeriod: tools.statsPeriod start: tools.start end: tools.end sort: tools.sort project: tools.project environment: tools.environment per_page: tools.per_page cursor: tools.cursor outputParameters: - type: object mapping: $.