Label Studio · Capability

API Reference — subpackage_projects.subpackage_projects/metrics

API Reference — subpackage_projects.subpackage_projects/metrics. 2 operations. Lead operation: ✨ Get project metrics configuration. Self-contained Naftiko capability covering one Label Studio business surface.

Run with Naftiko Label Studiosubpackage_projects.subpackage_projects/metrics

What You Can Do

GET
Get — ✨ Get project metrics configuration
/v1/api/projects/{id}/metricparam
POST
Update — ✨ Update project metrics configuration
/v1/api/projects/{id}/metricparam

MCP Tools

get-project-metrics-configuration

✨ Get project metrics configuration

read-only idempotent
update-project-metrics-configuration

✨ Update project metrics configuration

Capability Spec

label-studio-subpackage-projects-subpackage-projects-metrics.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Reference — subpackage_projects.subpackage_projects/metrics
  description: 'API Reference — subpackage_projects.subpackage_projects/metrics. 2 operations. Lead operation: ✨ Get project
    metrics configuration. Self-contained Naftiko capability covering one Label Studio business surface.'
  tags:
  - Label Studio
  - subpackage_projects.subpackage_projects/metrics
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LABEL_STUDIO_API_KEY: LABEL_STUDIO_API_KEY
capability:
  consumes:
  - type: http
    namespace: label-studio-subpackage-projects-subpackage-projects-metrics
    baseUri: http://localhost:8000
    description: API Reference — subpackage_projects.subpackage_projects/metrics business capability. Self-contained, no shared
      references.
    resources:
    - name: api-projects-id-metricparam
      path: /api/projects/{id}/metricparam/
      operations:
      - name: get
        method: GET
        description: ✨ Get project metrics configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          required: true
        - name: Authorization
          in: header
          type: string
          description: 'The token (or API key) must be passed as a request header. You can find your user token on the User
            Account page in Label Studio. Example: <br><pre><code class='
          required: true
      - name: update
        method: POST
        description: ✨ Update project metrics configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          required: true
        - name: Authorization
          in: header
          type: string
          description: 'The token (or API key) must be passed as a request header. You can find your user token on the User
            Account page in Label Studio. Example: <br><pre><code class='
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.LABEL_STUDIO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: label-studio-subpackage-projects-subpackage-projects-metrics-rest
    port: 8080
    description: REST adapter for API Reference — subpackage_projects.subpackage_projects/metrics. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/projects/{id}/metricparam
      name: api-projects-id-metricparam
      description: REST surface for api-projects-id-metricparam.
      operations:
      - method: GET
        name: get
        description: ✨ Get project metrics configuration
        call: label-studio-subpackage-projects-subpackage-projects-metrics.get
        with:
          id: rest.id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: update
        description: ✨ Update project metrics configuration
        call: label-studio-subpackage-projects-subpackage-projects-metrics.update
        with:
          id: rest.id
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: label-studio-subpackage-projects-subpackage-projects-metrics-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Reference — subpackage_projects.subpackage_projects/metrics. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: get-project-metrics-configuration
      description: ✨ Get project metrics configuration
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: label-studio-subpackage-projects-subpackage-projects-metrics.get
      with:
        id: tools.id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: update-project-metrics-configuration
      description: ✨ Update project metrics configuration
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: label-studio-subpackage-projects-subpackage-projects-metrics.update
      with:
        id: tools.id
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.