Factset · Capability

Factset PA Engine API — Calculations

Factset PA Engine API — Calculations. 7 operations. Lead operation: Factset Create and Run Pa Calculation. Self-contained Naftiko capability covering one Factset business surface.

Run with Naftiko FactsetCalculations

What You Can Do

POST
Postandcalculate — Factset Create and Run Pa Calculation
/v1/analytics/engines/pa/v3/calculations
GET
Getallcalculations — Factset Get All Calculations
/v1/analytics/engines/pa/v3/calculations
PUT
Putandcalculate — Factset Create or Update Pa Calculation and Run It.
/v1/analytics/engines/pa/v3/calculations/{id}
GET
Getcalculationparameters — Factset Get Pa Calculation Parameters by Id
/v1/analytics/engines/pa/v3/calculations/{id}
DELETE
Cancelcalculationbyid — Factset Cancel Pa Calculation by Id
/v1/analytics/engines/pa/v3/calculations/{id}
GET
Getcalculationstatusbyid — Factset Get Pa Calculation Status by Id
/v1/analytics/engines/pa/v3/calculations/{id}/status
GET
Getcalculationunitresultbyid — Factset Get Pa Calculation Result by Id
/v1/analytics/engines/pa/v3/calculations/{id}/units/{unitid}/result

MCP Tools

factset-create-and-run-pa

Factset Create and Run Pa Calculation

factset-get-all-calculations

Factset Get All Calculations

read-only idempotent
factset-create-update-pa-calculation

Factset Create or Update Pa Calculation and Run It.

idempotent
factset-get-pa-calculation-parameters

Factset Get Pa Calculation Parameters by Id

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

Factset Cancel Pa Calculation by Id

idempotent
factset-get-pa-calculation-status

Factset Get Pa Calculation Status by Id

read-only idempotent
factset-get-pa-calculation-result

Factset Get Pa Calculation Result by Id

read-only idempotent

Capability Spec

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