Factset · Capability

FactSet Global Prices API — Returns

FactSet Global Prices API — Returns. 2 operations. Lead operation: Factset Gets Returns for a List of `ids` as of Given Date Range.. Self-contained Naftiko capability covering one Factset business surface.

Run with Naftiko FactsetReturns

What You Can Do

GET
Getreturns — Factset Gets Returns for a List of `ids` as of Given Date Range.
/v1/factset-global-prices/v1/returns
POST
Getreturnsforlist — Factset Gets Returns for a List of `ids` as of Given Date Range.
/v1/factset-global-prices/v1/returns

MCP Tools

factset-gets-returns-list-ids

Factset Gets Returns for a List of `ids` as of Given Date Range.

read-only idempotent
factset-gets-returns-list-ids-2

Factset Gets Returns for a List of `ids` as of Given Date Range.

read-only

Capability Spec

global-prices-returns.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: FactSet Global Prices API — Returns
  description: 'FactSet Global Prices API — Returns. 2 operations. Lead operation: Factset Gets Returns for a List of `ids`
    as of Given Date Range.. Self-contained Naftiko capability covering one Factset business surface.'
  tags:
  - Factset
  - Returns
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FACTSET_API_KEY: FACTSET_API_KEY
capability:
  consumes:
  - type: http
    namespace: global-prices-returns
    baseUri: https://api.factset.com/content
    description: FactSet Global Prices API — Returns business capability. Self-contained, no shared references.
    resources:
    - name: factset-global-prices-v1-returns
      path: /factset-global-prices/v1/returns
      operations:
      - name: getreturns
        method: GET
        description: Factset Gets Returns for a List of `ids` as of Given Date Range.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getreturnsforlist
        method: POST
        description: Factset Gets Returns for a List of `ids` as of Given Date Range.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: basic
      username: '{{env.FACTSET_USER}}'
      password: '{{env.FACTSET_PASS}}'
  exposes:
  - type: rest
    namespace: global-prices-returns-rest
    port: 8080
    description: REST adapter for FactSet Global Prices API — Returns. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/factset-global-prices/v1/returns
      name: factset-global-prices-v1-returns
      description: REST surface for factset-global-prices-v1-returns.
      operations:
      - method: GET
        name: getreturns
        description: Factset Gets Returns for a List of `ids` as of Given Date Range.
        call: global-prices-returns.getreturns
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: getreturnsforlist
        description: Factset Gets Returns for a List of `ids` as of Given Date Range.
        call: global-prices-returns.getreturnsforlist
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: global-prices-returns-mcp
    port: 9090
    transport: http
    description: MCP adapter for FactSet Global Prices API — Returns. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: factset-gets-returns-list-ids
      description: Factset Gets Returns for a List of `ids` as of Given Date Range.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: global-prices-returns.getreturns
      outputParameters:
      - type: object
        mapping: $.
    - name: factset-gets-returns-list-ids-2
      description: Factset Gets Returns for a List of `ids` as of Given Date Range.
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: global-prices-returns.getreturnsforlist
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.