OpenObserve · Capability

openobserve — Templates

openobserve — Templates. 6 operations. Lead operation: List alert templates. Self-contained Naftiko capability covering one Openobserve business surface.

Run with Naftiko OpenobserveTemplates

What You Can Do

GET
Listtemplates — List alert templates
/v1/api/{org-id}/alerts/templates
POST
Createtemplate — Create alert template
/v1/api/{org-id}/alerts/templates
GET
Getsystemtemplates — Get system prebuilt templates
/v1/api/{org-id}/alerts/templates/system/prebuilt
GET
Gettemplate — Get alert template
/v1/api/{org-id}/alerts/templates/{template-name}
PUT
Updatetemplate — Update alert template
/v1/api/{org-id}/alerts/templates/{template-name}
DELETE
Deletealerttemplate — Delete alert template
/v1/api/{org-id}/alerts/templates/{template-name}

MCP Tools

list-alert-templates

List alert templates

read-only idempotent
create-alert-template

Create alert template

get-system-prebuilt-templates

Get system prebuilt templates

read-only idempotent
get-alert-template

Get alert template

read-only idempotent
update-alert-template

Update alert template

idempotent
delete-alert-template

Delete alert template

idempotent

Capability Spec

openobserve-templates.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: openobserve — Templates
  description: 'openobserve — Templates. 6 operations. Lead operation: List alert templates. Self-contained Naftiko capability
    covering one Openobserve business surface.'
  tags:
  - Openobserve
  - Templates
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPENOBSERVE_API_KEY: OPENOBSERVE_API_KEY
capability:
  consumes:
  - type: http
    namespace: openobserve-templates
    baseUri: ''
    description: openobserve — Templates business capability. Self-contained, no shared references.
    resources:
    - name: api-org_id-alerts-templates
      path: /api/{org_id}/alerts/templates
      operations:
      - name: listtemplates
        method: GET
        description: List alert templates
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          description: Organization name
          required: true
      - name: createtemplate
        method: POST
        description: Create alert template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          description: Organization name
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-org_id-alerts-templates-system-prebuilt
      path: /api/{org_id}/alerts/templates/system/prebuilt
      operations:
      - name: getsystemtemplates
        method: GET
        description: Get system prebuilt templates
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          description: Organization name
          required: true
    - name: api-org_id-alerts-templates-template_name
      path: /api/{org_id}/alerts/templates/{template_name}
      operations:
      - name: gettemplate
        method: GET
        description: Get alert template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          description: Organization name
          required: true
        - name: template_name
          in: path
          type: string
          description: Template name
          required: true
      - name: updatetemplate
        method: PUT
        description: Update alert template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          description: Organization name
          required: true
        - name: template_name
          in: path
          type: string
          description: Template name
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletealerttemplate
        method: DELETE
        description: Delete alert template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          description: Organization name
          required: true
        - name: template_name
          in: path
          type: string
          description: Template name
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.OPENOBSERVE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: openobserve-templates-rest
    port: 8080
    description: REST adapter for openobserve — Templates. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/{org-id}/alerts/templates
      name: api-org-id-alerts-templates
      description: REST surface for api-org_id-alerts-templates.
      operations:
      - method: GET
        name: listtemplates
        description: List alert templates
        call: openobserve-templates.listtemplates
        with:
          org_id: rest.org_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createtemplate
        description: Create alert template
        call: openobserve-templates.createtemplate
        with:
          org_id: rest.org_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/{org-id}/alerts/templates/system/prebuilt
      name: api-org-id-alerts-templates-system-prebuilt
      description: REST surface for api-org_id-alerts-templates-system-prebuilt.
      operations:
      - method: GET
        name: getsystemtemplates
        description: Get system prebuilt templates
        call: openobserve-templates.getsystemtemplates
        with:
          org_id: rest.org_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/{org-id}/alerts/templates/{template-name}
      name: api-org-id-alerts-templates-template-name
      description: REST surface for api-org_id-alerts-templates-template_name.
      operations:
      - method: GET
        name: gettemplate
        description: Get alert template
        call: openobserve-templates.gettemplate
        with:
          org_id: rest.org_id
          template_name: rest.template_name
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatetemplate
        description: Update alert template
        call: openobserve-templates.updatetemplate
        with:
          org_id: rest.org_id
          template_name: rest.template_name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletealerttemplate
        description: Delete alert template
        call: openobserve-templates.deletealerttemplate
        with:
          org_id: rest.org_id
          template_name: rest.template_name
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openobserve-templates-mcp
    port: 9090
    transport: http
    description: MCP adapter for openobserve — Templates. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-alert-templates
      description: List alert templates
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openobserve-templates.listtemplates
      with:
        org_id: tools.org_id
      outputParameters:
      - type: object
        mapping: $.
    - name: create-alert-template
      description: Create alert template
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openobserve-templates.createtemplate
      with:
        org_id: tools.org_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-system-prebuilt-templates
      description: Get system prebuilt templates
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openobserve-templates.getsystemtemplates
      with:
        org_id: tools.org_id
      outputParameters:
      - type: object
        mapping: $.
    - name: get-alert-template
      description: Get alert template
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openobserve-templates.gettemplate
      with:
        org_id: tools.org_id
        template_name: tools.template_name
      outputParameters:
      - type: object
        mapping: $.
    - name: update-alert-template
      description: Update alert template
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: openobserve-templates.updatetemplate
      with:
        org_id: tools.org_id
        template_name: tools.template_name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-alert-template
      description: Delete alert template
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: openobserve-templates.deletealerttemplate
      with:
        org_id: tools.org_id
        template_name: tools.template_name
      outputParameters:
      - type: object
        mapping: $.