llamaindex · Capability

LlamaIndex LlamaCloud API — Data Sources

LlamaIndex LlamaCloud API — Data Sources. 2 operations. Lead operation: List data sources. Self-contained Naftiko capability covering one Llamaindex business surface.

Run with Naftiko LlamaindexData Sources

What You Can Do

GET
Listdatasources — List data sources
/v1/data-sources
POST
Createdatasource — Create a data source
/v1/data-sources

MCP Tools

list-data-sources

List data sources

read-only idempotent
create-data-source

Create a data source

Capability Spec

llamacloud-data-sources.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: LlamaIndex LlamaCloud API — Data Sources
  description: 'LlamaIndex LlamaCloud API — Data Sources. 2 operations. Lead operation: List data sources. Self-contained
    Naftiko capability covering one Llamaindex business surface.'
  tags:
  - Llamaindex
  - Data Sources
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LLAMAINDEX_API_KEY: LLAMAINDEX_API_KEY
capability:
  consumes:
  - type: http
    namespace: llamacloud-data-sources
    baseUri: https://api.cloud.llamaindex.ai/api/v1
    description: LlamaIndex LlamaCloud API — Data Sources business capability. Self-contained, no shared references.
    resources:
    - name: data-sources
      path: /data-sources
      operations:
      - name: listdatasources
        method: GET
        description: List data sources
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: project_id
          in: query
          type: string
          description: Filter data sources by project identifier.
          required: true
      - name: createdatasource
        method: POST
        description: Create a data source
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.LLAMAINDEX_API_KEY}}'
  exposes:
  - type: rest
    namespace: llamacloud-data-sources-rest
    port: 8080
    description: REST adapter for LlamaIndex LlamaCloud API — Data Sources. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/data-sources
      name: data-sources
      description: REST surface for data-sources.
      operations:
      - method: GET
        name: listdatasources
        description: List data sources
        call: llamacloud-data-sources.listdatasources
        with:
          project_id: rest.project_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createdatasource
        description: Create a data source
        call: llamacloud-data-sources.createdatasource
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: llamacloud-data-sources-mcp
    port: 9090
    transport: http
    description: MCP adapter for LlamaIndex LlamaCloud API — Data Sources. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-data-sources
      description: List data sources
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: llamacloud-data-sources.listdatasources
      with:
        project_id: tools.project_id
      outputParameters:
      - type: object
        mapping: $.
    - name: create-data-source
      description: Create a data source
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: llamacloud-data-sources.createdatasource
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.