Amazon Q · Capability

Amazon Q Business API — Indices

Amazon Q Business API — Indices. 2 operations. Lead operation: List Indices. Self-contained Naftiko capability covering one Amazon Q business surface.

Run with Naftiko Amazon QIndices

What You Can Do

GET
Listindices — List Indices
/v1/applications/{applicationid}/indices
POST
Createindex — Create Index
/v1/applications/{applicationid}/indices

MCP Tools

list-indices

List Indices

read-only idempotent
create-index

Create Index

Capability Spec

amazon-q-indices.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Amazon Q Business API — Indices
  description: 'Amazon Q Business API — Indices. 2 operations. Lead operation: List Indices. Self-contained Naftiko capability
    covering one Amazon Q business surface.'
  tags:
  - Amazon Q
  - Indices
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMAZON_Q_API_KEY: AMAZON_Q_API_KEY
capability:
  consumes:
  - type: http
    namespace: amazon-q-indices
    baseUri: https://qbusiness.{region}.amazonaws.com
    description: Amazon Q Business API — Indices business capability. Self-contained, no shared references.
    resources:
    - name: applications-applicationId-indices
      path: /applications/{applicationId}/indices
      operations:
      - name: listindices
        method: GET
        description: List Indices
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: applicationId
          in: path
          type: string
          required: true
      - name: createindex
        method: POST
        description: Create Index
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: applicationId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.AMAZON_Q_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: amazon-q-indices-rest
    port: 8080
    description: REST adapter for Amazon Q Business API — Indices. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/applications/{applicationid}/indices
      name: applications-applicationid-indices
      description: REST surface for applications-applicationId-indices.
      operations:
      - method: GET
        name: listindices
        description: List Indices
        call: amazon-q-indices.listindices
        with:
          applicationId: rest.applicationId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createindex
        description: Create Index
        call: amazon-q-indices.createindex
        with:
          applicationId: rest.applicationId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: amazon-q-indices-mcp
    port: 9090
    transport: http
    description: MCP adapter for Amazon Q Business API — Indices. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-indices
      description: List Indices
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: amazon-q-indices.listindices
      with:
        applicationId: tools.applicationId
      outputParameters:
      - type: object
        mapping: $.
    - name: create-index
      description: Create Index
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: amazon-q-indices.createindex
      with:
        applicationId: tools.applicationId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.