Skip to main content
Glama
Meta Ads MCP

Meta Ads MCP

Get audience estimate

get_audience_estimate

Estimate reachable audience size for a Meta ad targeting spec before campaign creation, helping validate geo, age, gender, interest, and exclusion settings.

Instructions

Estimates the reachable audience size for a given targeting spec (geo, age, gender, interests, custom/lookalike audiences, exclusions, ...) in an ad account, before creating a campaign.

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": {
      "targeting": "<targeting>"
    },
    "name": "get_audience_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
targetingYesMeta targeting spec object, e.g. { "geo_locations": { "countries": ["FR"] }, "age_min": 25, "age_max": 45, "genders": [1] }
account_idNoAd account id, e.g. "act_1234567890". Required if client_id is omitted or its config entry has no ad_account_id.
optimization_goalNoDelivery optimization goal, e.g. "REACH", "LINK_CLICKS", "CONVERSIONS" (default "REACH").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. The words 'estimates' and 'before creating a campaign' convey that this is an approximate, non-mutating pre-check, but it says nothing about latency (audience estimates are typically slow), rate limits, whether invalid targeting returns an error or zero, or whether the returned number is a point estimate or a range.

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?

A single front-loaded sentence stating verb, resource, scope and timing, with no filler. The '(...)' enumeration is compact and adds information rather than padding.

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

Completeness3/5

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

The tool takes a nested, free-form targeting spec and has no output schema, no annotations, and no description of the returned estimate. The description is adequate to identify the tool but leaves the agent without knowing what value comes back or how ambiguity/errors are handled.

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 documents client_id, account_id, targeting and optimization_goal on its own. The description only enumerates the targeting facets (geo, age, gender, interests, custom/lookalike audiences, exclusions), which enriches the 'targeting' object slightly but leaves client_id/account_id/optimization_goal unmentioned. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb+resource: 'Estimates the reachable audience size for a given targeting spec' with an account scope, which is clearly distinct from reporting siblings like get_insights or CRUD siblings like create_campaign. The trailing 'before creating a campaign' implicitly points at the create family, but no sibling is named explicitly.

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?

'before creating a campaign' gives a clear usage context, telling the agent this is a pre-flight check rather than a reporting or mutation call. There are no exclusions or explicit pointers to alternative tools for other kinds of size/performance questions.

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