Agent context

Facebook Ads models

3 SQL models that turn the raw Facebook Ads tables into the reports people ask about. Deploy them in Weld and your agent queries the definitions behind every number.

How the set is built
  1. 5
    Raw tables
  2. 1
    Staging
  3. 3
    Core
  4. 2
    Analytics

Staging cleans each raw table once, core holds the logic, and analytics is the table dashboards and agents read.

Weld or dbt
The same SQL in both dialects. Sync the folder with GitHub Sync, or copy the dbt models into your project.
Check before you rely on it
Reconcile a month against Facebook Ads's own reports first. Each model's notes say what the synced data can and can't support.

Connect Facebook Ads.
Your agents start with context.

Sync Facebook Ads to your warehouse, deploy these models, and query them from Claude, Cursor or ChatGPT over MCP. Free for 14 days, no credit card.