# meta_detect_anomalies

> Detect unusual moves in Meta performance: compares the last days of each campaign (or the whole account) with its own daily baseline and lists the metrics…

[Documentation](https://www.getmcpads.com/docs) / [Sources](https://www.getmcpads.com/docs/sources) / [Meta Ads](https://www.getmcpads.com/docs/sources/meta-ads)

Detect unusual moves in Meta performance: compares the last days of each campaign (or the whole account) with its own daily baseline and lists the metrics that moved far beyond their usual variation (spend, results, CPM, CTR, CPC, cost per result, ROAS), most unusual first. A statistical deviation, not a cause: check the change history and delivery before acting.

|  |  |
| --- | --- |
| Source | [Meta Ads](https://www.getmcpads.com/docs/sources/meta-ads) |
| Kind | Read |
| Discovery | Reachable through `search_tools` and `run_tool` |
| Account parameter | `adAccountId` |
| Endpoint | https://mcp.getmcpads.com/meta-ads/mcp |

## Parameters

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `adAccountId` | string | Required | Owning advertising account ID. Use the exact ID returned by account discovery; do not substitute a campaign or business ID. |
| `baselineDays` | integer | Optional | Days of baseline before the recent window. Default 28. |
| `recentDays` | integer | Optional | Recent days compared with the baseline. Default 3. |
| `level` | string | Optional | Default campaign. One of: `account`, `campaign`. |
| `minDailySpend` | number | Optional | Ignore entities whose baseline daily spend is below this, in account currency. Default 0. |
| `threshold` | number | Optional | Standard deviations from the baseline mean. Default 2. |
| `resultActionType` | string | Optional | Exact action_type counted as a result, for example omni_purchase, lead or offsite_conversion.fb_pixel_purchase. Default omni_purchase. Never several overlapping purchase types. |

## Calling it

Through run_tool, since it is not announced

```json
{
  "name": "run_tool",
  "arguments": {
    "name": "meta_detect_anomalies",
    "args": {
      "adAccountId": "<string>"
    }
  }
}
```

- [Meta Ads metrics](https://www.getmcpads.com/docs/sources/meta-ads/metrics): What you can ask for.
- [Meta Ads dimensions](https://www.getmcpads.com/docs/sources/meta-ads/dimensions): How you can break it down.

---

This page as HTML: https://www.getmcpads.com/docs/sources/meta-ads/tools/meta_detect_anomalies
Every page under /docs is available as Markdown: append `.md`, or send `Accept: text/markdown`.
