Cribl · Capability

Cribl Search API — Datasets

Cribl Search API — Datasets. 5 operations. Lead operation: List all search datasets. Self-contained Naftiko capability covering one Cribl business surface.

Run with Naftiko CriblDatasets

What You Can Do

GET
Listsearchdatasets — List all search datasets
/v1/search/datasets
POST
Createsearchdataset — Create a search dataset
/v1/search/datasets
GET
Getsearchdataset — Get a search dataset by ID
/v1/search/datasets/{id}
PATCH
Updatesearchdataset — Update a search dataset
/v1/search/datasets/{id}
DELETE
Deletesearchdataset — Delete a search dataset
/v1/search/datasets/{id}

MCP Tools

list-all-search-datasets

List all search datasets

read-only idempotent
create-search-dataset

Create a search dataset

read-only
get-search-dataset-id

Get a search dataset by ID

read-only idempotent
update-search-dataset

Update a search dataset

idempotent
delete-search-dataset

Delete a search dataset

idempotent

Capability Spec

search-datasets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Cribl Search API — Datasets
  description: 'Cribl Search API — Datasets. 5 operations. Lead operation: List all search datasets. Self-contained Naftiko
    capability covering one Cribl business surface.'
  tags:
  - Cribl
  - Datasets
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CRIBL_API_KEY: CRIBL_API_KEY
capability:
  consumes:
  - type: http
    namespace: search-datasets
    baseUri: https://{workspaceName}-{organizationId}.cribl.cloud/api/v1
    description: Cribl Search API — Datasets business capability. Self-contained, no shared references.
    resources:
    - name: search-datasets
      path: /search/datasets
      operations:
      - name: listsearchdatasets
        method: GET
        description: List all search datasets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createsearchdataset
        method: POST
        description: Create a search dataset
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: search-datasets-id
      path: /search/datasets/{id}
      operations:
      - name: getsearchdataset
        method: GET
        description: Get a search dataset by ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatesearchdataset
        method: PATCH
        description: Update a search dataset
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletesearchdataset
        method: DELETE
        description: Delete a search dataset
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.CRIBL_API_KEY}}'
  exposes:
  - type: rest
    namespace: search-datasets-rest
    port: 8080
    description: REST adapter for Cribl Search API — Datasets. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/search/datasets
      name: search-datasets
      description: REST surface for search-datasets.
      operations:
      - method: GET
        name: listsearchdatasets
        description: List all search datasets
        call: search-datasets.listsearchdatasets
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createsearchdataset
        description: Create a search dataset
        call: search-datasets.createsearchdataset
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/search/datasets/{id}
      name: search-datasets-id
      description: REST surface for search-datasets-id.
      operations:
      - method: GET
        name: getsearchdataset
        description: Get a search dataset by ID
        call: search-datasets.getsearchdataset
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatesearchdataset
        description: Update a search dataset
        call: search-datasets.updatesearchdataset
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletesearchdataset
        description: Delete a search dataset
        call: search-datasets.deletesearchdataset
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: search-datasets-mcp
    port: 9090
    transport: http
    description: MCP adapter for Cribl Search API — Datasets. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-all-search-datasets
      description: List all search datasets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: search-datasets.listsearchdatasets
      outputParameters:
      - type: object
        mapping: $.
    - name: create-search-dataset
      description: Create a search dataset
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: search-datasets.createsearchdataset
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-search-dataset-id
      description: Get a search dataset by ID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: search-datasets.getsearchdataset
      outputParameters:
      - type: object
        mapping: $.
    - name: update-search-dataset
      description: Update a search dataset
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: search-datasets.updatesearchdataset
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-search-dataset
      description: Delete a search dataset
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: search-datasets.deletesearchdataset
      outputParameters:
      - type: object
        mapping: $.