Miro narrows its data universe to lift AI query accuracy above 90%
Miro's text-to-SQL testing used 900 expert-written questions. Governed context and a curated set of data products helped its agent answer more accurately than a direct Snowflake connection.

Miro's text-to-SQL benchmark reached more than 90 percent accuracy after the collaboration platform restricted the data its AI agent could query and clarified business definitions, according to Blocks & Files. The improvement followed testing that exposed wrong answers from a direct connection between Claude Code and Snowflake.
The test covered text-to-SQL generation: turning a user's question into a database query and returning the answer. Miro's data experts manually assembled 900 questions across business domains. One asked what proportion of premium accounts had enabled two-factor authentication. Success depended on the final answer, including the tables selected, joins, filters and query results, rather than whether the SQL merely looked plausible.
The benchmark ran repeatedly, with updates accompanying changes to the model or pipeline. Miro's data estate contained more than 20,000 datasets across Snowflake, dbt and Looker, covering finance, marketing and product analytics. Simple requests initially looked promising; more complicated questions exposed the weaknesses. Even a request for active users could produce a convincing but incorrect response.
With Claude Code connected directly to Snowflake and no strong context layer, the measured accuracy was below 40 percent. More than 30 percent of cases involved routing to the wrong table.
Miro then changed the path between the question and the database. DataHub sat between the orchestrator and SQL execution, exposing governed metadata through its MCP server. That context included descriptions of data entities, tags, glossary entries, column schemas, lineage and search. Claude Code handled decomposition of the question, DataHub MCP supplied the context, and Snowflake Cortex ran the final SQL.
Miro data-platform product manager Ronald Angel gave a separate account of the improvement: an agent starting with Snowflake metadata alone answered roughly half the benchmark correctly, while DataHub Cloud brought it to around 90 percent. His account included data-product documentation, context spanning sources and business meaning drawn from query history. Those approximate figures differ from the below-40-percent result for the direct connection.
The context work did not end with better routing. At an intermediate accuracy level of 85 percent, the team examined the questions that still failed. Many errors came from poorly documented models or an inability to distinguish deprecated columns from live ones.
Miro responded by curating the data products needed for its AI use cases, rather than keeping the entire estate available to the agent. Business definitions, dimensions and measures were documented in dbt and brought into DataHub through MCP. More than 20,000 other assets remained outside the agent's scope.
The restricted setup changed the selection problem itself. In Miro's description of this deterministic mode, the agent could reach a single well-documented semantic view instead of choosing among 50 tables. Miro put accuracy above 90 percent for that configuration, with routing errors disappearing when the correct asset was the only view available. The measured task remained text-to-SQL generation, not a test of every action an AI agent might perform.




















