OpenObserve · Capability

openobserve — Short Url

openobserve — Short Url. 2 operations. Lead operation: Create short URL. Self-contained Naftiko capability covering one Openobserve business surface.

Run with Naftiko OpenobserveShort Url

What You Can Do

POST
Createshorturl — Create short URL
/v1/api/{org-id}/short
GET
Resolveshorturl — Resolve short URL
/v1/short/{org-id}/short/{short-id}

MCP Tools

create-short-url

Create short URL

resolve-short-url

Resolve short URL

read-only idempotent

Capability Spec

openobserve-short-url.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: openobserve — Short Url
  description: 'openobserve — Short Url. 2 operations. Lead operation: Create short URL. Self-contained Naftiko capability
    covering one Openobserve business surface.'
  tags:
  - Openobserve
  - Short Url
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPENOBSERVE_API_KEY: OPENOBSERVE_API_KEY
capability:
  consumes:
  - type: http
    namespace: openobserve-short-url
    baseUri: ''
    description: openobserve — Short Url business capability. Self-contained, no shared references.
    resources:
    - name: api-org_id-short
      path: /api/{org_id}/short
      operations:
      - name: createshorturl
        method: POST
        description: Create short URL
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: short-org_id-short-short_id
      path: /short/{org_id}/short/{short_id}
      operations:
      - name: resolveshorturl
        method: GET
        description: Resolve short URL
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: short_id
          in: path
          type: string
          description: The short ID to retrieve the original URL
          required: true
        - name: type
          in: query
          type: string
          description: Response type - if 'ui', returns JSON object instead of redirect
        - name: org_id
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.OPENOBSERVE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: openobserve-short-url-rest
    port: 8080
    description: REST adapter for openobserve — Short Url. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/{org-id}/short
      name: api-org-id-short
      description: REST surface for api-org_id-short.
      operations:
      - method: POST
        name: createshorturl
        description: Create short URL
        call: openobserve-short-url.createshorturl
        with:
          org_id: rest.org_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/short/{org-id}/short/{short-id}
      name: short-org-id-short-short-id
      description: REST surface for short-org_id-short-short_id.
      operations:
      - method: GET
        name: resolveshorturl
        description: Resolve short URL
        call: openobserve-short-url.resolveshorturl
        with:
          short_id: rest.short_id
          type: rest.type
          org_id: rest.org_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openobserve-short-url-mcp
    port: 9090
    transport: http
    description: MCP adapter for openobserve — Short Url. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: create-short-url
      description: Create short URL
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openobserve-short-url.createshorturl
      with:
        org_id: tools.org_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: resolve-short-url
      description: Resolve short URL
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openobserve-short-url.resolveshorturl
      with:
        short_id: tools.short_id
        type: tools.type
        org_id: tools.org_id
      outputParameters:
      - type: object
        mapping: $.