naftiko: 1.0.0-alpha2 info: label: FactSet SPAR Engine API — Units description: 'FactSet SPAR Engine API — Units. 1 operations. Lead operation: Factset Get Spar Calculation Result by Id. Self-contained Naftiko capability covering one Factset business surface.' tags: - Factset - Units created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FACTSET_API_KEY: FACTSET_API_KEY capability: consumes: - type: http namespace: spar-engine-units baseUri: https://api.factset.com description: FactSet SPAR Engine API — Units business capability. Self-contained, no shared references. resources: - name: analytics-engines-spar-v3-calculations-id-units-unitId-result path: /analytics/engines/spar/v3/calculations/{id}/units/{unitId}/result operations: - name: getcalculationunitresultbyid method: GET description: Factset Get Spar 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 SPAR calculation status by id endpoint required: true - name: unitId in: path type: string description: from url, provided from the location header in the Get SPAR calculation status by id endpoint required: true authentication: type: bearer token: '{{env.FACTSET_API_KEY}}' exposes: - type: rest namespace: spar-engine-units-rest port: 8080 description: REST adapter for FactSet SPAR Engine API — Units. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/analytics/engines/spar/v3/calculations/{id}/units/{unitid}/result name: analytics-engines-spar-v3-calculations-id-units-unitid-result description: REST surface for analytics-engines-spar-v3-calculations-id-units-unitId-result. operations: - method: GET name: getcalculationunitresultbyid description: Factset Get Spar Calculation Result by Id call: spar-engine-units.getcalculationunitresultbyid with: id: rest.id unitId: rest.unitId outputParameters: - type: object mapping: $. - type: mcp namespace: spar-engine-units-mcp port: 9090 transport: http description: MCP adapter for FactSet SPAR Engine API — Units. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: factset-get-spar-calculation-result description: Factset Get Spar Calculation Result by Id hints: readOnly: true destructive: false idempotent: true call: spar-engine-units.getcalculationunitresultbyid with: id: tools.id unitId: tools.unitId outputParameters: - type: object mapping: $.