Langfuse · Capability

langfuse — LegacyScoreV1

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

Run with Naftiko LangfuseLegacyScoreV1

What You Can Do

POST
Legacyscorev1create — Create a score (supports both trace and session scores)
/v1/api/public/scores
DELETE
Legacyscorev1delete — Delete a score (supports both trace and session scores)
/v1/api/public/scores/{scoreid}

MCP Tools

create-score-supports-both-trace

Create a score (supports both trace and session scores)

delete-score-supports-both-trace

Delete a score (supports both trace and session scores)

idempotent

Capability Spec

langfuse-legacyscorev1.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: langfuse — LegacyScoreV1
  description: 'langfuse — LegacyScoreV1. 2 operations. Lead operation: LegacyScoreV1. Self-contained Naftiko capability covering
    one Langfuse business surface.'
  tags:
  - Langfuse
  - LegacyScoreV1
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LANGFUSE_API_KEY: LANGFUSE_API_KEY
capability:
  consumes:
  - type: http
    namespace: langfuse-legacyscorev1
    baseUri: ''
    description: langfuse — LegacyScoreV1 business capability. Self-contained, no shared references.
    resources:
    - name: api-public-scores
      path: /api/public/scores
      operations:
      - name: legacyscorev1create
        method: POST
        description: Create a score (supports both trace and session scores)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-public-scores-scoreId
      path: /api/public/scores/{scoreId}
      operations:
      - name: legacyscorev1delete
        method: DELETE
        description: Delete a score (supports both trace and session scores)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: scoreId
          in: path
          type: string
          description: The unique langfuse identifier of a score
          required: true
    authentication:
      type: basic
      username: '{{env.LANGFUSE_USER}}'
      password: '{{env.LANGFUSE_PASS}}'
  exposes:
  - type: rest
    namespace: langfuse-legacyscorev1-rest
    port: 8080
    description: REST adapter for langfuse — LegacyScoreV1. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/public/scores
      name: api-public-scores
      description: REST surface for api-public-scores.
      operations:
      - method: POST
        name: legacyscorev1create
        description: Create a score (supports both trace and session scores)
        call: langfuse-legacyscorev1.legacyscorev1create
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/public/scores/{scoreid}
      name: api-public-scores-scoreid
      description: REST surface for api-public-scores-scoreId.
      operations:
      - method: DELETE
        name: legacyscorev1delete
        description: Delete a score (supports both trace and session scores)
        call: langfuse-legacyscorev1.legacyscorev1delete
        with:
          scoreId: rest.scoreId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: langfuse-legacyscorev1-mcp
    port: 9090
    transport: http
    description: MCP adapter for langfuse — LegacyScoreV1. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: create-score-supports-both-trace
      description: Create a score (supports both trace and session scores)
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: langfuse-legacyscorev1.legacyscorev1create
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-score-supports-both-trace
      description: Delete a score (supports both trace and session scores)
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: langfuse-legacyscorev1.legacyscorev1delete
      with:
        scoreId: tools.scoreId
      outputParameters:
      - type: object
        mapping: $.