Skip to main content
Glama

ads_ad_analytics

Read-onlyIdempotent

Live performance report for one ad 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_id": "<ad_id>"
    },
    "name": "ads_ad_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_idYesAd id: the Postproxy id (id field of an ad), 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.4/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: full return shape, the metric set carried in summary and each daily row, the 5-second cache with cached: true, and where unsupported breakdowns surface. That is exactly the behavioral context an agent needs before calling.

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?

Front-loaded with purpose, then return shape, then caching, then the sibling redirect — a sensible ordering. The inline field enumeration is dense but each clause carries information; only the trailing "video metrics, ..." ellipsis is loose.

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?

There is no output schema, so the description must carry the return contract itself, and it does: top-level keys, per-row metrics, cache signaling, and the unsupported_breakdowns escape hatch. For a read-only analytics tool this leaves no important gap.

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 coverage is 100%, so the schema already documents ad_id, from/to defaults and the breakdown enum. The description adds the Meta-only breakdown caveat and the unsupported_breakdowns fallback, but nothing about date constraints or the profile_group_id scoping beyond what the schema says.

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+resource+scope: a live performance report for ONE ad over a date range. It explicitly distinguishes itself from ads_insights for many objects, so an agent can pick between them without opening either 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 when you need many objects at once. It doesn't cover adjacent siblings like ads_ad_set_analytics or ads_campaign_analytics, nor any prerequisites, so it falls short of a full when/when-not treatment.

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.