Skip to main content
Glama

ads_ad_set_analytics

Read-onlyIdempotent

Live performance report for one ad set over a date range. Returns { id, kind, platform, currency, range, summary, daily: [...], breakdowns, unsupported_breakdowns, cached }; summary and each daily row carry the full metric set (spend, impressions, reach, clicks, ctr, cpc, cpm, conversions, roas, video metrics, ...). A repeat within 5 seconds returns the previous answer with cached: true. For many objects at once use ads_insights.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ad_set_id": "<ad_set_id>"
    },
    "name": "ads_ad_set_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd date, YYYY-MM-DD. Defaults to today.
fromNoStart date, YYYY-MM-DD. Defaults to 30 days ago. At most 37 months back.
ad_set_idYesAd set id: the Postproxy id (id field of an ad set), not the network's platform_id
breakdownsNoSplit the metrics by these dimensions. Meta only; ones the network does not offer come back in unsupported_breakdowns.
profile_group_idNoProfile group hashid, to scope the call to one profile group. Usually not needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so safety is covered. The description adds real value beyond them: a 5-second deduplication window that returns cached:true, the exact response envelope, and the fact that unsupported breakdowns are surfaced rather than erroring.

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?

Three sentences, front-loaded with purpose, then return shape, then the caching caveat, then the sibling routing. Dense but every clause carries information; the metric enumeration is slightly padded but justifies what the summary rows contain.

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

Completeness5/5

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

No output schema exists, so the description carries the return contract and does so explicitly — envelope keys, per-row metric set, and the cached flag. Combined with full parameter coverage from the schema, an agent has everything needed to call and interpret it.

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

Parameters3/5

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

Schema description coverage is 100%, so date defaults, the 37-month lookback, the Postproxy-vs-platform_id distinction, and the breakdown enum are all already documented. The description reiterates the date-range concept and the unsupported_breakdowns behavior but adds no new parameter meaning beyond the schema. Baseline 3 applies.

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?

States a specific verb and resource ('Live performance report for one ad set') plus scope ('over a date range'), and explicitly distinguishes itself from ads_insights for the many-objects case. An agent can select it without opening the schema.

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?

Gives a clear routing rule: use ads_insights for many objects at once, this tool for a single ad set. It does not address the other analytics siblings (ads_ad_analytics, ads_campaign_analytics), but the single-object framing plus the named alternative is enough context to choose correctly.

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.