SI Agent News
← All news

Agents that fetch data on demand beat one-shot RAG in an OpenRouter test

A test on a 3,000-product catalog shows when an AI agent should call tools instead of pre-loading text, and how one badly designed tool broke a model.

4 min readMade with AI

The short version

  • The MCP agent answered 40 of 40 questions on both models; hybrid RAG got 16 and vector RAG 8 or 9.
  • Neither RAG setup answered any two-hop or whole-catalog question, such as counting tents with a 2-year warranty.
  • SKU lookups failed under vector search; adding keyword search fixed all 16 single-fact questions.
  • GPT-6 Luna scored 0 of 12 on counts until the tool server learned to ignore placeholder values like 0.
  • MCP cost $0.18 to $0.39 per 1,000 questions; hybrid RAG cost $0.19 to $0.91.

Two ways to give an agent your data

Retrieval-augmented generation, or RAG, means your software searches a prepared index of text before the AI model ever sees the question, then pastes the best matches into the prompt. The search happens once. If the pasted text lacks a detail, the model cannot go back for more.

The Model Context Protocol, or MCP, works the other way round. A server lists tools the model may use, each with a name, a plain description and a schema (a formal list of the inputs it accepts). The model decides which tool to call, gets the result, and can call another before it answers.

As openrouter.ai explained in its comparison, these are not rivals. RAG is a way of choosing which text goes into a prompt, while MCP is a way of handing the model tools. A tool can even be a search over a RAG index.

40 of 40questions the MCP tool agent answered on a 3,000-product catalog

Why it matters

If you are building or buying an agent that works with company data, the way it gets that data can matter more than which model sits behind it. Questions about exact records, counts or linked items favor agents that can look things up step by step. The test also shows that a tool that works for one model can silently fail on another.

The test: one catalog, 40 questions

The team built an invented outdoor-gear catalog in two versions: 3,000 products, and a small one with 80. Each product had a short page listing its name, SKU (a product code), category, price, weight, warranty and year first sold. Some pages also named compatible products. The runs went through OpenRouter's API on October 22, 2026.

The 40 questions, each with a known right answer, came in three kinds. Sixteen asked for one fact. Twelve needed two steps, such as finding a trekking pole's listed backpack and then that backpack's price. Twelve needed counts or extremes across the whole catalog, such as the lightest sleeping bag.

Three setups were compared, each on GPT-6 Luna and DeepSeek V4.1 Flash. Vector RAG matched questions to text by meaning. Hybrid RAG added classic keyword matching (called BM25). Both then used a reranker, a second model that re-sorts candidates, to keep five chunks. The third setup was an agent with two tools: one fetching a single product's record, another filtering and sorting the catalog and reporting the total matches.

Where one-shot retrieval ran out of road

On the large catalog, the tool agent got all 40 right on both models. Vector RAG got 8 or 9, and hybrid RAG got 16. On the small catalog the agent went 37 for 37, against 26 and 27 for vector RAG.

Half the single-fact questions named a product by its SKU. A code like that carries no meaning an embedding (a numeric fingerprint of text) can capture, so the right page ranked anywhere from 276th to 2,718th of 3,000. Keyword search solved it, and hybrid RAG got all 16 single-fact questions right.

Neither RAG version answered a single two-hop or whole-catalog question. Retrieval runs on the question's wording, so it can find the trekking pole but not the backpack that only matters after reading the pole's page. And five chunks cannot tell you how many of the 375 tents have a 2-year warranty. The agent handled the first by chaining lookups and the second with one filtered call that returned a total.

The agent used two to three times the input tokens of RAG, averaging 2.3 to 2.4 model calls per question. Even so, it cost about the same as hybrid RAG on GPT-6 Luna and less on DeepSeek, since RAG pays for embedding and reranking on every question. It was also faster on both models, though RAG's timings include those extra calls.

The tool-design bug that zeroed one model

The first version of the tool server did not go smoothly. GPT-6 Luna scored 0 of 12 on whole-catalog questions, while DeepSeek did fine. The filters on the search tool were all optional, yet GPT-6 Luna filled every one, putting 0 or an empty string where it meant "no filter."

The server took those placeholders literally and looked for products first sold in year 0, so it found nothing. The model reported zero tents with a 2-year warranty. The real answer is 79.

DeepSeek never sent such placeholders across its 117 test questions, even though it saw the identical tools. The fix was on the server: treat 0, empty strings and negative numbers as no filter, and say so in the tool description. GPT-6 Luna then went 12 for 12 on those questions and 40 for 40 overall.

The lesson is that tool descriptions act like prompts, and different models read them differently. The team suggests testing tools on every model you plan to use and reading the actual arguments each one sends.

A practical rule for choosing

Choose tools when data is structured or sits behind an API, when questions need exact lookups, counts or filters, or when the data changes and must be read live. Choose RAG for loose text where meaning matters, such as policies, documentation or support articles, and make it hybrid so identifiers still get found.

Use both when a question over messy text needs several lookups. Wrap the search index as a tool, and the model can search, read, and search again.

One caveat: the 40-of-40 result depended on tools built for these three question types in a tidy catalog. A question those two tools cannot express would still fail.

What to watch

  • Will the results hold for messier, unstructured data, where the tools cannot be so neatly matched to the questions?
  • How many other models mishandle optional tool arguments the way GPT-6 Luna did?

Try it

Write 10 questions with known answers about your own data, including a code lookup and a count, and run them through each model you use, checking the arguments its tools receive.

Up nextTogether AI releases Hurdle to test Claude Code and Codex agents

More stories

Say why

Liked it? Say why

Add a line for other readers.

No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.

Sources

The reporting and documents this story is built from. Each link opens the original.

Written with AI by the SI Agent News Desk from the reporting above. Every number is checked against it.Spot a mistake or a concern? Contact us · Corrections.

More AI news