naftiko: 1.0.0-alpha2 info: label: TiDB Cloud Chat2Query API — Sessions description: 'TiDB Cloud Chat2Query API — Sessions. 1 operations. Lead operation: Create a chat session. Self-contained Naftiko capability covering one Tidb business surface.' tags: - Tidb - Sessions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TIDB_API_KEY: TIDB_API_KEY capability: consumes: - type: http namespace: cloud-chat2query-sessions baseUri: https://data.tidbcloud.com/api/v1beta/app/{dataAppId}/endpoint description: TiDB Cloud Chat2Query API — Sessions business capability. Self-contained, no shared references. resources: - name: v3-sessions path: /v3/sessions operations: - name: createchatsession method: POST description: Create a chat session 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-chat2query-sessions-rest port: 8080 description: REST adapter for TiDB Cloud Chat2Query API — Sessions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v3/sessions name: v3-sessions description: REST surface for v3-sessions. operations: - method: POST name: createchatsession description: Create a chat session call: cloud-chat2query-sessions.createchatsession with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: cloud-chat2query-sessions-mcp port: 9090 transport: http description: MCP adapter for TiDB Cloud Chat2Query API — Sessions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-chat-session description: Create a chat session hints: readOnly: false destructive: false idempotent: false call: cloud-chat2query-sessions.createchatsession with: body: tools.body outputParameters: - type: object mapping: $.