- Context is now the limiting factor. As AI advances to harder, higher-value tasks, small context retrieval misses compound. At 95% vs. 80% retrieval accuracy per question, a three-question email is fully correct 86% vs. 51% of the time.
- Unified search beats federated search. Federated search sends your agent to each data source’s MCP individually, so it’s at the mercy of each one’s search quality and rate limits. Unified search gives it one index and one ranking across sources.
- The gap is measurable. In a Claude Cowork eval across ~175 enterprise tasks, graders preferred Glean MCP’s responses ~2.5x as often, and off-the-shelf MCPs used ~30% more tokens. Glean’s win rate rose from 66% to 73% as tasks got more complex.
- Industry-standard lexical and semantic search are not enough. Thousands of documents can match a query, but only a few have the answer. Glean finds them with a semantic model trained on each company’s language and 100+ enterprise signals, including authority and personalization.
- It works with the AI tools you already use. Glean MCP connects Glean’s context layer to any AI tool, including Claude Cowork, Microsoft Copilot, and your own chatbots and agents.
Every week, Glean helps over one million users get work done by activating their company’s knowledge and tools with AI. Glean Assistant and Agents answer complex questions correctly, build slide decks with company sources cited throughout, and execute multi-step workflows end to end. They work because they are built on Glean’s context layer, which ingests a company’s entire corpus of knowledge, understands it, and makes this understanding easily accessible. That knowledge spans sources like Google Drive, Slack, and Jira, as well as skills, past chats, and artifacts, forming an evolving organizational memory that both people and AI read from and write to.
While our customers often use Glean as their AI interface, we designed the Glean context layer to be interoperable with any AI interface, be it Claude Cowork, Microsoft Copilot, or your custom-built chatbots or agents. Connecting Glean’s context layer through our Model Context Protocol (MCP) server to any of these tools significantly enhances their understanding of your company, allowing them to carry out real work more accurately and at lower cost.
To explain what makes this possible, we’ll focus on the foundation of Glean’s context layer: unified search. We’ll explain why context quality matters as AI takes on more complex work, and how Glean retrieves the right company knowledge more accurately and efficiently than searching each data source independently.
Small retrieval gaps compound
Most knowledge work depends on the context that lives across your organization. For example, consider the task of responding to a potential customer’s 100-question request for proposal (RFP) and making the case for why they should buy your product. Doing this well requires synthesizing hundreds of pieces of context across your company, from past RFP responses to product and security documents to Slack threads with subject-matter experts. It would normally take a company weeks to complete. AI can dramatically accelerate this process—if it has access to the right context.
At first, AI could only accelerate a thin slice of this work. Glean’s original search experience with its familiar 10 blue links was an early form of enterprise AI. You could systematically search for each of the 100 documents you needed, using keywords like “RFP 2025”, “okta sso status”, and “data retention policy”. But you still had to read and synthesize the information yourself.
Then, early LLM-based products, including Glean’s AI Answers and Glean Assistant, went further by answering targeted questions for you: “Do we support Okta with SSO?” or “What’s our data retention policy?” You could ask each of the 100 RFP questions individually, verify the answers manually through citations, and assemble the final document yourself.
Now, agentic AI systems can handle the entire process with one prompt: “Fill out this RFP using any context you need from Glean.” In the background, the agent searches for each of the documents it needs, finds the answers to the 100 questions, verifies them by re-examining the context and doing further research, and produces a completed draft. It flags a few sensitive or low-confidence questions that need human review.
In the near future, long-running agents may be able to automate an entire sales cycle: “Manage this sales cycle from RFP to contract signature, notifying me when you need my help.”

This is a sales-focused example, but the same principle applies across departments and industries. Most high-value knowledge work can’t be done accurately without context from across your organization. Finance needs to prepare an annual budget and plan. Engineering needs to figure out the next feature to build based on product feedback. A pharmaceutical company needs to prepare a regulatory submission. A bank needs to prepare a credit memo. To do any one of these tasks well, you need to synthesize many pieces of context from sources across your company.
AI tools can significantly accelerate these tasks, but only if the right information is put into the LLM’s context window at the right time. And the challenge compounds as AI takes on more complex work. As a simple example, suppose you want to reply to a customer’s email that asks three questions:
- Can our data be stored and processed only in EU data centers?
- Do you support SSO and automatic user provisioning and deprovisioning through Okta?
- Do you support a multi-year agreement with an annual termination-for-convenience clause?
A world-class context retrieval system might have a 95% chance of getting any one of these questions right using your company’s knowledge. A good system might have an 80% chance. The likelihood that the world-class system gets all three questions right and completes the task is 0.953, or 86%. For the good system, it’s 0.83, or 51%. The “good” system completes the full task correctly only half the time. Even the world-class system, at 86% correctness, should be checked by a human. Thus, seemingly small differences in context quality compound into the difference between a valuable AI tool and a completely unusable one.

At Glean, we’ve spent the last seven years building a context retrieval system that enables AI to deliver on its promise to enhance knowledge work. The unified search architecture that allowed us to build the first widely used enterprise search product for humans also gave us the foundation to build the most useful enterprise context retrieval system for agents.
One index vs. dozens of MCPs
There are two fundamental approaches to enterprise search: federated and unified.
- Federated search. A typical enterprise has dozens of data sources where knowledge resides. Each data source might have its own search engine and expose it via MCP. In this strategy, an LLM searches each one of the MCPs individually until it finds the right context. Some data sources have decent search engines, some have poor ones, and some have none at all. Some of the most important data sources in enterprises are custom-built, such as internal wikis and developer documentation that don’t come with search engines on top. You are at the mercy of what each data source happened to build.
- Unified search. In this approach, you ingest all of your company’s knowledge into a single search engine. That search engine reflects the content and permissions of each data source in near real time. The substantial infrastructure and machine learning required to build a high-quality enterprise search engine can be developed once and continuously improved for quality, cost, latency, and throughput across your entire corpus for any AI workload. Instead of searching multiple federated search endpoints, each with independently developed context retrieval capabilities of widely varying quality and rate limits, your AI just sends a single query to a single endpoint. This is the foundation of Glean’s architecture.
But Glean goes further. Sometimes indexing is delayed due to limitations in a data source’s indexing API. Glean detects this automatically and supplements its indexed results with fresh results from that data source’s own search API. This gives AI the benefits of unified search while letting it check the source directly in case indexing falls behind.

Unified search is superior across five dimensions that are especially important for enterprise AI workloads:
- Quality. This is the most important dimension. If you retrieve the wrong context, you have no chance of completing the task, and you get zero (or even negative) value from your AI tool. You might think that federated search will eventually find the right context and just take a little longer than unified search. In practice, the LLM uses what it sees from its first few searches and can give up long before it finds the most authoritative or up-to-date context. The worse the search engine, the more severe this problem. At Glean, we have found that achieving high retrieval quality requires going far beyond basic lexical or semantic search. In the following sections, we’ll explain how we do this.
- Cost. The dominant cost in AI workloads today is LLM tokens. Assuming both federated and unified search find the right context for a basic information need, how many tokens do they need to do so? Federated search usually has to fan out queries across many different data sources, refine queries to compensate for deficiencies in each data source’s ranking models, and thus reason over many more tokens on average. On top of LLM cost, data sources are now starting to charge for each query to their federated search endpoints to monetize agents that can no longer be metered through seats. With unified search, LLMs need far fewer reasoning tokens and searches to retrieve the same context. When you multiply LLM and API costs by the volume of work being done by AI over time, the cost difference adds up quickly.
- Latency. Since unified search leads to fewer reasoning tokens and queries per information need in a workload, it also reduces the end-to-end time required to complete a workload. This latency difference can meaningfully affect retention.
- Rate limiting. Each federated search endpoint comes with its own rate limits: per user, per company, or both. Even for simple evaluations of federated search, we often get rate-limited. As agentic systems tackle increasingly complex work, they hit those limits more often. Work takes longer or doesn’t get done at all via federated search. Glean’s unified search infrastructure is built to support the throughput demands of agentic AI across more than one billion documents at minimal cost.
- Authentication. An AI tool connected to federated search often requires each user to manually authenticate with each data source. Users often aren’t even aware they need to do this, or simply don’t get around to it. To a typical user, this looks like an AI tool that just doesn’t know about particular parts of your corpus. Even when a user does authenticate, they have to reauthenticate at regular intervals, which adds friction and decreases retention. With unified search, admins authenticate indexed sources once, so users don’t have to do it themselves. Every indexed source is available to users from day one, and permissions are applied at query time so each user sees only what they’re allowed to access.
Concretely, in an evaluation using Claude Cowork, we compared Glean MCP (with unified search) and off-the-shelf data source MCPs (with federated search) on response quality and token usage across ~175 enterprise tasks, with the harness and model held constant. Graders preferred Glean MCP’s responses ~2.5x as often, and off-the-shelf MCPs consumed ~30% more tokens. Glean’s win rate also rose from 66% on simpler tasks to 73% on more complex ones, and when off-the-shelf MCPs produced the more correct response, they used roughly 83k tokens compared to Glean’s 43k.
Inside Glean’s unified search architecture
How does Glean’s unified search system work? And should you build your own or buy from a vendor like Glean? In this section, we will discuss at a high level what goes into building Glean Search, so you can make an informed decision.
An enterprise search engine has four key components:
- Connectors. “Connector” means different things for different products. For an enterprise search engine, it means mirroring the underlying data source’s content and permissions in near real time while respecting the quotas and rate limits of the underlying indexing API. This requires significant work. Even maintaining our Microsoft 365 connector takes a dedicated team handling a steady stream of edge cases. Glean provides such connectors to hundreds of data sources.
- Signal pipelines. A set of data pipelines runs regularly across every document in a company’s corpus to extract and process each of the 100+ signals that go into our models. Some of these signals must be extracted and served in our indexes in near real time.
- Indexes. Glean’s search system uses lexical indexes, semantic indexes, and a set of other data structures to serve documents and signals that capture latent company context. Our primary index is a lexical index that Glean forked from OpenSearch. We enhanced it with our own scoring plugin and a series of optimizations, refined over thousands of live experiments, so it scales to more than one billion documents at high throughput and low cost. We also use a document priority model trained on all our enterprise signals to determine the most important documents in the corpus and give them higher indexing fidelity.
- Machine learning models. Glean trains a set of proprietary ranking and context selection models on all the signals and user feedback available. We go into these in more detail below.
How does this all come together to provide context to a real AI workload? Let’s go back to the example of filling out an RFP accurately and autonomously, and suppose that you want to use your in-house RFP Builder Agent to get it done. You connect the agent to Glean MCP, and the Glean MCP server’s tool descriptions tell the agent to use it for any step of the workflow that requires company context. For a 100-question RFP, there could be over 100 such information-seeking steps. Let’s take just one RFP question as an example: “Does your product support SSO with Okta?” When the agent gets to this question, it realizes the question requires proprietary company knowledge, so it decides to dispatch it to Glean MCP’s search tool. It writes the search query as “glean okta sso”.

Under the hood, Glean’s search tool carries out the following steps:
- Query parsing. We carry out query understanding, including attaching concepts and synonyms specific to your company, identified in part by our semantic model custom-trained on your company’s corpus.
- Semantic search. We embed the query with a semantic model trained on each company’s corpus. We start from an open-source encoder, continue pre-training it on the company’s corpus, and post-train it with a carefully constructed curriculum so it learns the company’s unique language. Words have different meanings inside a company than they do in the outside world. For example, at Glean, “Scholastic” is the name of our semantic search system, while outside of Glean it’s a publisher of children’s books. Companies are filled with jargon that a generic model can’t understand. We use this model both for semantic search and for synonymy (identifying different words and phrases that refer to the same concept), which enhances our lexical OpenSearch system.
- OpenSearch retrieval. We combine semantic and lexical retrieval models and efficiently apply permissions across all groups that the user or agent has access to. This can reduce a corpus of one billion documents to, for example, ten thousand documents that are potentially relevant to the query and accessible to the user or agent.
- OpenSearch ranking. For each retrieved document, we access 100+ signals and combine them in proprietary models to produce a ranking score.
- Neural reranker. We take the top 100 documents from OpenSearch and pass them through a larger neural model trained to identify the few most relevant documents.
- Context selection. Given a set of top documents, we apply a proprietary model to select, from each document, the N tokens most likely to address the information need.
Where customers allow it, Glean uses historical, anonymized interaction signals from Glean Search, Glean Assistant, and Glean MCP to improve its ranking and context selection models. For example, whether a document was cited in a successful Glean Assistant session serves as both a training label and an input feature. This creates a feedback loop: our models learn from past interactions to improve accuracy, cost, and latency. As AI experiences improve and usage grows, we gain more signals to further improve the system.
Why enterprise search is hard
We learned early on in building Glean that traditional lexical and semantic signals are not enough to deliver high-quality enterprise search. The challenges of enterprise search are very different from those of consumer search and what you see in academic research on information retrieval. For example, signals like traditional PageRank that were critical in helping Google Search find authoritative content on the web are far less useful in an enterprise context, while things like team and department personalization are more important. We have had to rewrite traditional search signals and invent new ones to do well in the enterprise. They fall into two groups.
Topicality signals
Topicality signals tell us whether a document matches the query:
- Lexical topicality. How well do the words in the query and their synonyms match the words in the document? BM25 is the traditional model for this signal. We had to write our own from scratch. Documents from different data sources vary in format and behavior. We break down each part of a document (title, headings, body, comments, attachments, etc.) and score each appropriately. We mine company-specific synonyms with our custom-trained semantic search model. Our model learns to account for commonly missing signals in each data source.
- Semantic topicality. How related is the query to a document according to a language model? This score comes from the company-specific semantic model described above, which we use in retrieval and ranking, and to generate synonyms used in lexical topicality. This is a form of automatic enterprise ontology.

Enterprise signals
Now, imagine trying to find out whether Glean’s product supports SSO with Okta using the query “glean okta sso”. In a corpus of one billion documents, you may find that ten thousand documents are strong lexical and semantic matches for this query. But there are only a few documents that have the right answer. In this case, you may want the most recent and authoritative answer. For other questions, you may want the answer most relevant to you or your team. For still others, you may want some combination of all of these signals. Most queries have a huge number of documents that are lexical and semantic matches, and it would be highly inefficient for an LLM to inspect all of them. Traditional search engines, such as those powering many data source-specific MCPs, have very little chance of finding the right context in these situations and bubbling it up to the LLM’s context window.

Enterprise signals tell us which matching document is best. To deliver high-quality enterprise search, we’ve found that we need to build and learn on top of each of these signals:
- Authority. Glean ingests cross-app activity data, including visits, edits, comments, mentions, and reactions, so we know which documents are most frequently and recently visited company-wide. We see which documents are most frequently cited in your AI workflows for different types of queries, so we can boost them for similar queries in the future. We also collect all links between documents to understand how one document references another. For example, Slack messages about “okta sso” that link to the same OneDrive document are a good indication that the document is authoritative on the subject.
- Personalization. Glean sees the org chart of each company and aggregates activity at various levels of it, so we know what content is important to each user, team, and department. For example, if you’re an engineer, the query “onboarding” should surface developer onboarding documents, not sales ones. Similarly, the query “quarterly goals” should show your team’s goals first, even though every other team in the company has such a document.
- Data source-specific signals. Each data source and document type has its quirks. Pull requests can be open, merged, or in draft mode. Tickets can be open, closed, or in one of many states in between. Emails can be automatically generated. Slack messages can be bot-generated. We extract and incorporate these data source-specific signals into our ranking models to improve search relevance.
- Recency. Glean knows when a document was created, last updated, and last referenced throughout the corpus, so a policy updated last week can outrank a stale draft that matches the query just as well.

Our signals and models were developed through thousands of live experiments. Over 75% of them failed. But the ones that succeeded built incrementally toward a context layer that is more accurate and cost-effective than the alternatives. This advantage compounds as AI does more demanding work.
Even with all this work, we still regularly see answers go wrong because a cited document wasn’t the most authoritative, freshest, or most relevant to the person or team asking. Building an enterprise context layer is a very hard problem. When companies are evaluating Glean, they often ask whether they should build or buy their context layer. A context layer is one of the more complex pieces of enterprise software to build and maintain in-house. A single signal like company-wide document visits can require an entire team to maintain accurately, as the data has to be aggregated from many sources of varying dependability, and any mistakes can fundamentally change what the signal measures and how effective it is.
Context is now the limiting factor
For AI to take on complex work, the limiting factor is no longer the model or the harness, but context. An agent tasked with completing a 100-question RFP rarely fails because it can’t write or reason. It fails because it can’t find the most up-to-date guidelines for filling out an RFP or the most authoritative answers to basic questions, and thus can’t understand how the company really operates. As tasks get longer, context problems compound.
This is why Glean built unified search: a single crawling, indexing, and learned ranking system to deliver context at high quality and low cost across company knowledge. Unified search is the foundation of Glean’s context layer, not the whole thing. The same building blocks power things like structured data queries and proactive task mining, which we’ll explain in upcoming posts.
Here’s an intuitive test of your AI tool: Can it answer almost any question asked in Slack that has an answer somewhere in your company’s written knowledge? If not, then you have a context gap. And it’s likely to compound as work gets more complex. You can connect Glean MCP to the AI tools you already use and run the same test today.






