Skip to main content
Glama

Ad performance metrics

get_insights
Read-onlyIdempotent

Metrics for the ad account or an object inside it. Date ranges use the AD ACCOUNT time zone. Spend, impressions, clicks, CTR, CPC, CPM, reach, frequency, actions and cost per action, with the attribution setting and date window, for the ad account or one campaign, ad set or ad. Dates use the ad account time zone; money values are already in account currency, not minor units. Rows include the campaign, ad set and ad ids for their level. Optional: a breakdown (age, gender, country, region, placement, device, hour, creative asset), time_increment slices, extra field groups (include), a status filter, a minimum spend, sort order, attribution windows and totals. Up to 500 rows per call, fewer when the rows would not fit in one tool result; complete=false means more exist. next_after is given only when the page fit whole: pass it as after with the same other fields for the next rows; without it narrow the level, object, breakdown or date window. notes say which fields or rows Meta may leave out: a missing value is not zero. Read-only and free: changes nothing and does not count toward the monthly change limit. An identical read within 30 seconds may return the same data (see data_age_seconds).

Input Schema

NameRequiredDescriptionDefault
sortNoRow order, e.g. spend_descending. Reach and frequency sorts do not work with the hourly breakdown.
afterNonext_after from the previous call with the same other fields, to read the next rows.
levelNoAggregation level of the rows. Omit to report at the level of object_id.
limitNoRows per call, 1 to 500. Default 500.
totalsNotrue adds summary: totals for the whole result, as Meta computes them.
includeNoExtra field groups: names (account, campaign, ad set and ad names); results (results, cost_per_result, objective, optimization goal; not at level account); value (action_values, purchase_roas, website_purchase_roas; not at level account); links (inline and outbound link clicks, CTR and cost); video (plays, 25–100% watched, ThruPlay, average watch time; not with region or hourly); ranking (quality, engagement rate and conversion rate rankings).
min_spendNoOnly rows that spent more than this in the window, in the ad account currency (not minor units); 0 drops rows without spend.
object_idNoCampaign, ad set or ad id, or act_<ad account id>, from a read of this ad account. Omit for the whole ad account.
breakdownsNoSplit the rows by one Meta breakdown. publisher_platform with platform_position is the placement split; hourly_stats_aggregated_by_advertiser_time_zone is by hour in the ad account time zone and has no reach or frequency; device_platform is mobile or desktop; image_asset, body_asset, title_asset and description_asset split ads by creative asset.
connectionNoWhich connected ad account to use: the connection id from start_here or the ad account number (act_123 or 123). Needed only when several ad accounts are connected.
time_rangeNoExplicit inclusive window, as an object {"since":"2026-08-01","until":"2026-08-31"}, not a JSON string.
date_presetNoRelative window in the ad account time zone, e.g. today, yesterday, last_7d, last_30d, this_month, maximum. Default last_7d (applied in run). Ignored when time_range is given.
time_incrementNoTime slices: a number of days per row (1 to 90), "monthly", or "all_days" for one row per window.
effective_statusNoOnly rows of objects whose effective status is one of these, e.g. ["ACTIVE"]; needs level campaign, adset or ad. List ARCHIVED or DELETED to include such objects.
attribution_windowsNoReport actions per attribution window, e.g. ["7d_click","1d_view"]: each action gets a key for every window that has a value. Omit for the attribution setting of the ad sets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes well beyond them: it discloses the 500-row cap, that complete=false signals more rows, how next_after/after pagination works, that an identical read within 30 seconds may be cached (data_age_seconds), that reads are free and don't count toward the monthly change limit, and that missing values are not zero. This is rich operational context an agent cannot get from annotations alone.

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

Conciseness3/5

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

The purpose and key constraints are front-loaded, but the prose is dense and redundant: 'Date ranges use the AD ACCOUNT time zone' is restated as 'Dates use the ad account time zone', and the optional-parameter list partly duplicates the schema. Several sentences are run-ons that bury the pagination contract mid-paragraph.

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?

For a 15-parameter, no-required-arg tool with no output schema, the description covers the essentials an agent needs: scope, time zone, currency, pagination contract, caching, and status-filter level constraints. Return-shape detail is limited (no output schema exists to compensate), but complete/next_after/data_age_seconds/notes give enough to consume results safely.

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, and 15 params each carry their own schema descriptions. The description still adds meaning the schema does not: money values are in account currency not minor units (relevant to min_spend), dates resolve in the ad account time zone, rows carry campaign/adset/ad ids at their level, and next_after must be replayed with identical other fields. This pushes it above the 3 baseline.

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

Purpose4/5

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

The description opens with a specific verb+resource: metrics for the ad account or an object inside it, and enumerates the returned measures (spend, impressions, CTR, CPC, CPM, reach, frequency, actions). An agent can tell what it produces without opening the schema. It does not, however, explicitly distinguish itself from siblings like performance_overview, performance_dashboard or meta_ads_read, so differentiation is left implicit.

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

Usage Guidelines3/5

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

The description gives contextual cues for specific parameters (e.g. when to use breakdowns, that hourly has no reach/frequency, that effective_status needs a non-account level, and that include results/value are not available at account level). But it never states when to prefer this tool over sibling read/performance tools, nor any prerequisite beyond 'from a read of this ad account'. Use guidance is implied rather than explicit.

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.