Generate Sql
mcp
Generate Sql
Generate SQL from a natural-language question. Returns the SQL string plus the schemas it references. Pipe the SQL into execute_query to fetch rows; then feed those rows into generate_plotly_chart to render a figure. Use this as the first step in any ‘show me X’ or ‘what is Y’ data-analysis flow.
POST
Generate Sql
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Request body for synchronous SQL generation.
Natural language question to convert to SQL
Minimum string length:
1Resource URI of the data connection (e.g. data:org:project:name)
Minimum string length:
1List of schemas to query. If not provided, defaults to 'public' schema.

