tidb · Capability

TiDB Cloud Data Service API — Endpoints

TiDB Cloud Data Service API — Endpoints. 2 operations. Lead operation: List endpoints. Self-contained Naftiko capability covering one Tidb business surface.

Run with Naftiko TidbEndpoints

What You Can Do

GET
Listendpoints — List endpoints
/v1/dataapps/{dataappid}/endpoints
POST
Createendpoint — Create an endpoint
/v1/dataapps/{dataappid}/endpoints

MCP Tools

list-endpoints

List endpoints

read-only idempotent
create-endpoint

Create an endpoint

Capability Spec

cloud-data-service-endpoints.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: TiDB Cloud Data Service API — Endpoints
  description: 'TiDB Cloud Data Service API — Endpoints. 2 operations. Lead operation: List endpoints. Self-contained Naftiko
    capability covering one Tidb business surface.'
  tags:
  - Tidb
  - Endpoints
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TIDB_API_KEY: TIDB_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloud-data-service-endpoints
    baseUri: https://dataservice.tidbapi.com/v1beta1
    description: TiDB Cloud Data Service API — Endpoints business capability. Self-contained, no shared references.
    resources:
    - name: dataApps-dataAppId-endpoints
      path: /dataApps/{dataAppId}/endpoints
      operations:
      - name: listendpoints
        method: GET
        description: List endpoints
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createendpoint
        method: POST
        description: Create an endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: cloud-data-service-endpoints-rest
    port: 8080
    description: REST adapter for TiDB Cloud Data Service API — Endpoints. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/dataapps/{dataappid}/endpoints
      name: dataapps-dataappid-endpoints
      description: REST surface for dataApps-dataAppId-endpoints.
      operations:
      - method: GET
        name: listendpoints
        description: List endpoints
        call: cloud-data-service-endpoints.listendpoints
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createendpoint
        description: Create an endpoint
        call: cloud-data-service-endpoints.createendpoint
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloud-data-service-endpoints-mcp
    port: 9090
    transport: http
    description: MCP adapter for TiDB Cloud Data Service API — Endpoints. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-endpoints
      description: List endpoints
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-data-service-endpoints.listendpoints
      outputParameters:
      - type: object
        mapping: $.
    - name: create-endpoint
      description: Create an endpoint
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloud-data-service-endpoints.createendpoint
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.