How to Fix Context Clutter for AI Agents: What Two Benchmarks Show

Context clutter is information an agent doesn't need that fills its context window and typically results in a drop in answer quality. Most teams don't notice it, because these failures are rarely obvious; the agent returns a confident answer that turns out to be wrong. Scribe's CEO recently made the case that models can't tune out what's in front of them, so a context layer that retrieves more company material makes agents perform worse, contrary to what we'd expect. In Scribe's own test of 30 business tasks (one model, graded by that same model), models given access to workflow recordings outperformed those given access to the company wiki, and when the model was given both, it scored lower than with the recordings alone.

That diagnosis holds up, and our data shows what teams can do about it. Two CData Labs benchmarks (1,844 runs across live CRM, cloud data warehouse, and IT service management (ITSM) systems scored against fixed answer keys) point to three findings. In this post, we walk through each: knowledge built into tools beats knowledge the model has to work out, data and context are different things, and the rules that matter should run in a tool instead of being read.

At a glance

Context clutter is text in an agent's context window that the current task doesn't need. CData Labs tested how tool design and context delivery affect it in "The 178x Cost Spread" (September 2026: 22 models, 1,034 runs) and "Serving Context to Probabilistic Agents" (October 2026: 27 models, 810 runs).

Why context clutter makes an agent worse

Context clutter is anything in an agent's context window that the current task doesn't need: unused tool definitions, instructions for other systems, and retrieved text that looks relevant but isn't. Models read all of it, and it lowers accuracy. Many teams treat the context window as free storage on the assumption that more information can only help. But the research says otherwise.

Chroma's context rot study evaluated 18 models and found that performance grew less reliable as input length increased, even on simple tasks. Adding a single distractor, text on the same topic that doesn't answer the question, lowered performance relative to the baseline. Earlier research reached the same conclusion from different angles: irrelevant context distracts models on reasoning problems, and models make weaker use of information placed in the middle of long inputs.

Agents make the problem worse over the course of a session. Tool definitions, server instructions, and every response to a prompt stay in the window until the session ends, so clutter compounds turn by turn. That's often why an AI gives wrong answers about company data it can reach without trouble: by the time the relevant record arrives, it's competing with everything the session has already accumulated.

Pre-filtered knowledge beats raw material

The first CData Labs benchmark, "The 178x Cost Spread" (September 2026), ran 22 models through the same account-health tasks across three live systems. Each model ran the tasks once with raw access to the data and once through curated tools that already carried the business logic.

On the composition task, 17 of 22 models returned the correct list through curated tools. With raw access, no model came close, and 18 of 22 returned nothing usable. One model spent half an hour querying the raw schema and exhausted its context window before it produced an answer. That run is a precise picture of what happens when an agent consumes full database schemas on every query: the window fills with structure, and the reasoning the task required never gets started.

This is where the benchmark agrees with Scribe. A curated tool is the tool-shaped version of a workflow recording. Someone already decided what matters, so the model doesn't have to infer it from everything it can see.

Connectors aren't context: how to prevent MCP tool sprawl

Tool sprawl starts when teams wire one Model Context Protocol (MCP) server per system and let every tool definition ride along in every session. Scribe closes its argument by describing each new connector as one more voice in an already crowded room. That's true only when a connector adds text to the window. A connector gives an agent a source it can query, while context is text the model reads, and a well-designed connector adds nothing to the window until the agent asks it for data.

The second CData Labs benchmark, "Serving Context to Probabilistic Agents" (October 2026), compared two gateway designs given the same business context. An open-source MCP gateway placed in front of each system's own MCP server exposed 20 tools. The second gateway exposed seven, reaching all three systems through one query. Anthropic's guidance on context engineering recommends a minimal viable set of tools for the same reason: a smaller tool set makes context easier to manage. The benchmarks used three systems, so a tool set that holds its size as sources grow is a property of the design the CData Labs study didn't measure.

Fetch context when the agent asks for it

Contextual data retrieval, serving business context only when the agent asks for it, produced the largest difference in accuracy and token spend in the benchmark. Counting correct answers only, models used 93% fewer tokens and about a tenth of the tool calls through Connect AI Gateway, and a correct, governed task cost $0.26 against $5.67.

Both gateways had word-for-word the same business definitions. The open-source gateway loaded about 8,600 characters of context into every session, and Connect AI served only the subset of context a question needed at the moment the agent asked. Completion told the same story: 16 of 27 models completed every task correctly on Connect AI Gateway, against three on the open-source gateway.

Accuracy matters as much as cost. The open-source gateway returned confidently wrong answers almost four times as often, in 27% of read runs against 7%. Connect AI Gateway also ran the computation server-side, so the result belongs to both design choices together. That pairing lines up with the just-in-time context retrieval approach Anthropic describes in the same guidance.

Some rules should run inside the tool

Even well-filtered context is still text the model weighs, and rules based on workflow recordings are no exception. A model can misread a rule, deprioritize it, or lose it under everything else in the window. For the rules a business depends on, the tool can carry them out instead.

The 178x benchmark tested this with a write task: add exactly the 21 accounts eligible for review to a queue, and nothing else, with no undo. With raw access, none of the 22 models completed a single run cleanly. Fourteen wrote unauthorized records, and the worst run wrote 628 records where 21 belonged. The same model could write nothing on one run and hundreds of wrong records on the next.

With the eligibility check built into the write tool, no model wrote a single unauthorized record, and 21 of 22 queued exactly the right accounts. A guarded tool enforces a business rule on the server before it acts, so the outcome doesn't depend on whether the model remembered or followed the rule. Guarded tools make writes safe enough to allow, so read-only access stops being the ceiling on what agents can do with your CRM and other systems.

Narrowing access isn't the same as enforcing the rule

There's an easy middle ground, and the benchmark tested it too. When the write tool could reach only the correct table, 15 of 22 models completed the task correctly every time, and six still produced unsafe runs.

The paper's conclusion is direct: scoping reduces the blast radius, but it doesn't eliminate bad writes. A rule enforced in the tool meant safety across all 22 models. There's a context benefit as well. A tool that does the check costs the model zero tokens, and whatever the session accumulates can't crowd it out of the window.

How Connect AI keeps the agent's window lean

With CData Connect AI Gateway, your agents work through one small tool set across hundreds of enterprise sources, and adding a source adds a connection without adding tool definitions. The Context Engine serves business context on demand, and the Virtual Data Layer runs the matching, filtering, and totaling server-side, so the model receives a short result in place of raw records. Rules your business can't leave to chance run inside curated and guarded tools, the same setup that held 22 models at zero unauthorized writes.

That's what a governed MCP server looks like in practice. Identity and permissions apply to every query, and every write passes through the rules your business defined, so a lean context window never comes at the cost of wider access.

Give your agents the right context with Connect AI

Connect your CRM, warehouse, and ITSM sources to CData Connect AI and give any MCP client one lean tool set across all of them. Serve business context on demand, and put the rules that matter into tools that enforce them. Start a free trial of Connect AI today.

Frequently asked questions

Why does my AI give wrong answers about our company data?

Often because of what's in its context window, more than what's missing from it. Text that looks relevant but doesn't answer the question pulls models off course. In CData's Serving Context benchmark, Connect AI Gateway (which serves business context on demand and ran the computation server-side) returned confidently wrong answers in 7% of read runs, against 27% for an open-source gateway that loaded the same context up front.

How do I prevent MCP tool sprawl when connecting agents to many enterprise systems?

Put one gateway with a small, fixed tool set in front of every system, so adding a source adds a connection without adding tool definitions. Every tool definition stays in the window for the whole session. In CData's benchmark, a seven-tool gateway that reached three systems through one query outperformed a 20-tool setup given the same business context.

How do I reduce token costs for AI agents querying enterprise data?

Cut what the model has to read. Serve business context when the agent asks for it, and run filtering and totaling server-side so the model gets a short result. In CData's Serving Context benchmark, that design reached the same correct answers with 93% fewer tokens, and a correct, governed task cost $0.26 against $5.67.

How do I prevent AI agents from consuming full database schemas on every query?

Give the agent curated tools that already carry the business logic in place of the raw schema. In CData's 178x benchmark, 17 of 22 models returned the correct list through curated tools. With raw access, 18 of 22 returned nothing usable, and one model queried the schema for half an hour before running out of context.

Should business rules for AI agents live in the prompt or in the tool?

Rules the business can't afford to see broken belong in the tool. In CData's 178x benchmark, 14 of 22 models wrote unauthorized records with raw access. With the rule enforced in the write tool, none did.

Explore CData Labs

Reproducible benchmarks on live enterprise data show how architecture, not model choice, decides accuracy, safety, and cost. Read the research and run the harnesses yourself.

Visit CData Labs