Skip to main content
Glama

meta_ads_analysis_audience

Analyzes age-gender segment performance, identifies best and worst buckets with spend, conversions, CPA, and actionable recommendations like pausing underperforming segments.

Instructions

Scores delivery efficiency across age × gender segments and flags the best and worst performing buckets. Returns rows per age_range × gender with spend, conversions, CPA, and a relative_score vs the campaign average, plus a recommendations array (e.g. 'Pause 55-64 male — 3x CPA, 1 conversion'). Read-only. Use before adjusting targeting; for raw breakdown numbers use meta_ads_insights_breakdown with breakdown='age,gender'.

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.
campaign_idYesCampaign to analyse.
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.
Behavior5/5

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

Despite no annotations, the description declares 'Read-only' and details the output structure (rows with specific fields and recommendations). No behavioral gaps or contradictions.

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?

Three sentences efficiently convey purpose, outputs, and usage guidance. No redundant information.

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?

Fully covers the tool's purpose, output fields, recommendations, and usage context. No output schema but description compensates with explicit output detail.

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 covers all 3 parameters with descriptions. The description adds a valuable note about period costing more Graph API quota, exceeding the baseline.

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 uses a specific verb ('scores') and resource ('delivery efficiency across age × gender segments'), clearly distinguishing it from sibling tools like meta_ads_insights_breakdown.

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

Usage Guidelines5/5

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

Explicitly states when to use ('before adjusting targeting') and provides an alternative for raw breakdowns (meta_ads_insights_breakdown with breakdown='age,gender'). No ambiguity.

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