naftiko: 1.0.0-alpha2 info: label: Upvest Investment API — Liquidations description: 'Upvest Investment API — Liquidations. 2 operations. Lead operation: Upvest Create a liquidation. Self-contained Naftiko capability covering one Upvest business surface.' tags: - Upvest - Liquidations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: UPVEST_API_KEY: UPVEST_API_KEY capability: consumes: - type: http namespace: investment-liquidations baseUri: https://api.upvest.co description: Upvest Investment API — Liquidations business capability. Self-contained, no shared references. resources: - name: accounts-account_id-liquidations path: /accounts/{account_id}/liquidations operations: - name: createliquidation method: POST description: Upvest Create a liquidation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: listliquidations method: GET description: Upvest List liquidations outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.UPVEST_API_KEY}}' exposes: - type: rest namespace: investment-liquidations-rest port: 8080 description: REST adapter for Upvest Investment API — Liquidations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accounts/{account-id}/liquidations name: accounts-account-id-liquidations description: REST surface for accounts-account_id-liquidations. operations: - method: POST name: createliquidation description: Upvest Create a liquidation call: investment-liquidations.createliquidation with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: listliquidations description: Upvest List liquidations call: investment-liquidations.listliquidations outputParameters: - type: object mapping: $. - type: mcp namespace: investment-liquidations-mcp port: 9090 transport: http description: MCP adapter for Upvest Investment API — Liquidations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: upvest-create-liquidation description: Upvest Create a liquidation hints: readOnly: false destructive: false idempotent: false call: investment-liquidations.createliquidation with: body: tools.body outputParameters: - type: object mapping: $. - name: upvest-list-liquidations description: Upvest List liquidations hints: readOnly: true destructive: false idempotent: true call: investment-liquidations.listliquidations outputParameters: - type: object mapping: $.