Trioptima · Capability

Trioptima triReduce API — Cycles

Trioptima triReduce API — Cycles. 2 operations. Lead operation: List Compression Cycles. Self-contained Naftiko capability covering one Trioptima business surface.

Run with Naftiko TrioptimaCycles

What You Can Do

GET
Listcycles — List Compression Cycles
/v1/cycles
GET
Getcycle — Get Cycle Details
/v1/cycles/{cycleid}

MCP Tools

list-compression-cycles

List Compression Cycles

read-only idempotent
get-cycle-details

Get Cycle Details

read-only idempotent

Capability Spec

trireduce-cycles.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Trioptima triReduce API — Cycles
  description: 'Trioptima triReduce API — Cycles. 2 operations. Lead operation: List Compression Cycles. Self-contained Naftiko
    capability covering one Trioptima business surface.'
  tags:
  - Trioptima
  - Cycles
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TRIOPTIMA_API_KEY: TRIOPTIMA_API_KEY
capability:
  consumes:
  - type: http
    namespace: trireduce-cycles
    baseUri: https://rates.trireduce.com/api/v1
    description: Trioptima triReduce API — Cycles business capability. Self-contained, no shared references.
    resources:
    - name: cycles
      path: /cycles
      operations:
      - name: listcycles
        method: GET
        description: List Compression Cycles
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: status
          in: query
          type: string
          description: Filter cycles by status
        - name: type
          in: query
          type: string
          description: Filter by cycle type
    - name: cycles-cycleId
      path: /cycles/{cycleId}
      operations:
      - name: getcycle
        method: GET
        description: Get Cycle Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: cycleId
          in: path
          type: string
          description: Unique identifier for the compression cycle
          required: true
    authentication:
      type: bearer
      token: '{{env.TRIOPTIMA_API_KEY}}'
  exposes:
  - type: rest
    namespace: trireduce-cycles-rest
    port: 8080
    description: REST adapter for Trioptima triReduce API — Cycles. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/cycles
      name: cycles
      description: REST surface for cycles.
      operations:
      - method: GET
        name: listcycles
        description: List Compression Cycles
        call: trireduce-cycles.listcycles
        with:
          status: rest.status
          type: rest.type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/cycles/{cycleid}
      name: cycles-cycleid
      description: REST surface for cycles-cycleId.
      operations:
      - method: GET
        name: getcycle
        description: Get Cycle Details
        call: trireduce-cycles.getcycle
        with:
          cycleId: rest.cycleId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: trireduce-cycles-mcp
    port: 9090
    transport: http
    description: MCP adapter for Trioptima triReduce API — Cycles. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-compression-cycles
      description: List Compression Cycles
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: trireduce-cycles.listcycles
      with:
        status: tools.status
        type: tools.type
      outputParameters:
      - type: object
        mapping: $.
    - name: get-cycle-details
      description: Get Cycle Details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: trireduce-cycles.getcycle
      with:
        cycleId: tools.cycleId
      outputParameters:
      - type: object
        mapping: $.