PingCAP · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for TiDB Cloud Chat2Query Chat2 Data API
5 actions
5 updates
phrasing
extends
openapi/pingcap-chat2data-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for PingCAP's API. It is a proposal applied on top of the contract, not a document PingCAP publishes.
What the actions change
x-apievangelist-phrasing
Targets 5
$.info
$.paths['/v3/chat2data'].post
$.paths['/v3/suggestQuestions'].post
$.paths['/v2/chat2data'].post
$.paths['/v2/jobs/{job_id}'].get
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for TiDB Cloud Chat2Query Chat2 Data API
version: 1.0.0
extends: openapi/pingcap-chat2data-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-25'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 4
- target: $.paths['/v3/chat2data'].post
update:
x-apievangelist-phrasing:
intent: Generate and run SQL from a natural language question
effect: write
questions:
- How do I turn a plain-English question into a SQL query that runs on my TiDB Cloud cluster?
- Can I break down a complex question into a multi-step SQL plan?
- Which generation mode should I use for a simple versus a complex question?
instructions:
- text: Translate the question {question} into SQL and run it on cluster {cluster_id} in database {database}.
slots:
question: requestBody.question
cluster_id: requestBody.cluster_id
database: requestBody.database
- text: Generate SQL for {question} on {cluster_id}/{database} using {sql_generate_mode} mode.
slots:
question: requestBody.question
cluster_id: requestBody.cluster_id
database: requestBody.database
sql_generate_mode: requestBody.sql_generate_mode
method: generated
generated: '2026-11-25'
- target: $.paths['/v3/suggestQuestions'].post
update:
x-apievangelist-phrasing:
intent: Suggest natural language questions for a database
effect: read
questions:
- What questions can I ask about the schema of my database?
- Can I get suggested questions for a data exploration tool?
instructions:
- text: Suggest questions for database {database} on cluster {cluster_id}.
slots:
database: requestBody.database
cluster_id: requestBody.cluster_id
- text: List answerable natural language questions for {database} in {cluster_id}.
slots:
database: requestBody.database
cluster_id: requestBody.cluster_id
method: generated
generated: '2026-11-25'
- target: $.paths['/v2/chat2data'].post
update:
x-apievangelist-phrasing:
intent: Run a natural language question as an async SQL job
effect: write
questions:
- How do I run a natural language question against a cluster asynchronously?
- Is there a v2 endpoint that returns a job ID for a Chat2Query question?
instructions:
- text: Run {question} as an asynchronous SQL job on cluster {cluster_id} in database {database} and return the job ID.
slots:
question: requestBody.question
cluster_id: requestBody.cluster_id
database: requestBody.database
- text: Start a v2 Chat2Query job for {question} on {cluster_id}/{database} using session {session_id}.
slots:
question: requestBody.question
cluster_id: requestBody.cluster_id
database: requestBody.database
session_id: requestBody.session_id
method: generated
generated: '2026-11-25'
- target: $.paths['/v2/jobs/{job_id}'].get
update:
x-apievangelist-phrasing:
intent: Check the status of an async Chat2Query job
effect: read
questions:
- Has my asynchronous Chat2Query job finished yet?
- Where do I get the results of a v2 SQL job once it's done?
instructions:
- text: Get the status of Chat2Query job {job_id}.
slots:
job_id: path.job_id
- text: Poll v2 job {job_id} until it's DONE or FAILED.
slots:
job_id: path.job_id
method: generated
generated: '2026-11-25'
Work with this as data
Every overlay here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/pingcap-chat2data-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.