llamaindex · Capability

LlamaIndex LlamaParse API — Parsing

LlamaIndex LlamaParse API — Parsing. 2 operations. Lead operation: Parse a document. Self-contained Naftiko capability covering one Llamaindex business surface.

Run with Naftiko LlamaindexParsing

What You Can Do

POST
Parsedocument — Parse a document
/v1/parse
POST
Parsedocumentupload — Parse a document via file upload
/v1/parse/upload

MCP Tools

parse-document

Parse a document

parse-document-file-upload

Parse a document via file upload

Capability Spec

llamaparse-parsing.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: LlamaIndex LlamaParse API — Parsing
  description: 'LlamaIndex LlamaParse API — Parsing. 2 operations. Lead operation: Parse a document. Self-contained Naftiko
    capability covering one Llamaindex business surface.'
  tags:
  - Llamaindex
  - Parsing
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LLAMAINDEX_API_KEY: LLAMAINDEX_API_KEY
capability:
  consumes:
  - type: http
    namespace: llamaparse-parsing
    baseUri: https://api.cloud.llamaindex.ai/api/v2
    description: LlamaIndex LlamaParse API — Parsing business capability. Self-contained, no shared references.
    resources:
    - name: parse
      path: /parse
      operations:
      - name: parsedocument
        method: POST
        description: Parse a document
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: parse-upload
      path: /parse/upload
      operations:
      - name: parsedocumentupload
        method: POST
        description: Parse a document via file upload
        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: llamaparse-parsing-rest
    port: 8080
    description: REST adapter for LlamaIndex LlamaParse API — Parsing. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/parse
      name: parse
      description: REST surface for parse.
      operations:
      - method: POST
        name: parsedocument
        description: Parse a document
        call: llamaparse-parsing.parsedocument
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/parse/upload
      name: parse-upload
      description: REST surface for parse-upload.
      operations:
      - method: POST
        name: parsedocumentupload
        description: Parse a document via file upload
        call: llamaparse-parsing.parsedocumentupload
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: llamaparse-parsing-mcp
    port: 9090
    transport: http
    description: MCP adapter for LlamaIndex LlamaParse API — Parsing. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: parse-document
      description: Parse a document
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: llamaparse-parsing.parsedocument
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: parse-document-file-upload
      description: Parse a document via file upload
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: llamaparse-parsing.parsedocumentupload
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.