Ask a large language model whether a specific company is active, who its directors are or who ultimately controls it, and you will get a confident answer. Ask it about a company it has never seen, a three-year-old GmbH in Frankfurt or a private limited company in Manchester, and you will often get a confident answer too. The model does not know that it does not know. AI grounding is the fix: connecting every claim an agent makes to a record it retrieved from a verifiable source. This guide covers how to ground AI agents in official company data, why the source tier matters more than the technique, and the seven design decisions that separate an auditable agent from an articulate one.
A model predicts the most plausible continuation, and a plausible continuation of "the registration number is" looks exactly like a real registration number. That is a manageable quirk in a chatbot. It is a structural liability in an AI agent, a system that acts on its own outputs. An agent that onboards a supplier, screens a counterparty or pre-fills a credit assessment on an invented filing status has not made a small error. It has made a decision on fabricated evidence, at machine speed, with no human in the loop to catch it.
Agents are moving into exactly these workflows. In McKinsey's State of AI 2025 survey of 1,993 participants, 23% said their organisation was already scaling an agentic AI system and a further 39% were experimenting with agents. Gartner, meanwhile, expects more than 40% of agentic AI projects to be cancelled by the end of 2027 because of escalating costs and unclear business value, as reported by Reuters. Grounding is only as good as the data underneath it, and most of what the industry calls "company data" cannot ground anything, because it cannot be traced back to a source.
- Treat company data as a tool call, never as model knowledge.
- Resolve entities on canonical keys: registration number plus jurisdiction, not names.
- Return structured records with a fixed, cross-jurisdiction schema.
- Make "not found" a first-class answer the agent must report, not fill.
- Attach provenance to every field: source registry, filing date, retrieval date.
- Solve freshness structurally: stored and continuously refreshed, not fetched live per call.
- Keep grounding alive with change monitoring, so new filings re-trigger assessment.
1. What AI Grounding Actually Means, and What It Does Not Fix
Grounding an AI agent in company data means connecting every entity-level claim the agent makes, such as status, officers, ownership and financials, to a record retrieved from a verifiable source at task time, so that each answer can be traced to a specific registry filing rather than generated from the model's training memory.
More generally, grounding is the practice of anchoring a model's output in retrieved information instead of in what it learned during training. Retrieval-augmented generation (RAG) is the best-known technique, but it is one technique, not the definition: grounding can equally be achieved through tool calls and structured data lookups. For company data, the tool-call form matters most. The agent queries a database mid-task and receives typed fields, not prose passages.
The distinction is worth pausing on, because most readers arrive equating grounding with RAG. RAG retrieves passages, chunks of text ranked by semantic similarity, and asks the model to read them. That fits documents: policies, contracts, filings as prose. Company facts are not prose. A filing status, a director appointment and a shareholding percentage are discrete, typed values with exactly one correct answer per entity, and similarity search is the wrong retrieval primitive for them: it can surface the record of a similarly named company, and the model will read it just as fluently. For entity data, the right primitive is the exact-match structured lookup, a tool call keyed on identifiers that returns fields with no interpretive step in between. Use RAG for the documents; use tool calls for the facts.
| RAG (passage retrieval) | Tool-call grounding (structured lookup) | |
|---|---|---|
| Retrieves | Text chunks ranked by similarity | One record matched on an identifier |
| Best for | Policies, contracts, reports, news | Status, officers, owners, accounts |
| Match logic | "Closest meaning" | Exact key: number + jurisdiction |
| Output to the model | Prose the model must interpret | Typed fields with provenance |
| Typical failure | Fluent answer from a namesake's text | Empty result, which must surface as not found |
Table 1. Two forms of AI grounding. Most production agents use both, each for the data shape it fits.
Two clarifications keep this honest. First, grounding reduces hallucinations; it does not eliminate them, and no current architecture gets to zero. When Stanford RegLab and HAI researchers tested legal research tools built on RAG and marketed as avoiding hallucinations, their May 2024 study found incorrect information more than 17% of the time in Lexis+ AI and Ask Practical Law AI, and more than 34% in Westlaw AI-Assisted Research. What grounding adds, and what makes it viable in regulated workflows, is traceability: when every claim links to a retrieved record, the remaining errors are detectable and attributable. Second, grounding shifts the burden; it does not remove it. An agent grounded in wrong data will faithfully repeat wrong data, with a citation attached. That is why the rest of this article is about the data, not the model.
2. Not All Company Data Can Ground an Agent
The grounding literature treats "connect the model to a verified source" as the end of the story. For company data it is the beginning, because the market sells four very different things under one label. And there is no single source to connect to: GLEIF's Registration Authorities List catalogues almost 1,200 business registers in more than 230 jurisdictions, each with its own identifiers and access rules.
| Tier | What it is | Chain of custody | Can it ground an agent? |
|---|---|---|---|
| 1 - Registry | Companies House, the Handelsregister, the Kamer van Koophandel, a Secretary of State: the legal filing, made by the company, held by the state | The origin | Yes the primary record |
| 2 - Registry-sourced | Records collected directly from Tier 1 and stored with provenance intact: which registry, which filing, which date | One link long | Yes citable |
| 3 - Aggregated feed | Data bought from other vendors, merged and re-sold; records may be accurate, but sourcing blurs | Unclear after each resale | Retrievable not citable |
| 4 - Scraped / AI-generated | Fields harvested from websites or inferred by models to fill coverage gaps | No filing behind the value | No circular |
Table 2. The four tiers of "company data". For what registries hold and how access differs by country, see our guide to government registry data.
Tier 3 is where most confusion lives. When one vendor buys from another who bought from a third, "where did this field come from, and when was it last refreshed?" stops having a clean answer. An agent can retrieve such a record; it cannot cite it in any meaningful sense. Tier 4 is worse: grounding an agent in AI-generated data is circular, anchoring one model's output in another model's guess.
The practical rule: grounding quality cannot be added downstream. No amount of retrieval engineering turns a Tier 4 field into evidence. If the workflow must survive an audit question, and every compliance, KYB and credit workflow must, the data layer has to sit at Tier 1 or Tier 2.
3. How to Ground AI Agents in Official Company Data: Seven Design Decisions
What follows is the implementation core. None of it requires exotic infrastructure. It requires discipline about seven decisions that most agent builds get wrong by default.
1. Treat company data as a tool call, never as knowledge
The foundational rule: the model's parametric memory is not a data source for company facts. Every entity-level claim, whether status, officers, ownership or financials, must come from a lookup executed at task time. In practice this means giving the agent a company-data tool, a REST endpoint or an MCP server, and instructing it in the system prompt that company facts may only come from tool results. The Model Context Protocol has become the standard way to expose such tools: by December 2025, Anthropic reported more than 10,000 active public MCP servers and over 97 million monthly SDK downloads, with support in ChatGPT, Gemini, Microsoft Copilot and other clients. That makes the pattern portable rather than bespoke.
"But my agent already has web search"
This is the most common objection to decision 1, and it deserves a direct answer, because search-based grounding is the default in most agent stacks. Web search is grounding, but it grounds the wrong shape of question. A search tool retrieves pages ranked by relevance to a query. A company lookup retrieves a record matched to an identifier. Different operations, different failure modes.
Point a search-grounded agent at Meridian Trading GmbH and it will find the company's website, a directory listing, perhaps a news mention. It will not find the filing. Registry records mostly sit behind search forms that crawlers never reach, so the primary record is, for practical purposes, invisible to a search engine. What comes back is prose about the company rather than the company's record, and the model has to read and summarise it. Summarisation is generation: you have reintroduced the model's judgement at precisely the point you were trying to remove it.
Three things break. There is no canonical key, so nothing confirms the agent found the right Meridian Trading rather than a namesake in another jurisdiction. There are no typed fields: the word "active" on a web page is not status: active from a filing. And there is no provenance: a URL and a fetch time tell you where the agent read something, not who filed it or on what date. Citing a page is not citing a source.
The honest converse: search is the right tool for everything that genuinely lives in prose, such as adverse media, litigation coverage, news and reputational signals. A serious agent uses both. The rule is simply not to ask a relevance engine to answer an identity question.
2. Resolve entities on canonical keys, not names
Names are the single largest source of silent grounding failures. Company names are duplicated across jurisdictions, abbreviated inconsistently and translated freely. The canonical key for a legal entity is the registration_number plus the jurisdiction: a UK company number with GB, an HRB number with its register court, a SIREN with FR. The agent's first job on any task is to resolve a name to that key pair, and to treat ambiguous resolution, several candidates or a fuzzy match below threshold, as a failure state rather than a coin flip. Tax identifiers can serve as validated secondary keys; formats differ by country, which is a solved problem if the data layer validates them per jurisdiction (see our global tax ID formats reference). Resolving entities across registries is a discipline of its own, covered in our guide to company entity resolution.
3. Return structured records with a fixed schema
Agents reason better over typed fields than over prose. A grounded lookup should return a stable schema, with legal name, number, status, address, officers, beneficial owners and latest accounts, that is uniform across jurisdictions, so the agent's logic does not fork per country. This is also where hallucination can re-enter: if the tool returns a free-text blob, the model summarises it, and summarisation is generation. Structured in, structured through.
4. Make "not found" a first-class answer
This decision separates grounded agents from decorated ones. When the lookup returns nothing, because the company does not exist, the jurisdiction is not covered or the match is ambiguous, the tool must return an explicit not_found status, and the agent must be instructed to report it. The failure mode to design against is the silent fallback: the tool comes back empty and the model quietly answers from memory anyway, because that is what a language model does with a gap. In compliance workflows, "we could not verify this entity" is not a degraded answer. It is often the most valuable answer the system can produce, because it is the one that triggers escalation.
5. Attach provenance to every field
A record that can ground an agent has two halves: the facts, and the proof of where they came from. The proof is a small set of fields, source_registry, registry_reference, filing_date, retrieved_at and collection_method, that costs almost nothing to carry and changes what the output is. Without it, the agent's answer is an assertion. With it, the answer is evidence: a reviewer, auditor or regulator can trace any claim to a specific filing on a specific date. Provenance also makes residual errors detectable. A wrong answer with a citation can be checked; a wrong answer without one can only be believed or disbelieved.
6. Solve freshness structurally, not per call
Agents change the economics of freshness. A human analyst makes a handful of lookups a day; an agent fleet can make thousands per hour. The naive answer, calling the official registry live for every lookup, collapses at that point. Many registries have no API at all. Those that do set limits sized for human traffic: the Companies House API allows 600 requests per five minutes per application and returns 429 Too Many Requests beyond that. Registry downtime becomes agent downtime. And a live call returns only today's snapshot, with no history, so there is no way to answer "what did we know, and when?" after the fact.
The records also move constantly. In the year to March 2026, Companies House registered 815,277 new companies and dissolved 787,120, on a register of 5,479,045 at year end. The architecture that survives agent workloads is stored and continuously refreshed: registry data collected on a schedule, held in a uniform schema, served at database speed, with historical versions preserved. The agent gets fast reads and a consistent contract; audit gets point-in-time reconstruction; and freshness becomes a measured property of the layer, visible in retrieved_at, rather than a hope attached to each call.
| At agent volume | Model A - Live-only retrieval | Model B - Stored + refreshed |
|---|---|---|
| Throughput | Capped by each registry, e.g. 600 requests / 5 min at Companies House | Database-speed reads |
| Availability | Registry down = agent down | Independent of registry uptime |
| Coverage | No API in some jurisdictions | Uniform schema across jurisdictions |
| History | Today's snapshot only | Point-in-time versions |
| Verdict | Bound by the registry's limits | Holds at agent volume |
Table 3. Two freshness models. Both start from official registries; they differ in whether the data survives the call.
7. Keep grounding alive with change monitoring
Everything above grounds a decision at a moment in time. But companies do not hold still after onboarding: directors resign, ownership transfers, statuses lapse, and each event arrives as a new filing. A lookup-only architecture leaves the agent grounded in the world as it was on the day of the check. The complete design closes the loop: the data layer watches registries for new filings against the entities in your portfolio, and a material change in officers, ownership or status triggers the agent to re-run its assessment. That turns grounding from a gate into a standing state, the same shift regulators describe as ongoing due diligence. Monitoring endpoints are a standard part of the verification stack, covered alongside lookup, ownership and financials in our guide to the five essential APIs for automating KYB and compliance workflows.
Putting it together: a worked example
The success payload is the record above. Two things it does not show are the call itself and, more importantly, the miss:
// The lookup, keyed on canonical identifiers - never on a name
GET /companies/lookup?jurisdiction=DE&company_number=HRB74122
// The miss is an explicit result, never an empty body
{ "match": "not_found",
"query": { "jurisdiction": "DE", "company_number": "HRB99999" } }
The rest happens in the system prompt. Four lines carry most of the weight:
1. Company facts (status, officers, ownership, financials) may only
come from tool results in this conversation, never from memory.
2. Before any lookup, resolve the entity to company_number +
jurisdiction. If resolution is ambiguous, ask; do not pick.
3. On match: "not_found", answer exactly "I could not verify this
entity" and stop. Do not describe the company.
4. Every entity claim in your answer must name its source_registry,
filing_date and retrieved_at.
That is the whole trick. The payload carries the evidence, the prompt forbids the model from manufacturing any, and the not-found branch is a scripted sentence rather than a gap.
The layer described above is already built: registry-direct collection from 400+ government registries in 200+ jurisdictions, 600M+ company profiles stored with source and filing dates intact, refreshed daily, with source_registry, filing_date and retrieved_at on every record. In the terms of Table 3, it is Model B in production. See company data for AI agents.
4. Why Regulation Points to the Same Architecture
If the engineering argument does not settle it, the regulatory calendar will. Two EU frameworks reach the same requirement from different directions, though they apply to different parts of the workflow.
The EU AML package. The Anti-Money Laundering Regulation (AMLR) applies from 10 July 2027, together with most of AMLD6, and is supervised at EU level by the new AMLA. It carries forward the long-standing requirement that customer due diligence rest on documents or information from a reliable and independent source, now as a directly applicable regulation. In practice, "reliable and independent" describes government registries. When a supervisor asks where a verification came from, "from the registry, filing reference attached, retrieved on this date" ends the conversation. "From our AI system" starts one. For KYB agents, this is the binding driver.
The EU AI Act. The high-risk rules were originally due to apply on 2 August 2026, but the Digital Omnibus on AI, Regulation (EU) 2026/1744, published on 24 July 2026, moved the application date for stand-alone high-risk systems in Annex III to 2 December 2027. Scope matters too: Annex III point 5(b) covers AI that evaluates the creditworthiness of natural persons, so an agent assessing a sole trader or a guarantor may be high-risk, while one assessing a limited company generally is not. Where it does apply, the obligations include data governance, logging and traceability: being able to show what data the system relied on and where it came from. Our guide to AI agent logging and EU AI Act Article 12 covers the detail.
Put together: an AI agent doing KYB or credit work in Europe must show that its sources are reliable and independent (AML package) and, where it touches individuals' creditworthiness, that its data governance is sound (AI Act). A registry-sourced data layer with provenance fields meets both with the same architecture.
5. What Grounding Cannot Do
Two boundaries, stated plainly, because they shape the architecture around the data layer.
Registries do not hold everything an agent needs. Sanctions designations, adverse media, litigation records and PEP status live outside company registers, in sources with different reliability profiles. A registry-grounded agent is grounded for entity facts, existence, status, officers, ownership and accounts, and those facts are the anchor the other checks attach to. Screening still needs its own grounded sources, such as sanctions and PEP lists; registry data narrows the question to the right entity, it does not answer every question about it.
Registry depth varies by jurisdiction, and the agent must know what its layer cannot see. Filing requirements, financial disclosure and, above all, beneficial ownership access differ sharply between countries. Since the Court of Justice of the EU's ruling of 22 November 2022 struck down general public access to UBO registers, access in much of the EU has been limited to parties with a legitimate interest, and the AML package now rebuilds access on that basis. The consequence for agent design is the not-found principle one level up: coverage gaps must be explicit, machine-readable facts about the data layer, such as "UBO data not available for this jurisdiction", so the agent reports the gap instead of papering over it. A grounded agent that overstates its own coverage is hallucinating about its data layer instead of about the company.
6. Failure Modes to Design Against
Inverting the question, how would a grounded agent still fail?, surfaces four patterns worth engineering against explicitly.
| Failure mode | What happens | Mitigation |
|---|---|---|
| Silent fallback to memory | The tool errors or returns empty, and the model answers anyway. The most common and most dangerous. | Hard instruction plus output validation: every entity claim must map to a tool-result field, or the answer is rejected. |
| Entity confusion | The agent grounds correctly, on the wrong company: a namesake abroad, the parent instead of the subsidiary, the dissolved namesake. | Canonical keys (decision 2) and a confirmation step that surfaces the resolved number and jurisdiction first. |
| Stale grounding | The record was true when collected and false at decision time. | Structural freshness (decision 6): daily refresh and a retrieved_at the agent can reason about. |
| Aggregator recursion | Vendors patch gaps with model-generated fields, so the agent cites another AI's output without anyone deciding that. | Know the tier of every source, and keep Tier 4 out of any field an agent acts on. |
Table 4. Four ways a grounded agent still fails, and the design decision that addresses each.
A useful lens for all four: the goal of grounding is not an agent that is always right. It is an agent whose answers can always be checked. Which raises the obvious question: checked how?
7. How to Test That an Agent Is Actually Grounded
Grounding is a property you verify, not a feature you enable. The test design is simple, and most teams skip it.
Build a golden set with traps in it
Assemble a fixed evaluation set of company questions in three groups: real entities your data layer covers, real entities it does not cover, and, the part almost nobody does, fabricated entities that do not exist anywhere, with invented names and plausible registration numbers in real jurisdictions. The fabricated group is the direct probe for silent fallback, because a language model will happily describe a company that was never incorporated. The only acceptable output on every trap is the scripted "could not verify" response; any detail about a fake company is a hard failure, however the agent scores elsewhere.
Trace every claim, not just the verdict
For real entities, do not grade answers on overall correctness; grade them on attribution. Parse each entity-level claim in the output and check that it maps to a field in a tool result from the same run, with the provenance quoted accurately. An answer that is factually right but contains one claim with no corresponding tool field is a grounding failure: the model got lucky from memory, and luck does not survive distribution shift.
Re-run on every change, including the vendor's
Model upgrades shift behaviour without any change on your side, and so do prompt edits and tool schema changes. Run the golden set on each of them, and watch the fabricated-entity pass rate: it is the earliest sign that a new model version has become more willing to fill gaps. A grounded agent is not something you shipped; it is something your last evaluation run says you still have.
8. Getting the Data Layer
Global Database provides one registry-sourced layer, ready-built for AI agents, through three channels:
| Channel | For | What you get |
|---|---|---|
| Bulk data feeds | Data and platform teams building grounding infrastructure in-house | Full jurisdictions or filtered segments, every record carrying its source registry and timestamp |
| MCP server and API | Engineering teams building custom AI agents | Direct tool-call access to lookups, ownership and financials from any MCP-compatible framework |
| Connectors | Compliance and ops teams, no build required | Add the Global Database connector so the assistants your team already uses, such as Claude and ChatGPT, answer from registry records |
Table 5. Three ways to put registry-sourced company data under an AI agent.
9. Frequently Asked Questions
What does it mean to ground an AI agent in company data?
Grounding means connecting an AI agent's answers to a verifiable data source instead of letting the model answer from training memory. For company data, a grounded agent looks up each entity in a registry-sourced database through a tool call and cites the record it retrieved, including the source registry and retrieval date, rather than predicting a plausible answer.
Does grounding eliminate AI hallucinations completely?
No. Grounding significantly reduces hallucinations and, just as importantly, makes the remaining errors traceable, because every claim links to a specific record. Stanford researchers found RAG-based legal tools still erred 17% to 34% of the time in 2024. Grounded systems therefore also need explicit not-found handling and human review for high-stakes decisions.
What is the difference between RAG and tool-call grounding for company data?
Retrieval-augmented generation (RAG) retrieves text passages from a document store and passes them to the model as context. Tool-call grounding has the agent query a structured database and receive typed fields such as company number, status, officers and filing dates. For company data, structured tool calls are usually the better fit, because entity records are structured facts, not prose.
What counts as official company data?
Official company data originates in government registries: incorporation records, filing histories, statuses, registered addresses, officer appointments, beneficial ownership registers and filed annual accounts. Data that has been web-scraped, self-reported or inferred by a model is not official, because there is no government filing behind it that an auditor can check.
Why is aggregated company data risky for grounding AI agents?
Aggregated feeds are often bought and re-sold between vendors, which dilutes provenance: the original registry, filing date and refresh date become unclear or are lost. An agent grounded in such data can retrieve a record but cannot prove where it came from or how old it is, which defeats the audit purpose of grounding in regulated workflows.
What identifiers should an AI agent use to look up a company?
The canonical key is the official registration number plus the jurisdiction, for example a UK company number with jurisdiction GB, or a German HRB number with its register court. Names are ambiguous and duplicated across countries; registration numbers are not. Tax identifiers such as VAT numbers can serve as secondary keys where formats are validated per country.
How should an AI agent handle a company it cannot find?
It should return an explicit not-found result and say so. The most dangerous failure mode is a silent fallback to model memory, where the agent fills the gap with a plausible invention. Not-found is a legitimate, machine-readable answer, and in compliance workflows it is often the most important one, because it triggers escalation.
What provenance fields should a grounded company record include?
At minimum: the source registry, the registry reference for the underlying filing, the filing date, the date the record was retrieved or refreshed, and the collection method. These fields turn an agent's answer from an assertion into evidence, because a reviewer can trace any claim back to a specific government filing on a specific date.
How does grounding help with EU AI Act and AML compliance?
The EU AML Regulation, applying from 10 July 2027, requires customer due diligence based on reliable, independent sources. The AI Act's high-risk rules, now due from 2 December 2027 for Annex III systems, add data governance and traceability duties where AI assesses individuals' creditworthiness. An agent grounded in registry data with provenance fields produces the audit trail both anticipate.
Can I ground AI agents in Global Database data via API?
Yes. Global Database provides registry-sourced company data, 600M+ company profiles from 400+ government registries across 200+ jurisdictions, refreshed daily, through a REST API and an MCP server for agent tool calls, bulk files for teams building their own data layer, and an online platform for human review.