Apache Hive · Capability

Apache Hive WebHCat REST API — Tables

Apache Hive WebHCat REST API — Tables. 3 operations. Lead operation: Apache Hive List Tables. Self-contained Naftiko capability covering one Apache Hive business surface.

Run with Naftiko Apache HiveTables

What You Can Do

GET
Listtables — Apache Hive List Tables
/v1/ddl/database/{dbname}/table
GET
Gettable — Apache Hive Get Table
/v1/ddl/database/{dbname}/table/{tablename}
GET
Listpartitions — Apache Hive List Partitions
/v1/ddl/database/{dbname}/table/{tablename}/partition

MCP Tools

apache-hive-list-tables

Apache Hive List Tables

read-only idempotent
apache-hive-get-table

Apache Hive Get Table

read-only idempotent
apache-hive-list-partitions

Apache Hive List Partitions

read-only idempotent

Capability Spec

webhcat-tables.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache Hive WebHCat REST API — Tables
  description: 'Apache Hive WebHCat REST API — Tables. 3 operations. Lead operation: Apache Hive List Tables. Self-contained
    Naftiko capability covering one Apache Hive business surface.'
  tags:
  - Apache Hive
  - Tables
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_HIVE_API_KEY: APACHE_HIVE_API_KEY
capability:
  consumes:
  - type: http
    namespace: webhcat-tables
    baseUri: http://localhost:50111/templeton/v1
    description: Apache Hive WebHCat REST API — Tables business capability. Self-contained, no shared references.
    resources:
    - name: ddl-database-dbName-table
      path: /ddl/database/{dbName}/table
      operations:
      - name: listtables
        method: GET
        description: Apache Hive List Tables
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dbName
          in: path
          type: string
          required: true
    - name: ddl-database-dbName-table-tableName
      path: /ddl/database/{dbName}/table/{tableName}
      operations:
      - name: gettable
        method: GET
        description: Apache Hive Get Table
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dbName
          in: path
          type: string
          required: true
        - name: tableName
          in: path
          type: string
          description: Table name
          required: true
    - name: ddl-database-dbName-table-tableName-partition
      path: /ddl/database/{dbName}/table/{tableName}/partition
      operations:
      - name: listpartitions
        method: GET
        description: Apache Hive List Partitions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dbName
          in: path
          type: string
          required: true
        - name: tableName
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: webhcat-tables-rest
    port: 8080
    description: REST adapter for Apache Hive WebHCat REST API — Tables. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/ddl/database/{dbname}/table
      name: ddl-database-dbname-table
      description: REST surface for ddl-database-dbName-table.
      operations:
      - method: GET
        name: listtables
        description: Apache Hive List Tables
        call: webhcat-tables.listtables
        with:
          dbName: rest.dbName
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ddl/database/{dbname}/table/{tablename}
      name: ddl-database-dbname-table-tablename
      description: REST surface for ddl-database-dbName-table-tableName.
      operations:
      - method: GET
        name: gettable
        description: Apache Hive Get Table
        call: webhcat-tables.gettable
        with:
          dbName: rest.dbName
          tableName: rest.tableName
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ddl/database/{dbname}/table/{tablename}/partition
      name: ddl-database-dbname-table-tablename-partition
      description: REST surface for ddl-database-dbName-table-tableName-partition.
      operations:
      - method: GET
        name: listpartitions
        description: Apache Hive List Partitions
        call: webhcat-tables.listpartitions
        with:
          dbName: rest.dbName
          tableName: rest.tableName
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: webhcat-tables-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache Hive WebHCat REST API — Tables. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: apache-hive-list-tables
      description: Apache Hive List Tables
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: webhcat-tables.listtables
      with:
        dbName: tools.dbName
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-hive-get-table
      description: Apache Hive Get Table
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: webhcat-tables.gettable
      with:
        dbName: tools.dbName
        tableName: tools.tableName
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-hive-list-partitions
      description: Apache Hive List Partitions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: webhcat-tables.listpartitions
      with:
        dbName: tools.dbName
        tableName: tools.tableName
      outputParameters:
      - type: object
        mapping: $.