naftiko: 1.0.0-alpha2 info: label: FactSet Programmatic Environment API — Calculations description: 'FactSet Programmatic Environment API — Calculations. 4 operations. Lead operation: Factset Starts a New Script 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: programmatic-environment-calculations baseUri: https://api.factset.com description: FactSet Programmatic Environment API — Calculations business capability. Self-contained, no shared references. resources: - name: analytics-quant-fpe-v1-calculations path: /analytics/quant/fpe/v1/calculations operations: - name: post method: POST description: Factset Starts a New Script Calculation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: analytics-quant-fpe-v1-calculations-id path: /analytics/quant/fpe/v1/calculations/{id} operations: - name: get method: GET description: Factset Get Calculation Status by Id outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: From url, provided by location header or response body in the calculation start endpoint required: true - name: analytics-quant-fpe-v1-calculations-id-log path: /analytics/quant/fpe/v1/calculations/{id}/log operations: - name: get method: GET description: Factset Get Calculation Log for a Specific Calculation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: From url, provided by location header or response body in the calculation start endpoint required: true - name: analytics-quant-fpe-v1-calculations-id-output path: /analytics/quant/fpe/v1/calculations/{id}/output operations: - name: get method: GET description: Factset Get Calculation Output for a Specific Calculation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: From url, provided by location header or response body in the calculation start endpoint required: true exposes: - type: rest namespace: programmatic-environment-calculations-rest port: 8080 description: REST adapter for FactSet Programmatic Environment API — Calculations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/analytics/quant/fpe/v1/calculations name: analytics-quant-fpe-v1-calculations description: REST surface for analytics-quant-fpe-v1-calculations. operations: - method: POST name: post description: Factset Starts a New Script Calculation call: programmatic-environment-calculations.post with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/analytics/quant/fpe/v1/calculations/{id} name: analytics-quant-fpe-v1-calculations-id description: REST surface for analytics-quant-fpe-v1-calculations-id. operations: - method: GET name: get description: Factset Get Calculation Status by Id call: programmatic-environment-calculations.get with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/analytics/quant/fpe/v1/calculations/{id}/log name: analytics-quant-fpe-v1-calculations-id-log description: REST surface for analytics-quant-fpe-v1-calculations-id-log. operations: - method: GET name: get description: Factset Get Calculation Log for a Specific Calculation call: programmatic-environment-calculations.get with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/analytics/quant/fpe/v1/calculations/{id}/output name: analytics-quant-fpe-v1-calculations-id-output description: REST surface for analytics-quant-fpe-v1-calculations-id-output. operations: - method: GET name: get description: Factset Get Calculation Output for a Specific Calculation call: programmatic-environment-calculations.get with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: programmatic-environment-calculations-mcp port: 9090 transport: http description: MCP adapter for FactSet Programmatic Environment API — Calculations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: factset-starts-new-script-calculation description: Factset Starts a New Script Calculation hints: readOnly: false destructive: false idempotent: false call: programmatic-environment-calculations.post with: body: tools.body outputParameters: - type: object mapping: $. - name: factset-get-calculation-status-id description: Factset Get Calculation Status by Id hints: readOnly: true destructive: false idempotent: true call: programmatic-environment-calculations.get with: id: tools.id outputParameters: - type: object mapping: $. - name: factset-get-calculation-log-specific description: Factset Get Calculation Log for a Specific Calculation hints: readOnly: true destructive: false idempotent: true call: programmatic-environment-calculations.get with: id: tools.id outputParameters: - type: object mapping: $. - name: factset-get-calculation-output-specific description: Factset Get Calculation Output for a Specific Calculation hints: readOnly: true destructive: false idempotent: true call: programmatic-environment-calculations.get with: id: tools.id outputParameters: - type: object mapping: $.