Trioptima · Capability

Trioptima triReduce API — Risk

Trioptima triReduce API — Risk. 2 operations. Lead operation: Get Cycle Risk Data. Self-contained Naftiko capability covering one Trioptima business surface.

Run with Naftiko TrioptimaRisk

What You Can Do

GET
Getcyclerisk — Get Cycle Risk Data
/v1/cycles/{cycleid}/risk
POST
Submitcyclerisk — Submit Risk Data for Cycle
/v1/cycles/{cycleid}/risk

MCP Tools

get-cycle-risk-data

Get Cycle Risk Data

read-only idempotent
submit-risk-data-cycle

Submit Risk Data for Cycle

Capability Spec

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