Data catalogs for AI: making data findable for agents
A data catalog for AI is searchable metadata that tells people and agents which table to use, what each field means, who owns it and who is allowed to see it.
A data catalog for AI is a searchable inventory of your data's metadata: which tables and files exist, what each field means in business terms, who owns it, how fresh it is and who may see it. People use it to find the right data. Agents need it even more, because an agent that cannot tell which of three "revenue" tables is the real one will pick one, write correct SQL against it and give a confident wrong answer.
The question that fails before any SQL is written
As an illustration, picture a mid-sized retailer's warehouse. A finance analyst asks the company's assistant: "What was net revenue in Pune last quarter?"
The warehouse has sales_orders, fin_revenue_daily and rev_rpt_v2. The first one includes cancelled orders. The second is the one finance closes the books on, and it excludes GST. The third was built for a board deck two years ago and nobody has touched it since. One table has a city column; another files Pune under a store_region called "West-2".
Every one of those facts sits in somebody's head or in a Slack thread. None of it is in the schema. A model reading table and column names has nothing to go on except that fin_revenue_daily sounds official, and that is a guess. If it guesses sales_orders, the SQL will run, the number will look plausible and nobody will notice until the month-end reconciliation.
So I treat the catalog as the first piece of AI infrastructure for structured data, ahead of the model choice. The model can write SQL. It cannot know things about your business that were never written down.
What the BIRD benchmark measured
The clearest evidence for this comes from BIRD, a text-to-SQL benchmark published by Jinyang Li and colleagues in 2023. It has 12,751 question and SQL pairs over 95 databases totalling 33.4 GB, across 37 professional domains, and it was built to include the messy parts of real data: dirty values, large tables, and questions that need outside knowledge to answer.
That outside knowledge is the interesting part. For each question, expert annotators recorded short "evidence" sentences: a formula ("winning rate = won / (won + lost)"), a domain fact, a synonym, or an explanation of what a coded value means. The paper groups these into numeric reasoning, domain knowledge, synonyms and value illustrations.
Then the authors ran models with and without that evidence. On the test set, GPT-4's execution accuracy went from 34.88% without the evidence to 54.89% with it, a jump of about 20 points. ChatGPT went from 26.77% to 39.30%. Human performance on the same benchmark was 92.96%.
The models in that paper are older than the ones you would pick today. But the shape of the result has not changed: a short, correct sentence about what the data means is worth more than a cleverer prompt. Those sentences have to live somewhere a person can edit and a machine can search. That place is a catalog.
What a catalog holds (and what it does not)
A catalog stores metadata, not data. It points at a table in your warehouse, a folder of PDFs or an API, and records what they are. The W3C's Data Catalog Vocabulary, DCAT, which reached version 3 as a W3C Recommendation on 22 August 2024, gives a useful vocabulary for this. A catalog is a curated collection of metadata about resources. A dataset is a collection of data maintained by someone. A distribution is an accessible form of that dataset, such as a file or a table. A data service is a set of API operations that give access to data.
The split is worth borrowing even if you never adopt DCAT. "Monthly store sales" is one dataset even if it exists as a warehouse table, a CSV export and an API endpoint, and an agent should understand those three are the same thing.
For AI use, the fields that matter are not the same as the fields that look good in a catalog demo. Here is how I would rank them.
| Metadata | Why a person needs it | Why an agent needs it |
|---|---|---|
| Plain-language description | To decide if this is the right table | To choose between similar tables at all |
| Column meanings and units | To read the numbers correctly | To avoid summing paise as rupees, or mixing gross and net |
| Glossary term links | To match business words to data | To map "net revenue" in a question to the right column |
| Owner | To ask someone | To cite who is accountable, and to route a correction |
| Freshness and status | To avoid stale reports | To skip deprecated tables without being told |
| Access rules | To request access | To never see what the user may not see |
| Example queries | To learn by copying | To follow joins that are known to work |
Row counts, storage size and partition layout are missing on purpose: useful for engineers, irrelevant to a question about Pune.
Harvest the facts, write the meaning
Most failed catalog projects die the same way: a team buys a tool, asks every data owner to fill in descriptions, gets a few dozen descriptions filled in and quietly stops. People do not write documentation for a system they do not yet use.
So split the work by who can do it. Machines are good at the technical half. Schemas, column types, row counts, which jobs read and write which tables, which queries people actually run: all of that can be crawled from the sources and from query logs, and kept current on every change. Lineage belongs here too. OpenLineage, an open standard and a Graduate project of the LF AI & Data Foundation, records metadata about each job as it runs, using three core entities (run, job and dataset) plus "facets" for extra detail. If your pipelines emit it, the catalog can show where a table came from without anyone drawing it by hand. We covered how that helps when a number is disputed in data lineage for AI.
The meaning half is different. "This table excludes GST" or "West-2 includes Pune and Nashik" are facts a model can sometimes guess from the data, but should never be trusted to assert. My approach: let a model draft descriptions from the schema, sample values and the queries that use each table, then put each draft in front of the owner to accept, fix or reject. A busy owner will correct a wrong sentence in ten seconds when they would never write one from scratch.
CloudOEngine's data layer works this way for metrics: its AI reads your real data schemas to propose KPIs, and your team corrects the definitions before anything is built on them.
Start with the glossary, not the tables. OpenMetadata, for example, describes its glossary as a controlled vocabulary for the important concepts in an organisation, with synonyms and related terms, and terms that can be applied to data assets as tags. Forty well-defined terms linked to the tables that implement them will help an agent more than descriptions on four thousand tables nobody queries.
Search has to respect permissions
A catalog built for people often shows everything and lets you request access to what you cannot open. That is reasonable for an analyst browsing. It is wrong for an agent.
Metadata leaks. A table called layoffs_2027_draft tells you something even if you cannot read a row. A column description that says "salary, including the CEO's retention bonus" is sensitive by itself. An agent that finds a table it cannot query may also go looking for a copy it can reach. The simplest rule is that catalog search runs as the person asking, and anything they cannot see is not in the results.
DataHub's documentation for its MCP server makes the same point from the other side. It recommends each user connect with their own token so that "permissions, search results, and audit attribution stay per-user", and warns that a single server-wide token would mean every user acts as one identity. That is the confused deputy problem we discussed in role-based access control for AI agents, showing up in the metadata layer.
This is hard to get right when the catalog, the data connections and the AI runtime each have their own access rules, because the catalog then has to mirror permissions it does not own. CloudOEngine puts data connections, pipelines and its AI runtime under one permission model and one audit trail, so what an agent can find and what it can query are governed by the same roles.
Giving an agent the catalog as a tool
There are two ways to get catalog context into a model. You can stuff it into the prompt, which works for a handful of tables and stops working at a few hundred. Or you give the agent tools to search the catalog and fetch details on demand, the same way it would call any other API.
The second approach is where the tools have gone. DataHub's MCP server, for example, offers read-only tools to search assets, fetch an entity's full metadata, list a dataset's schema fields, trace lineage at table or column level, retrieve real SQL queries that reference a dataset, and find tables and example queries relevant to drafting SQL. Tools that change metadata, such as adding tags, updating descriptions or creating glossary terms, are off unless an administrator enables them, and there are "propose" variants that submit a change for review instead of applying it.
That split is the right default for any catalog you expose to an agent. Read freely, within the user's permissions. Write only through a proposal a human approves. An agent that notices a description is wrong is useful; an agent that silently rewrites the definition of net revenue is a governance incident.
Whichever catalog you use, record each lookup as part of the agent's trace: which search it ran, which entries it read, which table it picked and why. When an answer is disputed, the first question is usually "which table did it use?", and the trace should answer it without anyone rerunning anything. CloudOEngine's AI runtime traces every agent step and tool call, so those lookups can be inspected afterwards. For more on what to keep in that record, see AI audit trails: what to log.
Open formats worth asking about
Catalogs have a habit of becoming a second place your metadata is locked in. A few open efforts make that less likely, and they are worth checking for when you choose a tool.
DCAT 3 is the W3C vocabulary for describing catalogs, datasets and data services. OpenLineage, mentioned above, standardises how lineage events are recorded. On the table-catalog side, Databricks open-sourced Unity Catalog on 13 June 2024, releasing version 0.1 under the Apache 2.0 licence and hosting it at LF AI & Data. Its announcement says it is compatible with Apache Hive's metastore API and Apache Iceberg's REST catalog API, and describes governing tables, files, functions and AI models together, with model support listed on the roadmap at the time.
If a catalog vendor cannot export your glossary and descriptions in some documented format, assume the work your owners put in belongs to the vendor.
Where catalogs go stale
A catalog that is wrong is worse than none, because people and agents trust it. Three things rot first.
Deprecated tables are the most common. Somebody builds rev_rpt_v2, it is replaced, and nobody marks it. Mark status explicitly (active, deprecated, do not use) and make your agent's search skip anything that is not active unless asked. Usage data from query logs helps: a table nobody has queried in six months is a strong hint.
Owners leave. Tie ownership to a team or role as well as a named person, and review orphaned assets every quarter.
Definitions drift. Finance changes how it treats returns, the SQL is updated, the glossary term is not. Version glossary terms and link each one to the query or metric that implements it, so a change to one flags the other. For the metric side of this, a semantic layer that fixes each calculation in one place is the natural partner to the catalog; the glossary says what "net revenue" means in words, the semantic layer says how it is computed.
What I would do first
If I had a month and a team of two, I would not try to catalog everything.
- Collect the last few hundred questions people asked analysts, or asked an AI assistant, and list the tables that answered them. That is your real scope, and it is usually small.
- Harvest technical metadata and query logs for those tables automatically, and mark everything else as unreviewed.
- Write 30 to 50 glossary terms with finance, sales and operations, each linked to the table and column that implements it, and an owner.
- Have a model draft descriptions for the in-scope tables and have owners approve them. Deprecate the duplicates you find along the way.
- Expose catalog search to your agent as a read-only tool that runs as the user, and log every lookup.
- Build a small test set of questions with known answers and measure accuracy before and after. BIRD's 20-point gap is a benchmark, not a promise, so measure your own. Our guide to evaluating LLM applications covers how.
Then widen the scope one domain at a time, driven by the questions that failed.
How CloudOEngine helps
CloudOEngine is one platform and console for connecting data (databases, files and camera streams), pipelines, an AI runtime (LLM gateway, agents with tool access, RAG), Vision AI and live video. With 500+ connectors, the sources an agent needs to know about connect in one place instead of being described in a separate tool that has to be kept in sync.
Everything sits under one permission model and one audit trail. That matters for the catalog problem described above: what an agent can find and what it can query follow the same roles, so a person asking a question only gets answers from data they are allowed to see.
The data layer's AI reads your real data schemas to propose KPIs. The definitions are drafted from what is actually in your tables, and your team corrects them before anyone builds dashboards or agents on top of them.
Agents run real tools, and every step and tool call is traced and inspectable, so when someone asks which table an answer came from, the trace shows it. Where an agent should take an action, such as filing a ticket about a broken definition, Autopilot can require a person to approve it first, in the app or through an email approve link.
Governance is included, not upsold: tenant isolation, role-based access, audit logs and per-tenant encrypted secrets. A 99.9% uptime SLA option is available. CloudOEngine is built in Bengaluru, India.
Book a demo or see the data layer.
Frequently asked questions
What is a data catalog?
A data catalog is an inventory of an organisation's data assets with metadata about each one: what it contains, where it lives, who owns it, how fresh it is and who may use it. It holds descriptions of data, not the data itself.
Why do AI agents need a data catalog?
An agent asked a business question has to pick the right table and know what the columns mean before it writes any query. In the BIRD text-to-SQL benchmark, giving GPT-4 short expert-written evidence about the data raised test-set execution accuracy from 34.88% to 54.89%, and a catalog is the place that kind of context lives.
Is a data catalog the same as a semantic layer?
No. A catalog helps you find and understand data assets: tables, files, dashboards, glossary terms and their owners. A semantic layer fixes how each metric is calculated so every tool computes it the same way. They work best linked, with each catalog term pointing to the governed metric definition.
Can an AI agent search a data catalog directly?
Yes. Some catalogs now expose their search, lineage and glossary through tools an agent can call. DataHub, for example, documents an MCP server with read-only tools for search, entity details and lineage, and keeps tools that change metadata switched off unless an administrator enables them.
Should a data catalog show tables a user cannot access?
For an agent, no. Search results should be filtered to what the person asking is allowed to see, because a table name or column description can itself reveal sensitive information, and an agent that sees a table will try to use it.
What metadata standards should a data catalog support?
DCAT 3, a W3C Recommendation from August 2024, is the standard vocabulary for describing catalogs, datasets and data services. OpenLineage is an open standard for recording lineage as jobs run. Supporting both makes it easier to move metadata between tools later.
Sources
- Li et al.: Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLs (BIRD, arXiv 2305.03111)
- BIRD paper, full text (Table 2, results with and without external knowledge evidence)
- W3C Recommendation: Data Catalog Vocabulary (DCAT) Version 3, 22 August 2024
- Databricks blog: Open Sourcing Unity Catalog (13 June 2024)
- OpenLineage documentation
- DataHub docs: MCP Server guide
- OpenMetadata docs: Glossary
