LabVantage Solutions · Capability

LabVantage LIMS API — Tests

LabVantage LIMS API — Tests. 2 operations. Lead operation: List tests for a sample. Self-contained Naftiko capability covering one Labvantage business surface.

Run with Naftiko LabvantageTests

What You Can Do

GET
Listsampletests — List tests for a sample
/v1/samples/{sampleid}/tests
POST
Requesttest — Request a test
/v1/samples/{sampleid}/tests

MCP Tools

list-tests-sample

List tests for a sample

read-only idempotent
request-test

Request a test

Capability Spec

lims-tests.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: LabVantage LIMS API — Tests
  description: 'LabVantage LIMS API — Tests. 2 operations. Lead operation: List tests for a sample. Self-contained Naftiko
    capability covering one Labvantage business surface.'
  tags:
  - Labvantage
  - Tests
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LABVANTAGE_API_KEY: LABVANTAGE_API_KEY
capability:
  consumes:
  - type: http
    namespace: lims-tests
    baseUri: https://{instance}.labvantage.example.com/labvantage/rest/v1
    description: LabVantage LIMS API — Tests business capability. Self-contained, no shared references.
    resources:
    - name: samples-sampleId-tests
      path: /samples/{sampleId}/tests
      operations:
      - name: listsampletests
        method: GET
        description: List tests for a sample
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sampleId
          in: path
          type: string
          required: true
        - name: status
          in: query
          type: string
      - name: requesttest
        method: POST
        description: Request a test
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sampleId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.LABVANTAGE_API_KEY}}'
  exposes:
  - type: rest
    namespace: lims-tests-rest
    port: 8080
    description: REST adapter for LabVantage LIMS API — Tests. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/samples/{sampleid}/tests
      name: samples-sampleid-tests
      description: REST surface for samples-sampleId-tests.
      operations:
      - method: GET
        name: listsampletests
        description: List tests for a sample
        call: lims-tests.listsampletests
        with:
          sampleId: rest.sampleId
          status: rest.status
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: requesttest
        description: Request a test
        call: lims-tests.requesttest
        with:
          sampleId: rest.sampleId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lims-tests-mcp
    port: 9090
    transport: http
    description: MCP adapter for LabVantage LIMS API — Tests. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-tests-sample
      description: List tests for a sample
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lims-tests.listsampletests
      with:
        sampleId: tools.sampleId
        status: tools.status
      outputParameters:
      - type: object
        mapping: $.
    - name: request-test
      description: Request a test
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lims-tests.requesttest
      with:
        sampleId: tools.sampleId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.