Testing AI agent accuracy Miro nearly doubled its analytics agent's accuracy from close to 50 percent to around 90 percent after layering DataHub Cloud in as a governed context platform between Claude Code and Snowflake, according to a DataHub case study. Before the context layer, Miro's evaluation bank of 900 manually written text-to-SQL questions measured accuracy at under 40 percent, with wrong-table routing in more than 30 percent of cases across its 20,000-plus datasets; Optiver separately raised agent accuracy from 42 percent to 74 percent on real researcher questions. Miro Lead Product Manager Ronald Angel said curating only critical data products and exposing them as the agent's sole semantic view eliminated routing errors, with the deterministic mode exceeding 90 percent accuracy. Testing AI agent accuracy An AI agent context graph management supplier called DataHub https://datahub.com/ asks this question; how do AI agents monitor, prove, and compound their own accuracy to earn sustained trust? There are underlying questions here, such as: what do we mean by AI agent accuracy? And: how do we test it? We understand that Holland’s Optiver, a global automated trading firm, saw agent accuracy go from 42 percent to 74 percent on real researcher questions across its petabyte-scale data ecosystem after layering in a governed context facility. Is 74 percent accuracy good enough for production use? Most probably not. Online collaboration platform Miro https://miro.com/ has more than 20,000 datasets spread across Snowflake, dbt, and Looker, spanning domains from finance to marketing to product analytics. When Miro connected Claude Code directly to Snowflake to enable natural language querying for business users, the early results were promising for simple questions but note for more complicated ones. A question like “give me the active users” would return something plausible but wrong. Ronald Angel, Lead Product Manager at Miro, and his team measured this precisely. Using an evaluation bank of 900 questions, testing text-to-SQL accuracy, created manually by data experts across business domains, they benchmarked accuracy at less than 40 percent. A sample question was: “What percentage of our premium accounts have two-factor authentication enabled?” - Accuracy was measured end-to-end: whether the agent produced the correct answer right tables, joins, filters, and results for each question. - The benchmark ran regularly and was updated with model or pipeline changes. - When Claude Code was connected directly to Snowflake with ~20,000+ datasets and no strong context layer , accuracy was under 40 percent . Wrong-table routing occurred in more than 30 percent of cases. Ronald Angel, Product Manager, Data Platform, Miro, said: “Starting with Snowflake metadata alone, our analytics agent answered about half of our benchmark questions correctly. After layering in DataHub Cloud as our context platform, including data product documentation, cross-source context and business meaning derived from our query history, we nearly doubled accuracy from close to 50 percent to around 90 percent .” Rather than continuing to connect Claude Code directly to Snowflake with no context layer, Miro placed DataHub between the orchestrator and the SQL engine, using the DataHub MCP server to expose data entity descriptions, tags, glossary terms, column schemas, lineage, and search to the agent. Miro used Claude Code to orchestrate question decomposition and DataHub MCP to surface governed metadata, with Snowflake Cortex executing the final SQL. It tracked accuracy as they added DataHub capabilities as a context/routing layer via DataHub MCP exposing descriptions, tags, glossary terms, lineage, schemas, etc. in stages: Reviewing the benchmark questions still failing at the 85 percent level, Miro’s team found that many failures traced not to routing logic but to sparse model documentation or deprecated columns the agent could not distinguish from live ones. The fix was to reduce the number, of data assets used by the agent and clarify definitions. Specifically, Miro curated only the data products critical to its AI use cases, documenting them with business definitions, dimensions, and measures in dbt, loaded into DataHub via MCP. The remaining 20,000+ assets were intentionally left out of scope. It said that, when the right asset is well-documented and exposed as the only semantic view the agent can reach, routing errors disappear. The agent does not need to choose between 50 tables. It sees one. This is called a deterministic mode and has 90 percent accuracy. Read the DataHub Miro case study here