Inspiration

AI agents often repeat the same web research while answering related business questions. We saw them spend time searching for external facts, bring large amounts of information into context, and then do similar work again on the next question. We wanted to make that knowledge reusable without sacrificing access to live business data. This problem isn’t unique to us, research on AI agent search has also observed repeated queries and duplicated evidence in benchmark traces. That reinforced our belief that making sourced knowledge reusable could help agents work more efficiently.

Research paper link: https://arxiv.org/abs/2609.09410

What it does

We built an MCP server that helps compatible AI agents answer business questions by combining live database data with reusable, sourced web evidence.

The server provides business definitions and read-only database access. When external information is needed, it uses Telem to search and retrieve sources. For supported facts, it validates and caches evidence so agents can reuse it across related questions. Cached evidence is subject to freshness limits, and an Telem Monitor integration can signal invalidation and trigger a refresh.

For broader web questions, the server offers a Telem search fallback with cited results. So basically system will automatically validate the results and save those new sources in the cache as required.

How we built it

  • We built a Python MCP server that sits between an AI agent, a business database, and Telem’s web APIs. The agent remains responsible for planning and writing SQL. The server exposes compact business definitions and a read-only SQL tool, so the agent can combine live database results with external evidence.
  • For supported facts, we keep a local evidence catalog rather than caching final answers. Each record contains the structured facts, source URLs and passages, retrieval time, and a content hash. On a request, the resolver checks the catalog’s age and returns only the relevant facts and citations when the evidence is fresh.
  • When evidence is missing or stale, the resolver uses Telem Search to discover the configured official source and Telem Fetch to retrieve its pages. We batch the two required page fetches into a single request, then validate each page independently before atomically replacing the catalog. Missing, failed, or partial pages cause the resolver to return unresolved rather than silently reuse invalid evidence. Telem’s optional provider auto-routing can choose from a bounded provider list; we record the discovery results and provider provenance for inspection.
  • We also added an Telem Monitor integration. When enabled, the server polls a configured monitor’s change stream, persists its cursor and invalidation state, and marks affected evidence stale when it receives a relevant signal. The next request refreshes and validates the evidence before reuse. A time-based expiry remains as a backup, and a failed required monitor check fails closed. Monitor events are advisory, not a guarantee that every source change will be detected.
  • For questions outside the supported catalog, an opt-in fallback sends up to three public search queries to Telem in one batch and returns bounded, source-attributed results to the agent. Web content is treated as untrusted evidence, not as an instruction or automatically verified fact. We also implemented an experimental source-bookmark path with strict source and passage checks; and it will automatically do the bookmarking of the links which are useful.
  • We tested the resolver, fallback, failure handling, and cache behavior with automated tests and real Telem calls. The Monitor change stream was tested with simulated events.

Overall Telem functionalities which we have used are

  • Search
  • Provider auto-routing (Brave, Tavily, etc.)
  • Batch fetch
  • Batch Search
  • Monitor Changes

Challenges we ran into

  • Keeping evidence fresh - Cached facts can become outdated, so we added freshness limits and an optional Telem Monitor integration that can trigger invalidation.
  • Source validation - Search results can be incomplete or misleading. We added checks for failed and partial page fetches and made the system return unresolved when it can’t establish enough evidence.
  • Measurement - Measuring improvement fairly. We had to separate one-time evidence retrieval from warm reuse and compare the same questions, database, and definitions. Our small tests showed promising token savings
  • TelemAI API key was not working initially, and also we faced some issues in the initial installation of our MCP server with codex.

Accomplishments that we're proud of

  • We brainstormed a lot and found a concrete problem before starting any code
  • Idea to working MCP Server
  • Telem is integrated properly in the workflow and solved one of the integral problem of systems (cache invalidation) using Telem Monitor integration
  • We also ran the benchmark ourselves and kind of reduced the results mentioned in https://arxiv.org/abs/2609.09410, and that gave us more confidence in the problem

Most importantly, we built a foundation that lets agents reuse evidence across related questions while still querying current business data.

And the results where we have saved bunch of tokens, response time is shown in the video. This is an MCP Server and can be attached to any agent.

What we learned

  • Search efficiency is about more than making fewer calls. We learned to distinguish the one-time cost of finding and validating evidence from the cost of reusing it, and to measure correctness, latency, and input and output tokens together. Our tests showed that warm evidence reuse can reduce context and response time, but improvements vary by question. We also learned that citations alone don’t prove a claim: incomplete pages, missing metadata, and stale sources need explicit handling.

What's next for InfoBuddy

  • We want to extend the evidence layer beyond its current supported facts, with domain-specific validation and reliable promotion of newly discovered sources. We want to enable fast search for Tavily provider to reduce more latency, and add more validation checks. Our goal is to make reusable, source-backed knowledge practical for agents working with live business data.

Built With

Share this project:

Updates

Submission history