datahub-sql-workflow
DataHub SQL Workflow
Ground every query in DataHub evidence. Treat business context as the authority for meaning, catalog metadata as the authority for physical shape, and historical SQL context as evidence of analyst practice.
Require find_sql_context and DataHub metadata tools. If it is still unavailable,
stop and ask the user to enable the DataHub MCP tools — do not fall back to any other
evidence source (other discovery tools, local files, memory, web).
Treat every other tool as capability-dependent: if one is unavailable, disclose the limitation and continue with the supported steps; never replace missing evidence with guesses.
1. Find SQL context first
Call find_sql_context(question=<user's complete question>) before any other
catalog, drafting, probing, or execution tool. Do this even when the user names
tables or supplies Dataset URNs.