Skip to main content
Glama

meta_ads_analysis_compare_ads

Compare ads within a single ad set to identify winners and laggards based on efficiency metrics like CPA and CTR. Use the verdict to decide which creatives to pause.

Instructions

Runs an A/B-style comparison of ads inside a single ad set, ranking them by efficiency and flagging statistically meaningful winners. Returns rows per ad with impressions, spend, conversions, CPA, CTR, and a relative-score vs the ad set average, plus a verdict (winner / laggard / insufficient-data). Read-only. Use this to decide which creatives to pause; pair with meta_ads_ads_pause for action.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idNoMeta Ads account ID in the format 'act_XXXXXXXXXX' (e.g. 'act_1234567890'). Optional — falls back to META_ADS_ACCOUNT_ID from the configured credentials. The leading 'act_' prefix is required.
ad_set_idYesAd set whose ads will be compared. Comparison is always within a single ad set (same targeting, same budget) so differences reflect creative.
periodNoAnalysis window. Accepts Meta predefined ranges ('today', 'yesterday', 'last_7d', 'last_14d', 'last_30d' (default), 'last_90d', 'this_month', 'last_month') or explicit 'YYYY-MM-DD..YYYY-MM-DD' (both endpoints inclusive). Longer windows cost more Graph API quota.
Behavior4/5

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

No annotations are provided, so the description carries full burden. It declares the tool as 'Read-only' and describes the output fields and verdict types. It could mention data freshness or quota implications, but the period parameter description covers quota cost. Overall, it adequately discloses behavior for a read-only analysis tool.

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

Conciseness5/5

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

The description is two sentences long, front-loaded with the core purpose, and every sentence adds unique value. It efficiently communicates the tool's function, output, and recommended pairing with another tool.

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?

Given no output schema, the description outlines the return format (rows per ad with metrics and verdict). It covers the scope (single ad set) and mentions the verdict types. A minor gap is the lack of detail on how statistical significance or relative scoring is calculated, but it is sufficient for an agent to determine usefulness.

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 description coverage is 100%, but the description adds value by explaining why ad_set_id should be within a single ad set ('same targeting, same budget') and notes that longer periods cost more Graph API quota. Account_id fallback is also mentioned. This enriches the schema descriptions.

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 clearly states the tool performs an A/B-style comparison of ads within a single ad set, ranking them by efficiency and flagging winners/laggards. It lists specific output metrics (impressions, spend, conversions, CPA, CTR, relative-score, verdict) and distinguishes from sibling tools like meta_ads_analysis_performance and meta_ads_split_tests.

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?

The description explicitly says to use this tool to decide which creatives to pause and to pair with meta_ads_ads_pause for action. It implies the context of a single ad set. While it doesn't explicitly state when not to use or list alternatives, the guidance is clear and actionable.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/logly/mureo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server