MadgicxMCP Docs

Insights Tools

Tools for retrieving Facebook advertising performance metrics and analytics.

Insights Tools

Tools for retrieving performance metrics across campaigns, ad sets, ads, and ad accounts. Insights include spend, ROAS, reach, impressions, conversions, and more.

Common Parameters

All insights tools share these parameters for controlling what data is returned:

PropTypeDefault
fields
string[]
-
time_range
object | undefined
-
time_increment
string | number
-
level
string
-
breakdowns
string[] | undefined
-
action_attribution_windows
string[] | undefined
-
action_breakdowns
string[] | undefined
-

get_campaign_insights

Retrieve aggregated performance metrics for a Facebook campaign, combining data from all its ad sets and ads.

Parameters

PropTypeDefault
campaign_id
string
-

Plus all common parameters above.

Example

How did campaign 120211556789 perform last week?
Show me spend and ROAS for my Summer Sale campaign

get_adset_insights

Retrieve performance metrics for a specific Facebook ad set. Aggregates data from all ads within the ad set.

Parameters

PropTypeDefault
adset_id
string
-

Plus all common parameters above.

Example

Show me the performance of ad set 120211556789 broken down by age and gender

get_ad_insights

Retrieve performance metrics for a specific Facebook ad, including spend, impressions, clicks, CTR, CPM, and ROAS. Supports breakdown dimensions and custom date ranges.

Parameters

PropTypeDefault
ad_id
string
-

Plus all common parameters above.

Example

What's the CTR and CPC for ad 120211556789 this month?

get_ad_account_insights

Retrieve aggregated performance metrics across all campaigns for a Facebook ad account. Supports level parameter for granular breakdown.

Parameters

PropTypeDefault
account_id
string
-

Plus all common parameters above.

Example

What's my total ad spend this month?
Show me account-level performance broken down by campaign

On this page