Sentry · Capability

Sentry Discover API — Discover

Sentry Discover API — Discover. 5 operations. Lead operation: Sentry List an organization's Discover saved queries. Self-contained Naftiko capability covering one Sentry System business surface.

Run with Naftiko Sentry SystemDiscover

What You Can Do

GET
Listdiscoversavedqueries — Sentry List an organization's Discover saved queries
/v1/organizations/{organization-id-or-slug}/discover/saved
POST
Creatediscoversavedquery — Sentry Create a new saved query
/v1/organizations/{organization-id-or-slug}/discover/saved
GET
Retrievediscoversavedquery — Sentry Retrieve an organization's Discover saved query
/v1/organizations/{organization-id-or-slug}/discover/saved/{query-id}
PUT
Editdiscoversavedquery — Sentry Edit an organization's Discover saved query
/v1/organizations/{organization-id-or-slug}/discover/saved/{query-id}
DELETE
Deletediscoversavedquery — Sentry Delete an organization's Discover saved query
/v1/organizations/{organization-id-or-slug}/discover/saved/{query-id}

MCP Tools

sentry-list-organization-s-discover-saved

Sentry List an organization's Discover saved queries

read-only idempotent
sentry-create-new-saved-query

Sentry Create a new saved query

read-only
sentry-retrieve-organization-s-discover-saved

Sentry Retrieve an organization's Discover saved query

read-only idempotent
sentry-edit-organization-s-discover-saved

Sentry Edit an organization's Discover saved query

idempotent
sentry-delete-organization-s-discover-saved

Sentry Delete an organization's Discover saved query

idempotent

Capability Spec

sentry-discover-discover.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sentry Discover API — Discover
  description: 'Sentry Discover API — Discover. 5 operations. Lead operation: Sentry List an organization''s Discover saved
    queries. Self-contained Naftiko capability covering one Sentry System business surface.'
  tags:
  - Sentry System
  - Discover
  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-discover-discover
    baseUri: https://sentry.io/api/0
    description: Sentry Discover API — Discover business capability. Self-contained, no shared references.
    resources:
    - name: organizations-organization_id_or_slug-discover-saved
      path: /organizations/{organization_id_or_slug}/discover/saved/
      operations:
      - name: listdiscoversavedqueries
        method: GET
        description: Sentry List an organization's Discover saved queries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: cursor
          in: query
          type: string
          description: Pagination cursor.
        - name: query
          in: query
          type: string
          description: Search by query name.
        - name: sortBy
          in: query
          type: string
          description: Sort by field (e.g., dateCreated, dateUpdated, name).
      - name: creatediscoversavedquery
        method: POST
        description: Sentry Create a new saved query
        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-discover-saved-query_id
      path: /organizations/{organization_id_or_slug}/discover/saved/{query_id}/
      operations:
      - name: retrievediscoversavedquery
        method: GET
        description: Sentry Retrieve an organization's Discover saved query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: editdiscoversavedquery
        method: PUT
        description: Sentry Edit an organization's Discover saved query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletediscoversavedquery
        method: DELETE
        description: Sentry Delete an organization's Discover saved query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.SENTRY_SYSTEM_API_KEY}}'
  exposes:
  - type: rest
    namespace: sentry-discover-discover-rest
    port: 8080
    description: REST adapter for Sentry Discover API — Discover. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/organizations/{organization-id-or-slug}/discover/saved
      name: organizations-organization-id-or-slug-discover-saved
      description: REST surface for organizations-organization_id_or_slug-discover-saved.
      operations:
      - method: GET
        name: listdiscoversavedqueries
        description: Sentry List an organization's Discover saved queries
        call: sentry-discover-discover.listdiscoversavedqueries
        with:
          cursor: rest.cursor
          query: rest.query
          sortBy: rest.sortBy
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: creatediscoversavedquery
        description: Sentry Create a new saved query
        call: sentry-discover-discover.creatediscoversavedquery
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/organizations/{organization-id-or-slug}/discover/saved/{query-id}
      name: organizations-organization-id-or-slug-discover-saved-query-id
      description: REST surface for organizations-organization_id_or_slug-discover-saved-query_id.
      operations:
      - method: GET
        name: retrievediscoversavedquery
        description: Sentry Retrieve an organization's Discover saved query
        call: sentry-discover-discover.retrievediscoversavedquery
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: editdiscoversavedquery
        description: Sentry Edit an organization's Discover saved query
        call: sentry-discover-discover.editdiscoversavedquery
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletediscoversavedquery
        description: Sentry Delete an organization's Discover saved query
        call: sentry-discover-discover.deletediscoversavedquery
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: sentry-discover-discover-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sentry Discover API — Discover. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: sentry-list-organization-s-discover-saved
      description: Sentry List an organization's Discover saved queries
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sentry-discover-discover.listdiscoversavedqueries
      with:
        cursor: tools.cursor
        query: tools.query
        sortBy: tools.sortBy
      outputParameters:
      - type: object
        mapping: $.
    - name: sentry-create-new-saved-query
      description: Sentry Create a new saved query
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: sentry-discover-discover.creatediscoversavedquery
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: sentry-retrieve-organization-s-discover-saved
      description: Sentry Retrieve an organization's Discover saved query
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sentry-discover-discover.retrievediscoversavedquery
      outputParameters:
      - type: object
        mapping: $.
    - name: sentry-edit-organization-s-discover-saved
      description: Sentry Edit an organization's Discover saved query
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: sentry-discover-discover.editdiscoversavedquery
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: sentry-delete-organization-s-discover-saved
      description: Sentry Delete an organization's Discover saved query
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: sentry-discover-discover.deletediscoversavedquery
      outputParameters:
      - type: object
        mapping: $.