---
title: "Context belongs in the warehouse"
url: https://daily.dev/posts/context-belongs-in-the-warehouse-bga2nkpnt
source_url: https://motherduck.com/blog/context-belongs-in-the-warehouse
type: article
source: "MotherDuck"
published: 2026-07-29T15:05:30.524Z
updated: 2026-07-29T15:05:52.780Z
tags: ["ai-agents", "mcp", "data-warehouse", "duckdb"]
reading_time: 7
upvotes: 1
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Context belongs in the warehouse

**[MotherDuck](https://daily.dev/sources/motherduck)** · 7 min read · 1 upvotes · 0 comments

## Summary

MotherDuck is launching Guides, a context layer for AI agents that lives inside the data warehouse. Guides are markdown files with metadata that store metric definitions, join relationships, business caveats, and style conventions — queryable via SQL and versioned like any warehouse object. On the DABStep agentic analytics benchmark, Guides improved agent accuracy by 72 percentage points and reduced cost per run by ~55% compared to agents discovering context on their own. A small model (Gemini Flash) answered 99.5% of benchmark questions correctly at roughly two cents each. Guides integrate with the MotherDuck MCP server and work with Claude, Codex, Cursor, and other MCP clients. They support org-level and user-level ownership, automatic propagation of updates, and SQL-based management via functions like MD_CREATE_GUIDE().

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://motherduck.com/blog/context-belongs-in-the-warehouse>

## Similar posts on daily.dev

- [From MCP to Agent Skills: Teaching Your AI Agents to Actually Do Analytics](https://daily.dev/posts/from-mcp-to-agent-skills-teaching-your-ai-agents-to-actually-do-analytics-res1qlujx) · MotherDuck · 11 upvotes · 1 comments
- [Building an answering machine](https://daily.dev/posts/building-an-answering-machine-enec0eoia) · MotherDuck · 1 upvotes · 0 comments
- [Duck, Dive, and Answer](https://daily.dev/posts/duck-dive-and-answer-5vuqot9lb) · MotherDuck · 4 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#mcp](https://daily.dev/tags/mcp), [#data-warehouse](https://daily.dev/tags/data-warehouse), [#duckdb](https://daily.dev/tags/duckdb)

[View this post on daily.dev](https://daily.dev/posts/context-belongs-in-the-warehouse-bga2nkpnt)
