Amazon Kendra · Capability

Amazon Kendra API — Queries

Amazon Kendra API — Queries. 2 operations. Lead operation: Amazon Kendra Query. Self-contained Naftiko capability covering one Amazon Kendra business surface.

Run with Naftiko Amazon KendraQueries

What You Can Do

POST
Query — Amazon Kendra Query
/v1/indexes/{indexid}/query
POST
Retrieve — Amazon Kendra Retrieve
/v1/indexes/{indexid}/retrieve

MCP Tools

amazon-kendra-query

Amazon Kendra Query

read-only
amazon-kendra-retrieve

Amazon Kendra Retrieve

read-only

Capability Spec

amazon-kendra-queries.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Amazon Kendra API — Queries
  description: 'Amazon Kendra API — Queries. 2 operations. Lead operation: Amazon Kendra Query. Self-contained Naftiko capability
    covering one Amazon Kendra business surface.'
  tags:
  - Amazon Kendra
  - Queries
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMAZON_KENDRA_API_KEY: AMAZON_KENDRA_API_KEY
capability:
  consumes:
  - type: http
    namespace: amazon-kendra-queries
    baseUri: https://kendra.{region}.amazonaws.com
    description: Amazon Kendra API — Queries business capability. Self-contained, no shared references.
    resources:
    - name: indexes-IndexId-query
      path: /indexes/{IndexId}/query
      operations:
      - name: query
        method: POST
        description: Amazon Kendra Query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: IndexId
          in: path
          type: string
          description: The identifier of the index.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: indexes-IndexId-retrieve
      path: /indexes/{IndexId}/retrieve
      operations:
      - name: retrieve
        method: POST
        description: Amazon Kendra Retrieve
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: IndexId
          in: path
          type: string
          description: The identifier of the index.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.AMAZON_KENDRA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: amazon-kendra-queries-rest
    port: 8080
    description: REST adapter for Amazon Kendra API — Queries. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/indexes/{indexid}/query
      name: indexes-indexid-query
      description: REST surface for indexes-IndexId-query.
      operations:
      - method: POST
        name: query
        description: Amazon Kendra Query
        call: amazon-kendra-queries.query
        with:
          IndexId: rest.IndexId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/indexes/{indexid}/retrieve
      name: indexes-indexid-retrieve
      description: REST surface for indexes-IndexId-retrieve.
      operations:
      - method: POST
        name: retrieve
        description: Amazon Kendra Retrieve
        call: amazon-kendra-queries.retrieve
        with:
          IndexId: rest.IndexId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: amazon-kendra-queries-mcp
    port: 9090
    transport: http
    description: MCP adapter for Amazon Kendra API — Queries. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: amazon-kendra-query
      description: Amazon Kendra Query
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: amazon-kendra-queries.query
      with:
        IndexId: tools.IndexId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-kendra-retrieve
      description: Amazon Kendra Retrieve
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: amazon-kendra-queries.retrieve
      with:
        IndexId: tools.IndexId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.