Apache Kylin · Capability

Apache Kylin REST API — Query

Apache Kylin REST API — Query. 2 operations. Lead operation: Apache kylin Apache Kylin Execute Query. Self-contained Naftiko capability covering one Apache Kylin business surface.

Run with Naftiko Apache KylinQuery

What You Can Do

POST
Executequery — Apache kylin Apache Kylin Execute Query
/v1/query
POST
Executeasyncquery — Apache kylin Apache Kylin Execute Async Query
/v1/query/async

MCP Tools

apache-kylin-apache-kylin-execute

Apache kylin Apache Kylin Execute Query

read-only
apache-kylin-apache-kylin-execute-2

Apache kylin Apache Kylin Execute Async Query

read-only

Capability Spec

rest-query.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache Kylin REST API — Query
  description: 'Apache Kylin REST API — Query. 2 operations. Lead operation: Apache kylin Apache Kylin Execute Query. Self-contained
    Naftiko capability covering one Apache Kylin business surface.'
  tags:
  - Apache Kylin
  - Query
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_KYLIN_API_KEY: APACHE_KYLIN_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-query
    baseUri: http://localhost:7070/kylin/api
    description: Apache Kylin REST API — Query business capability. Self-contained, no shared references.
    resources:
    - name: query
      path: /query
      operations:
      - name: executequery
        method: POST
        description: Apache kylin Apache Kylin Execute Query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: query-async
      path: /query/async
      operations:
      - name: executeasyncquery
        method: POST
        description: Apache kylin Apache Kylin Execute Async Query
        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.APACHE_KYLIN_USER}}'
      password: '{{env.APACHE_KYLIN_PASS}}'
  exposes:
  - type: rest
    namespace: rest-query-rest
    port: 8080
    description: REST adapter for Apache Kylin REST API — Query. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/query
      name: query
      description: REST surface for query.
      operations:
      - method: POST
        name: executequery
        description: Apache kylin Apache Kylin Execute Query
        call: rest-query.executequery
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/query/async
      name: query-async
      description: REST surface for query-async.
      operations:
      - method: POST
        name: executeasyncquery
        description: Apache kylin Apache Kylin Execute Async Query
        call: rest-query.executeasyncquery
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-query-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache Kylin REST API — Query. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: apache-kylin-apache-kylin-execute
      description: Apache kylin Apache Kylin Execute Query
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: rest-query.executequery
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-kylin-apache-kylin-execute-2
      description: Apache kylin Apache Kylin Execute Async Query
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: rest-query.executeasyncquery
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.