Meta Ads spend and ROAS
get_meta_adsMeta (Facebook and Instagram) ads only. Spend, impressions and clicks per campaign, ad set or ad, next to the ad visitors, customers, first-touch and assisted revenue each brought, with ROAS and cost per customer (when Meta Ads is connected). fbclid-only visits are in unattributed, never in totals or ROAS.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_meta_ads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD (inclusive). | |
| from | No | First day, YYYY-MM-DD (inclusive). Use with to. | |
| level | No | Row level (default campaign). | |
| fields | No | Optional: only these parts of the answer, as comma-separated dot paths (e.g. overview.current,series.date,series.visitors). Through a list a path applies to every item; period is always kept. An unknown top-level name fails with the list of valid ones. Leave out for the full answer. | |
| period | No | Preset period, default 30d. today/yesterday/wtd/mtd follow the timezone. Ignored when from and to are set. | |
| compare | No | What change figures compare against: previous (default, the equal-length window right before), weekdays (the same length, starting whole weeks earlier on the same weekday, so Mondays compare with Mondays), year (same period last year), or a YYYY-MM-DD start (window keeps the period's length). Ignored for period all. | |
| timezone | No | IANA time zone for day boundaries and grouping, e.g. Europe/Madrid. Default UTC. | |
| website_id | No | Website ID from list_websites (the data-site-id value in the tracking script). |