Factset · Capability

FactSet Quant Engine API — Calculations

FactSet Quant Engine API — Calculations. 8 operations. Lead operation: Factset Create and Run Quant Engine Calculation. Self-contained Naftiko capability covering one Factset business surface.

Run with Naftiko FactsetCalculations

What You Can Do

POST
Postandcalculate — Factset Create and Run Quant Engine Calculation
/v1/calculations
GET
Getallcalculations — Factset Get All Calculations
/v1/calculations
PUT
Putandcalculate — Factset Create or Update Quant Engine Calculation and Run It.
/v1/calculations/{id}
GET
Getcalculationparameters — Factset Get Quant Engine Calculation Parameters by Id
/v1/calculations/{id}
DELETE
Cancelcalculationbyid — Factset Cancel Quant Calculation by Id
/v1/calculations/{id}
GET
Getcalculationstatusbyid — Factset Get Quant Engine Calculation Status by Id
/v1/calculations/{id}/status
GET
Getcalculationunitinfobyid — Factset Get Quant Engine Calculation Metadata Information by Id
/v1/calculations/{id}/units/{unitid}/info
GET
Getcalculationunitresultbyid — Factset Get Quant Engine Calculation Result by Id
/v1/calculations/{id}/units/{unitid}/result

MCP Tools

factset-create-and-run-quant

Factset Create and Run Quant Engine Calculation

factset-get-all-calculations

Factset Get All Calculations

read-only idempotent
factset-create-update-quant-engine

Factset Create or Update Quant Engine Calculation and Run It.

idempotent
factset-get-quant-engine-calculation

Factset Get Quant Engine Calculation Parameters by Id

read-only idempotent
factset-cancel-quant-calculation-id

Factset Cancel Quant Calculation by Id

idempotent
factset-get-quant-engine-calculation-2

Factset Get Quant Engine Calculation Status by Id

read-only idempotent
factset-get-quant-engine-calculation-3

Factset Get Quant Engine Calculation Metadata Information by Id

read-only idempotent
factset-get-quant-engine-calculation-4

Factset Get Quant Engine Calculation Result by Id

read-only idempotent

Capability Spec

quant-engine-calculations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: FactSet Quant Engine API — Calculations
  description: 'FactSet Quant Engine API — Calculations. 8 operations. Lead operation: Factset Create and Run Quant Engine
    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: quant-engine-calculations
    baseUri: https://api.factset.com/analytics/engines/quant/v3
    description: FactSet Quant Engine API — Calculations business capability. Self-contained, no shared references.
    resources:
    - name: calculations
      path: /calculations
      operations:
      - name: postandcalculate
        method: POST
        description: Factset Create and Run Quant Engine Calculation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Cache-Control
          in: header
          type: string
          description: Standard HTTP header.  Accepts no-store, max-age, 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: calculations-id
      path: /calculations/{id}
      operations:
      - name: putandcalculate
        method: PUT
        description: Factset Create or Update Quant Engine 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 Quant Engine calculation endpoint
          required: true
        - name: Cache-Control
          in: header
          type: string
          description: Standard HTTP header.  Accepts no-store, max-age, max-stale.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: getcalculationparameters
        method: GET
        description: Factset Get Quant Engine 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 Quant Engine calculation endpoint
          required: true
      - name: cancelcalculationbyid
        method: DELETE
        description: Factset Cancel Quant 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 Quant calculation endpoint
          required: true
    - name: calculations-id-status
      path: /calculations/{id}/status
      operations:
      - name: getcalculationstatusbyid
        method: GET
        description: Factset Get Quant Engine 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 Quant Engine calculation endpoint
          required: true
    - name: calculations-id-units-unitId-info
      path: /calculations/{id}/units/{unitId}/info
      operations:
      - name: getcalculationunitinfobyid
        method: GET
        description: Factset Get Quant Engine Calculation Metadata Information 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 Quant calculation status by id endpoint
          required: true
        - name: unitId
          in: path
          type: string
          description: from url, provided from the location header in the Get Quant calculation status by id endpoint
          required: true
    - name: calculations-id-units-unitId-result
      path: /calculations/{id}/units/{unitId}/result
      operations:
      - name: getcalculationunitresultbyid
        method: GET
        description: Factset Get Quant Engine 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 Quant Engine calculation status by id endpoint
          required: true
        - name: unitId
          in: path
          type: string
          description: from url, provided from the location header in the Get Quant Engine calculation status by id endpoint
          required: true
    authentication:
      type: bearer
      token: '{{env.FACTSET_API_KEY}}'
  exposes:
  - type: rest
    namespace: quant-engine-calculations-rest
    port: 8080
    description: REST adapter for FactSet Quant Engine API — Calculations. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/calculations
      name: calculations
      description: REST surface for calculations.
      operations:
      - method: POST
        name: postandcalculate
        description: Factset Create and Run Quant Engine Calculation
        call: quant-engine-calculations.postandcalculate
        with:
          Cache-Control: rest.Cache-Control
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getallcalculations
        description: Factset Get All Calculations
        call: quant-engine-calculations.getallcalculations
        with:
          pageNumber: rest.pageNumber
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calculations/{id}
      name: calculations-id
      description: REST surface for calculations-id.
      operations:
      - method: PUT
        name: putandcalculate
        description: Factset Create or Update Quant Engine Calculation and Run It.
        call: quant-engine-calculations.putandcalculate
        with:
          id: rest.id
          Cache-Control: rest.Cache-Control
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getcalculationparameters
        description: Factset Get Quant Engine Calculation Parameters by Id
        call: quant-engine-calculations.getcalculationparameters
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: cancelcalculationbyid
        description: Factset Cancel Quant Calculation by Id
        call: quant-engine-calculations.cancelcalculationbyid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calculations/{id}/status
      name: calculations-id-status
      description: REST surface for calculations-id-status.
      operations:
      - method: GET
        name: getcalculationstatusbyid
        description: Factset Get Quant Engine Calculation Status by Id
        call: quant-engine-calculations.getcalculationstatusbyid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calculations/{id}/units/{unitid}/info
      name: calculations-id-units-unitid-info
      description: REST surface for calculations-id-units-unitId-info.
      operations:
      - method: GET
        name: getcalculationunitinfobyid
        description: Factset Get Quant Engine Calculation Metadata Information by Id
        call: quant-engine-calculations.getcalculationunitinfobyid
        with:
          id: rest.id
          unitId: rest.unitId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calculations/{id}/units/{unitid}/result
      name: calculations-id-units-unitid-result
      description: REST surface for calculations-id-units-unitId-result.
      operations:
      - method: GET
        name: getcalculationunitresultbyid
        description: Factset Get Quant Engine Calculation Result by Id
        call: quant-engine-calculations.getcalculationunitresultbyid
        with:
          id: rest.id
          unitId: rest.unitId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: quant-engine-calculations-mcp
    port: 9090
    transport: http
    description: MCP adapter for FactSet Quant Engine API — Calculations. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: factset-create-and-run-quant
      description: Factset Create and Run Quant Engine Calculation
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: quant-engine-calculations.postandcalculate
      with:
        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: quant-engine-calculations.getallcalculations
      with:
        pageNumber: tools.pageNumber
      outputParameters:
      - type: object
        mapping: $.
    - name: factset-create-update-quant-engine
      description: Factset Create or Update Quant Engine Calculation and Run It.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: quant-engine-calculations.putandcalculate
      with:
        id: tools.id
        Cache-Control: tools.Cache-Control
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: factset-get-quant-engine-calculation
      description: Factset Get Quant Engine Calculation Parameters by Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: quant-engine-calculations.getcalculationparameters
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: factset-cancel-quant-calculation-id
      description: Factset Cancel Quant Calculation by Id
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: quant-engine-calculations.cancelcalculationbyid
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: factset-get-quant-engine-calculation-2
      description: Factset Get Quant Engine Calculation Status by Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: quant-engine-calculations.getcalculationstatusbyid
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: factset-get-quant-engine-calculation-3
      description: Factset Get Quant Engine Calculation Metadata Information by Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: quant-engine-calculations.getcalculationunitinfobyid
      with:
        id: tools.id
        unitId: tools.unitId
      outputParameters:
      - type: object
        mapping: $.
    - name: factset-get-quant-engine-calculation-4
      description: Factset Get Quant Engine Calculation Result by Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: quant-engine-calculations.getcalculationunitresultbyid
      with:
        id: tools.id
        unitId: tools.unitId
      outputParameters:
      - type: object
        mapping: $.