Skip to main content
Glama
Meta Ads MCP

Meta Ads MCP

Get insights

get_insights

Retrieve ad performance metrics (impressions, CTR, ROAS, spend) for accounts, campaigns, ad sets, or ads with custom date ranges and demographic or placement breakdowns.

Instructions

Fetches performance metrics (impressions, reach, CTR, CPC, CPM, spend, ROAS, conversions, inline_link_clicks, cost_per_action_type) for an ad account, campaign, ad set or ad, with optional date range and breakdowns (age, gender, placement, device). Pass level: "ad" to also get Meta's relevance diagnostics (quality_ranking, engagement_rate_ranking, conversion_rate_ranking) — these return "UNKNOWN" below ~500 impressions.

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

Input Schema

NameRequiredDescriptionDefault
levelNoAggregation level. Inferred from object_id when omitted.
limitNoMax rows to return (default 100).
sinceNoCustom range start, YYYY-MM-DD. Overrides date_preset if set with until.
untilNoCustom range end, YYYY-MM-DD. Overrides date_preset if set with since.
client_idNoClient identifier from accounts.config.json. Resolves the ad account and token automatically. Omit to use account_id + the default META_ACCESS_TOKEN instead.
object_idNoCampaign, ad set or ad id to scope insights to. Omit to get account-level insights.
account_idNoAd account id, e.g. "act_1234567890". Required if client_id is omitted or its config entry has no ad_account_id.
breakdownsNoDimensions to break results down by.
date_presetNoRelative date range, e.g. "last_30d" (default).
time_incrementNoDays per returned row. Omit for a single row aggregating the whole range. Pass 1 for a daily series.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral load; it does disclose the metric set and an important caveat that relevance rankings return "UNKNOWN" below ~500 impressions. It does not cover auth/permission needs, rate limits, pagination/limit behavior, or the shape of the returned rows, leaving meaningful behavioral gaps for a 10-parameter fetch tool.

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 is front-loaded and the text avoids filler, with only two sentences. The long parenthetical metric list makes the first sentence dense, but each element is relevant to what the tool returns.

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 10-parameter, annotation-free read tool with no output schema, the description covers the core purpose, entity levels, date/breakdown options, and the key diagnostics caveat. It leaves some return-shape and operational details implicit, but the high schema coverage fills most parameter gaps.

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 parameter descriptions already carry most semantics. The description adds value by explaining that level "ad" unlocks relevance diagnostics and by noting the UNKNOWN threshold, though its breakdown examples ("placement," "device") are looser than the schema's enumerated fields.

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 opens with a specific verb ("Fetches") and resource ("performance metrics") and enumerates the entity levels (account, campaign, ad set, ad) plus the exact metrics. This makes it clearly distinct from entity-listing siblings like get_ads/get_campaigns, which return objects rather than metrics.

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?

It gives useful in-tool guidance such as passing level "ad" for relevance diagnostics and using date range/breakdowns, but it never states when to choose this over sibling tools or any exclusions. The intended use is implied by "performance metrics," not explicitly contrasted with alternatives.

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