Cribl · Capability

Cribl Stream API — Routes

Cribl Stream API — Routes. 2 operations. Lead operation: List Stream routes in a worker group. Self-contained Naftiko capability covering one Cribl business surface.

Run with Naftiko CriblRoutes

What You Can Do

GET
Liststreamroutes — List Stream routes in a worker group
/v1/m/{groupid}/routes
POST
Createstreamroute — Create a Stream route in a worker group
/v1/m/{groupid}/routes

MCP Tools

list-stream-routes-worker-group

List Stream routes in a worker group

read-only idempotent
create-stream-route-worker-group

Create a Stream route in a worker group

Capability Spec

stream-routes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Cribl Stream API — Routes
  description: 'Cribl Stream API — Routes. 2 operations. Lead operation: List Stream routes in a worker group. Self-contained
    Naftiko capability covering one Cribl business surface.'
  tags:
  - Cribl
  - Routes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CRIBL_API_KEY: CRIBL_API_KEY
capability:
  consumes:
  - type: http
    namespace: stream-routes
    baseUri: https://{workspaceName}-{organizationId}.cribl.cloud/api/v1
    description: Cribl Stream API — Routes business capability. Self-contained, no shared references.
    resources:
    - name: m-groupId-routes
      path: /m/{groupId}/routes
      operations:
      - name: liststreamroutes
        method: GET
        description: List Stream routes in a worker group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createstreamroute
        method: POST
        description: Create a Stream route in a worker group
        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: stream-routes-rest
    port: 8080
    description: REST adapter for Cribl Stream API — Routes. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/m/{groupid}/routes
      name: m-groupid-routes
      description: REST surface for m-groupId-routes.
      operations:
      - method: GET
        name: liststreamroutes
        description: List Stream routes in a worker group
        call: stream-routes.liststreamroutes
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createstreamroute
        description: Create a Stream route in a worker group
        call: stream-routes.createstreamroute
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: stream-routes-mcp
    port: 9090
    transport: http
    description: MCP adapter for Cribl Stream API — Routes. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-stream-routes-worker-group
      description: List Stream routes in a worker group
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stream-routes.liststreamroutes
      outputParameters:
      - type: object
        mapping: $.
    - name: create-stream-route-worker-group
      description: Create a Stream route in a worker group
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: stream-routes.createstreamroute
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.