naftiko: 1.0.0-alpha2 info: label: FactSet Vault API — Calculations description: 'FactSet Vault API — Calculations. 7 operations. Lead operation: Factset Create and Run Vault Calculation. Self-contained Naftiko capability covering one Factset business surface.' tags: - Factset - Calculations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FACTSET_API_KEY: FACTSET_API_KEY capability: consumes: - type: http namespace: vault-calculations baseUri: https://api.factset.com description: FactSet Vault API — Calculations business capability. Self-contained, no shared references. resources: - name: analytics-engines-vault-v3-calculations path: /analytics/engines/vault/v3/calculations operations: - name: postandcalculate method: POST description: Factset Create and Run Vault Calculation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: X-FactSet-Api-Long-Running-Deadline in: header type: integer description: Long running deadline in seconds when only one unit is passed in the POST body. - name: Cache-Control in: header type: string description: Standard HTTP header. Accepts max-stale. - name: body in: body type: object description: Request body (JSON). required: false - name: getallcalculations method: GET description: Factset Get All Calculations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: pageNumber in: query type: integer - name: analytics-engines-vault-v3-calculations-id path: /analytics/engines/vault/v3/calculations/{id} operations: - name: putandcalculate method: PUT description: Factset Create or Update Vault Calculation and Run It. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: from url, provided from the location header in the Create and Run Vault calculation endpoint required: true - name: X-FactSet-Api-Long-Running-Deadline in: header type: integer description: Long running deadline in seconds when only one unit is passed in the PUT body. - name: Cache-Control in: header type: string description: Standard HTTP header. Accepts max-stale. - name: body in: body type: object description: Request body (JSON). required: false - name: getcalculationparameters method: GET description: Factset Get Vault Calculation Parameters by Id outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: from url, provided from the location header in the Create and Run Vault calculation endpoint required: true - name: cancelcalculationbyid method: DELETE description: Factset Cancel Vault Calculation by Id outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: from url, provided from the location header in the Create and Run Vault calculation endpoint required: true - name: analytics-engines-vault-v3-calculations-id-status path: /analytics/engines/vault/v3/calculations/{id}/status operations: - name: getcalculationstatusbyid method: GET description: Factset Get Vault Calculation Status by Id outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: from url, provided from the location header in the Create and Run Vault calculation endpoint required: true - name: analytics-engines-vault-v3-calculations-id-units-unitId-result path: /analytics/engines/vault/v3/calculations/{id}/units/{unitId}/result operations: - name: getcalculationunitresultbyid method: GET description: Factset Get Vault Calculation Result by Id outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: from url, provided from the location header in the Get Vault calculation status by id endpoint required: true - name: unitId in: path type: string description: from url, provided from the location header in the Get Vault calculation status by id endpoint required: true authentication: type: bearer token: '{{env.FACTSET_API_KEY}}' exposes: - type: rest namespace: vault-calculations-rest port: 8080 description: REST adapter for FactSet Vault API — Calculations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/analytics/engines/vault/v3/calculations name: analytics-engines-vault-v3-calculations description: REST surface for analytics-engines-vault-v3-calculations. operations: - method: POST name: postandcalculate description: Factset Create and Run Vault Calculation call: vault-calculations.postandcalculate with: X-FactSet-Api-Long-Running-Deadline: rest.X-FactSet-Api-Long-Running-Deadline Cache-Control: rest.Cache-Control body: rest.body outputParameters: - type: object mapping: $. - method: GET name: getallcalculations description: Factset Get All Calculations call: vault-calculations.getallcalculations with: pageNumber: rest.pageNumber outputParameters: - type: object mapping: $. - path: /v1/analytics/engines/vault/v3/calculations/{id} name: analytics-engines-vault-v3-calculations-id description: REST surface for analytics-engines-vault-v3-calculations-id. operations: - method: PUT name: putandcalculate description: Factset Create or Update Vault Calculation and Run It. call: vault-calculations.putandcalculate with: id: rest.id X-FactSet-Api-Long-Running-Deadline: rest.X-FactSet-Api-Long-Running-Deadline Cache-Control: rest.Cache-Control body: rest.body outputParameters: - type: object mapping: $. - method: GET name: getcalculationparameters description: Factset Get Vault Calculation Parameters by Id call: vault-calculations.getcalculationparameters with: id: rest.id outputParameters: - type: object mapping: $. - method: DELETE name: cancelcalculationbyid description: Factset Cancel Vault Calculation by Id call: vault-calculations.cancelcalculationbyid with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/analytics/engines/vault/v3/calculations/{id}/status name: analytics-engines-vault-v3-calculations-id-status description: REST surface for analytics-engines-vault-v3-calculations-id-status. operations: - method: GET name: getcalculationstatusbyid description: Factset Get Vault Calculation Status by Id call: vault-calculations.getcalculationstatusbyid with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/analytics/engines/vault/v3/calculations/{id}/units/{unitid}/result name: analytics-engines-vault-v3-calculations-id-units-unitid-result description: REST surface for analytics-engines-vault-v3-calculations-id-units-unitId-result. operations: - method: GET name: getcalculationunitresultbyid description: Factset Get Vault Calculation Result by Id call: vault-calculations.getcalculationunitresultbyid with: id: rest.id unitId: rest.unitId outputParameters: - type: object mapping: $. - type: mcp namespace: vault-calculations-mcp port: 9090 transport: http description: MCP adapter for FactSet Vault API — Calculations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: factset-create-and-run-vault description: Factset Create and Run Vault Calculation hints: readOnly: false destructive: false idempotent: false call: vault-calculations.postandcalculate with: X-FactSet-Api-Long-Running-Deadline: tools.X-FactSet-Api-Long-Running-Deadline Cache-Control: tools.Cache-Control body: tools.body outputParameters: - type: object mapping: $. - name: factset-get-all-calculations description: Factset Get All Calculations hints: readOnly: true destructive: false idempotent: true call: vault-calculations.getallcalculations with: pageNumber: tools.pageNumber outputParameters: - type: object mapping: $. - name: factset-create-update-vault-calculation description: Factset Create or Update Vault Calculation and Run It. hints: readOnly: false destructive: false idempotent: true call: vault-calculations.putandcalculate with: id: tools.id X-FactSet-Api-Long-Running-Deadline: tools.X-FactSet-Api-Long-Running-Deadline Cache-Control: tools.Cache-Control body: tools.body outputParameters: - type: object mapping: $. - name: factset-get-vault-calculation-parameters description: Factset Get Vault Calculation Parameters by Id hints: readOnly: true destructive: false idempotent: true call: vault-calculations.getcalculationparameters with: id: tools.id outputParameters: - type: object mapping: $. - name: factset-cancel-vault-calculation-id description: Factset Cancel Vault Calculation by Id hints: readOnly: false destructive: true idempotent: true call: vault-calculations.cancelcalculationbyid with: id: tools.id outputParameters: - type: object mapping: $. - name: factset-get-vault-calculation-status description: Factset Get Vault Calculation Status by Id hints: readOnly: true destructive: false idempotent: true call: vault-calculations.getcalculationstatusbyid with: id: tools.id outputParameters: - type: object mapping: $. - name: factset-get-vault-calculation-result description: Factset Get Vault Calculation Result by Id hints: readOnly: true destructive: false idempotent: true call: vault-calculations.getcalculationunitresultbyid with: id: tools.id unitId: tools.unitId outputParameters: - type: object mapping: $.