Langfuse · Capability

langfuse — Observations

langfuse — Observations. 1 operations. Lead operation: Observations. Self-contained Naftiko capability covering one Langfuse business surface.

Run with Naftiko LangfuseObservations

What You Can Do

GET
Observationsgetmany — Get a list of observations with cursor-based pagination and flexible field selection.
/v1/api/public/v2/observations

MCP Tools

get-list-observations-cursor-based

Get a list of observations with cursor-based pagination and flexible field selection.

read-only idempotent

Capability Spec

langfuse-observations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: langfuse — Observations
  description: 'langfuse — Observations. 1 operations. Lead operation: Observations. Self-contained Naftiko capability covering
    one Langfuse business surface.'
  tags:
  - Langfuse
  - Observations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LANGFUSE_API_KEY: LANGFUSE_API_KEY
capability:
  consumes:
  - type: http
    namespace: langfuse-observations
    baseUri: ''
    description: langfuse — Observations business capability. Self-contained, no shared references.
    resources:
    - name: api-public-v2-observations
      path: /api/public/v2/observations
      operations:
      - name: observationsgetmany
        method: GET
        description: Get a list of observations with cursor-based pagination and flexible field selection.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: string
          description: Comma-separated list of field groups to include in the response.
        - name: expandMetadata
          in: query
          type: string
          description: Comma-separated list of metadata keys to return non-truncated.
        - name: limit
          in: query
          type: integer
          description: Number of items to return per page. Maximum 1000, default 50.
        - name: cursor
          in: query
          type: string
          description: Base64-encoded cursor for pagination. Use the cursor from the previous response to get the next page.
        - name: parseIoAsJson
          in: query
          type: boolean
          description: '**Deprecated.** Setting this to `true` will return a 400 error.'
        - name: name
          in: query
          type: string
        - name: userId
          in: query
          type: string
        - name: type
          in: query
          type: string
          description: Filter by observation type (e.g., "GENERATION", "SPAN", "EVENT", "AGENT", "TOOL", "CHAIN", "RETRIEVER",
            "EVALUATOR", "EMBEDDING", "GUARDRAIL")
        - name: traceId
          in: query
          type: string
        - name: level
          in: query
          type: string
          description: Optional filter for observations with a specific level (e.g. "DEBUG", "DEFAULT", "WARNING", "ERROR").
        - name: parentObservationId
          in: query
          type: string
        - name: environment
          in: query
          type: array
          description: Optional filter for observations where the environment is one of the provided values.
        - name: fromStartTime
          in: query
          type: string
          description: Retrieve only observations with a start_time on or after this datetime (ISO 8601).
        - name: toStartTime
          in: query
          type: string
          description: Retrieve only observations with a start_time before this datetime (ISO 8601).
        - name: version
          in: query
          type: string
          description: Optional filter to only include observations with a certain version.
        - name: filter
          in: query
          type: string
          description: JSON string containing an array of filter conditions. When provided, this takes precedence over query
            parameter filters (userId, name, type, level, environment,
    authentication:
      type: basic
      username: '{{env.LANGFUSE_USER}}'
      password: '{{env.LANGFUSE_PASS}}'
  exposes:
  - type: rest
    namespace: langfuse-observations-rest
    port: 8080
    description: REST adapter for langfuse — Observations. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/public/v2/observations
      name: api-public-v2-observations
      description: REST surface for api-public-v2-observations.
      operations:
      - method: GET
        name: observationsgetmany
        description: Get a list of observations with cursor-based pagination and flexible field selection.
        call: langfuse-observations.observationsgetmany
        with:
          fields: rest.fields
          expandMetadata: rest.expandMetadata
          limit: rest.limit
          cursor: rest.cursor
          parseIoAsJson: rest.parseIoAsJson
          name: rest.name
          userId: rest.userId
          type: rest.type
          traceId: rest.traceId
          level: rest.level
          parentObservationId: rest.parentObservationId
          environment: rest.environment
          fromStartTime: rest.fromStartTime
          toStartTime: rest.toStartTime
          version: rest.version
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: langfuse-observations-mcp
    port: 9090
    transport: http
    description: MCP adapter for langfuse — Observations. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-list-observations-cursor-based
      description: Get a list of observations with cursor-based pagination and flexible field selection.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: langfuse-observations.observationsgetmany
      with:
        fields: tools.fields
        expandMetadata: tools.expandMetadata
        limit: tools.limit
        cursor: tools.cursor
        parseIoAsJson: tools.parseIoAsJson
        name: tools.name
        userId: tools.userId
        type: tools.type
        traceId: tools.traceId
        level: tools.level
        parentObservationId: tools.parentObservationId
        environment: tools.environment
        fromStartTime: tools.fromStartTime
        toStartTime: tools.toStartTime
        version: tools.version
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.