Skip to main content
Glama

Google Ads & Meta Ads

Meta: Get Performance Insights

meta_get_insights
Read-onlyIdempotent

Get performance metrics for a Meta ad account at account, campaign, ad set, or individual ad level: impressions, clicks, spend, reach, CTR, CPC, CPM, frequency, plus conversions (purchases, purchase value, cost per purchase, ROAS) when the account reports them. Supports breakdowns by placement, device, age, gender, and country, and time_increment for a daily, weekly or monthly trend (one row per period). Each row carries the id of the campaign, ad set, or ad it covers, usable directly with meta_set_status.

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": "meta_get_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoAggregation level: account, campaign, adset, or ad (one row per individual ad). Default campaign.
sinceNoStart date YYYY-MM-DD (overrides date_preset with until).
untilNoEnd date YYYY-MM-DD.
breakdownsNoSplit each row by these dimensions (e.g. publisher_platform for Facebook vs Instagram, or age/gender). platform_position is always paired with publisher_platform. publisher_platform/platform_position cannot be combined with age, gender, country or region: make two calls instead.
campaign_idNoFilter to a single campaign id.
date_presetNoDate range preset. Default last_7d.
ad_account_idNoMeta ad account to read: act_ id or account name (from meta_list_ad_accounts). Pass it whenever the conversation is about a particular account; omitted, the only account or the stored default is used.
time_incrementNoSplit the range into periods: 1 = daily, 7 = weekly, monthly, or all_days (default, one total per entity). Each row then carries dateStart and dateStop.

Output Schema

NameRequiredDescriptionDefault
rowsYesOne row per entity at the requested level, empty when no data.
levelYesAggregation level of every row.
currencyNoISO currency code that every money field in this result is denominated in, e.g. UAH or USD. Null when it could not be resolved — do not assume a currency then.
adAccountIdYesAd account the metrics cover.
conversionMetricsUnavailableNoPresent and true when Meta refused conversion columns next to the requested breakdowns: purchases, purchase value, ROAS and actions are then missing, not 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / breakdowns / description
      Previous value: -"Split each row by these dimensions (e.g. publisher_platform for Facebook vs Instagram, or age/gender). platform_position is always paired with publisher_platform. Meta rejects some combinations."New value: +"Split each row by these dimensions (e.g. publisher_platform for Facebook vs Instagram, or age/gender). platform_position is always paired with publisher_platform. publisher_platform/platform_position cannot be combined with age, gender, country or region: make two calls instead."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint false), and the description adds real behavioral context beyond them: conversions appear only 'when the account reports them', time_increment yields 'one row per period', and each row carries the entity id. It does not discuss pagination or rate limits, but for a read-only insights call the disclosed row-granularity behavior is the material part.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and scope are front-loaded in the first sentence, followed by breakdown and time-increment behavior, then the id handoff. The metric enumeration is long but serves as a capability list an agent needs to judge fitness; there is no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not explain return values, yet it still supplies the key row-shape contract (one row per entity, one row per period, id carried for chaining). For an 8-parameter, all-optional analytics tool this is nearly complete; only pagination/row-limit behavior is unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining output-shaping semantics rather than restating types — level determines row grain, time_increment controls periodicity and adds dateStart/dateStop, and breakdowns split rows by dimension. These are consequences of parameter choices that the schema descriptions alone do not spell out.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource (get performance metrics for a Meta ad account) and enumerates the supported aggregation levels (account, campaign, ad set, ad) plus the metric families returned. This distinguishes it from sibling insight tools such as gads_get_insights or linkedin_get_insights, which cover different ad platforms.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete operational guidance: when breakdowns are incompatible (publisher_platform/platform_position cannot be combined with age/gender/country/region) it says 'make two calls instead', and it notes rows are 'usable directly with meta_set_status', establishing a follow-up workflow. It does not explicitly state when to prefer this over sibling insight tools, but the platform/level scope makes the choice clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources