Metrics with breakdown
getInsightsFlexible metrics for one account over a date range, broken down by day, campaign, adset or ad. Use breakdown "day" for a time series (trend/chart questions) and "campaign"/"ad" for contribution questions. This returns NUMBERS; for ROAZ's computed findings use getRoazInsights.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"adAccountId": "<adAccountId>"
},
"name": "getInsights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return (default 25, hard cap 100). | |
| sortBy | No | Ranking metric. Cost metrics (cpa, cpc, cpm) rank cheapest first; all others rank highest first. Rows where the metric is undefined (null, e.g. a CPA with no conversions) rank last. | |
| endDate | No | End date, YYYY-MM-DD (inclusive). Defaults to yesterday in the ad account's time zone. | |
| network | No | Ad network. Default "meta". "google" reads the Google Ads accounts (ids look like google:<n> in listAdAccounts). | |
| breakdown | No | How to group the numbers. Default "day". | |
| startDate | No | Start date, YYYY-MM-DD. Give both dates or neither (default: the last 7 complete days). Max 400 days. | |
| adAccountId | Yes | Which account to query: the numeric ROAZ ad account id, a Meta act_ id, or a client name (fuzzy-matched). Required. |