Stop wiring 25 custom MCP tools to your warehouse — use one semantic layer CLI instead
Evening_Hawk_7470 · reddit · 2026-11-25
The author argues against the common pattern of wrapping 20-30 bespoke MCP endpoints around Snowflake/BigQuery/Postgres for analytics agents, and for treating the semantic layer as the narrow waist operated via a single CLI.
- Tool descriptions alone eat thousands of prompt tokens within a month, and agents still hallucinate joins on novel revenue slices.
- Ivan Fokeev's open text-to-SQL benchmark showed a compact 4KB semantic context file lifts query accuracy by 17-23 percentage points over raw warehouse schemas; governed metrics-as-code beats prompt-engineering 30 tool schemas.
- With an agent-facing CLI (e.g. Cube CLI), an agent can inventory deployments, flag idle/erroring ones, add an AOV measure in dev mode, add row-level access policies filtered by region, test edge cases for leakage, and spin up dashboards — no hand-edited YAML.
- Agents proposing model updates, pre-aggregations, and PRs turns the semantic layer into a continuously maintained context layer.
Trade-off: governance discipline — dev-mode isolation, automated tests, and human PR review are mandatory, or you just automated metric drift 10x faster.
More from coding & agent
- Antigravity adds MCP Apps support with live Vercel sandbox desktops in editor — steren · 2026-11-25
- OpenAI adds per-session budget controls and pre-warmed sandbox pool to Agents API — OpenAIDevs · 2026-11-25
- Safari ships with a built-in MCP server — enable remote automation and let Claude drive the browser — EricBuess · 2026-11-25
- Skillsync, YC-backed, lets you publish AI skills others can reuse in their chats — rohanpaul_ai · 2026-11-25
- New Theory Computes Minimum LoRA Rank for Any SFT Dataset with Under 5% Error — realJessyLin · 2026-11-25
- Free AI lecture collection: Karpathy, Anthropic engineers, Jensen Huang all in one place — adnan_hashmi · 2026-11-25