Factset · Capability

FactSet Programmatic Environment API — Quant

FactSet Programmatic Environment API — Quant. 6 operations. Lead operation: Factset Starts a New Script Calculation. Self-contained Naftiko capability covering one Factset business surface.

Run with Naftiko FactsetQuant

What You Can Do

POST
Post — Factset Starts a New Script Calculation
/v1/analytics/quant/fpe/v1/calculations
GET
Get — Factset Get Calculation Status by Id
/v1/analytics/quant/fpe/v1/calculations/{id}
GET
Get — Factset Get Calculation Log for a Specific Calculation
/v1/analytics/quant/fpe/v1/calculations/{id}/log
GET
Get — Factset Get Calculation Output for a Specific Calculation
/v1/analytics/quant/fpe/v1/calculations/{id}/output
GET
Get — Factset Get Upload Status by Id
/v1/analytics/quant/fpe/v1/files/uploads/{id}
POST
Post — Factset Starts a File Upload
/v1/analytics/quant/fpe/v1/files/{server}/{file}

MCP Tools

factset-starts-new-script-calculation

Factset Starts a New Script Calculation

factset-get-calculation-status-id

Factset Get Calculation Status by Id

read-only idempotent
factset-get-calculation-log-specific

Factset Get Calculation Log for a Specific Calculation

read-only idempotent
factset-get-calculation-output-specific

Factset Get Calculation Output for a Specific Calculation

read-only idempotent
factset-get-upload-status-id

Factset Get Upload Status by Id

read-only idempotent
factset-starts-file-upload

Factset Starts a File Upload

Capability Spec

programmatic-environment-quant.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: FactSet Programmatic Environment API — Quant
  description: 'FactSet Programmatic Environment API — Quant. 6 operations. Lead operation: Factset Starts a New Script Calculation.
    Self-contained Naftiko capability covering one Factset business surface.'
  tags:
  - Factset
  - Quant
  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-quant
    baseUri: https://api.factset.com
    description: FactSet Programmatic Environment API — Quant 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
    - name: analytics-quant-fpe-v1-files-uploads-id
      path: /analytics/quant/fpe/v1/files/uploads/{id}
      operations:
      - name: get
        method: GET
        description: Factset Get Upload 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 upload start endpoint
          required: true
    - name: analytics-quant-fpe-v1-files-server-file
      path: /analytics/quant/fpe/v1/files/{server}/{file}
      operations:
      - name: post
        method: POST
        description: Factset Starts a File Upload
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: server
          in: path
          type: string
          description: The server to upload the file to. Either `interactive` or `batch`.
          required: true
        - name: file
          in: path
          type: string
          description: The file name to upload the file to. Existing directory can be specified.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: programmatic-environment-quant-rest
    port: 8080
    description: REST adapter for FactSet Programmatic Environment API — Quant. 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-quant.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-quant.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-quant.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-quant.get
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/analytics/quant/fpe/v1/files/uploads/{id}
      name: analytics-quant-fpe-v1-files-uploads-id
      description: REST surface for analytics-quant-fpe-v1-files-uploads-id.
      operations:
      - method: GET
        name: get
        description: Factset Get Upload Status by Id
        call: programmatic-environment-quant.get
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/analytics/quant/fpe/v1/files/{server}/{file}
      name: analytics-quant-fpe-v1-files-server-file
      description: REST surface for analytics-quant-fpe-v1-files-server-file.
      operations:
      - method: POST
        name: post
        description: Factset Starts a File Upload
        call: programmatic-environment-quant.post
        with:
          server: rest.server
          file: rest.file
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: programmatic-environment-quant-mcp
    port: 9090
    transport: http
    description: MCP adapter for FactSet Programmatic Environment API — Quant. 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-quant.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-quant.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-quant.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-quant.get
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: factset-get-upload-status-id
      description: Factset Get Upload Status by Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: programmatic-environment-quant.get
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: factset-starts-file-upload
      description: Factset Starts a File Upload
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: programmatic-environment-quant.post
      with:
        server: tools.server
        file: tools.file
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.