Skip to content Skip to footer

How to Build Reliable Enterprise Data Agents Without Giving AI Unchecked Database Access

What Happened

Google Cloud is expanding Conversational Analytics in Public Preview to Bigtable and Firestore Enterprise. The service translates natural-language questions into Bigtable GoogleSQL or Firestore Enterprise MongoDB Query Language queries, returning verified, read-only answers and explanations. Developers can embed data agents through APIs and Model Context Protocol (MCP) integrations, with glossaries and value linking helping improve interpretation. Generated mutations are not automatically executed. [1]

The same announcement describes managed remote MCP endpoints with broader operational capabilities, including Bigtable administration and monitoring, and Firestore document, index and disaster-recovery management. Read-only conversational analytics and administrative agent access are different security surfaces; teams should not treat MCP connectivity as inherently read-only. [1]

Separately, Google published an evaluation approach for ADK-based natural-language-to-SQL agents that checks tool execution, result-set equivalence and final-answer quality. Google Cloud also received Spanish authority approval for in-scope NATO Unclassified and NATO Restricted workloads, highlighting the importance of explicit cloud and AI processing boundaries. [2][3]

Why It Matters to Businesses

Managed data agents can reduce the integration work needed to expose operational data through conversational applications. They do not remove the need to define business terminology, enforce access policies or prove that answers are correct.

  • Faster integration, not automatic correctness: Native database integrations reduce custom connector development, but ambiguous terms such as “active customer” still need governed definitions.
  • Correctness extends beyond valid queries: A syntactically valid query can use the wrong reporting period, aggregation or customer population. Evaluation must test returned data and the resulting explanation.
  • Compliance is deployment-specific: Approval applies to in-scope services and workloads, not every architecture running on that provider. Google’s NATO Data Boundary uses Assured Workloads controls covering locations for data, ML processing, keys, logging, service management and support access. [2]

The practical buying question is therefore not simply whether a platform supports data agents. It is whether the complete application can meet accuracy, access-control, latency and cost requirements under realistic workloads.

Kimbodo Engineering Perspective

We would separate the system into three concerns: interpretation, authorized execution and evidence-based response generation. The model proposes an operation; a controlled execution layer determines whether it is permitted; the response layer explains only what the returned evidence supports.

Managed conversational analytics is attractive when its supported query patterns, governance controls and deployment constraints fit the application. A custom orchestration layer is justified when authorization, cross-system workflows or evaluation requirements exceed those capabilities. Custom orchestration also creates maintenance work: tool contracts, retries, tracing, model upgrades and regression testing become the application team’s responsibility.

Evaluation should compare meaning rather than SQL text. Different queries can produce equivalent results, while superficially similar queries can answer different questions. Google’s ADK example addresses this through deterministic result normalization and comparison alongside tool-trajectory and final-response checks. [3]

That approach still needs domain judgment. Column matching by value distributions can be ambiguous when columns contain similar values. Reference fixtures should include multiple rows, duplicate values, missing values, leading-zero identifiers and explicit ranking cases. The comparison contract should preserve column meaning and enforce ordering whenever the question requires it.

How We Would Implement It

1. Establish the execution and identity boundary

Route authenticated requests through an application API that resolves tenant, role and permitted data scope before invoking an agent. Use a dedicated read-only identity for analytics. Keep administrative MCP tools behind separate identities, authorization policies and approval workflows; do not include them in the analytics agent’s default tool inventory.

2. Ground questions in governed metadata

Maintain approved schema descriptions, business definitions, identifier formats and example questions. Use glossary and value-linking features where available. Ask for clarification when ambiguity could materially change an answer, rather than silently selecting a definition.

3. Constrain execution and isolate demand

Apply supported query validation, execution timeouts, result-size limits, concurrency controls and per-tenant budgets. Return structured rows and execution metadata to the response generator. Where supported, isolate analytics capacity from transactional demand; Bigtable’s announcement specifically describes isolated analytics for large-scale agent workloads. [1]

4. Build a three-layer release gate

  • Tool behavior: Check required validation and execution steps, using ADK’s tool-trajectory evaluation where appropriate.
  • Data correctness: Compare actual rows against reference results with deterministic normalization. Preserve large identifiers and leading-zero codes as strings, and enforce ranking order when requested.
  • Answer quality: Check whether the explanation accurately reflects the results, units, filters and limitations. Google’s example combines these layers using custom result matching and rubric-based response evaluation. [3]

For the documented ADK pattern, the execution tool returns a rows field, the custom metric reads the latest execution response, and evaluation fixtures contain prompts, expected tool calls, reference rows and answers. Run this suite before changing models, prompts, schemas or tools. [3]

5. Release gradually with operational evidence

Start with a small, read-only question catalog. Track end-to-end latency, query failures, evaluation pass rates and cost per accepted answer. Expand only after representative users validate the results. Require a separate risk review before adding write operations or infrastructure-management tools.

Risks, Costs and Security

Cost is a workflow property. Include model calls, metadata retrieval, database execution, retries, logging and evaluation in the budget. Measure tail latency and expensive-query behavior, not just average token usage. For small query results, explanation generation may dominate; for broad aggregations, database execution may dominate.

Read-only access still exposes sensitive information. Enforce authorization in the execution layer, not solely in prompts. Treat retrieved text and database content as untrusted input, minimize sensitive data in logs, and prevent model instructions from overriding tool permissions.

Preview services need an exit plan. Because the Bigtable and Firestore integrations are in Public Preview, verify support terms, quotas, regional availability and interface stability before making them a critical dependency. [1]

Regulated deployments require configuration evidence. Confirm service eligibility, processing locations, key controls and operational-access restrictions for the actual workload. A provider approval is an input to assurance, not a substitute for application-level security review. [2]

Where Kimbodo Comes In

Kimbodo builds and operates this in production for businesses — see our AI Infrastructure & MLOps practice, or Estimate My Infrastructure.

Sources

  1. [1] Announcing Conversational Analytics for Bigtable and Firestore
  2. [2] Google achieves approval for NATO restricted workloads across cloud and AI services
  3. [3] Designing Custom Evaluation Metrics in ADK for NL2SQL Data Agents

Leave a comment

0.0/5

Engineering Founded & Customer Focused

KIMBODO LLC. © 2026. All Rights Reserved.