Cribl · Capability

Cribl Lake API — Retention

Cribl Lake API — Retention. 2 operations. Lead operation: Get dataset retention policy. Self-contained Naftiko capability covering one Cribl business surface.

Run with Naftiko CriblRetention

What You Can Do

GET
Getlakedatasetretention — Get dataset retention policy
/v1/lake/datasets/{id}/retention
PATCH
Updatelakedatasetretention — Update dataset retention policy
/v1/lake/datasets/{id}/retention

MCP Tools

get-dataset-retention-policy

Get dataset retention policy

read-only idempotent
update-dataset-retention-policy

Update dataset retention policy

idempotent

Capability Spec

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