Skip to main content
Glama

Google Ads & Meta Ads

Meta: Create Custom Audience

meta_create_audience

Create a custom audience in your Meta ad account: CUSTOMER_LIST (empty, then add people with meta_update_audience_users), WEBSITE (visitors your pixel saw in the last retention_days, optionally only URLs containing url_contains or one pixel event), ENGAGEMENT (people who engaged with your Facebook Page or Instagram account), or LOOKALIKE (people similar to an audience you already have, in one country). It reaches no one and spends nothing until an ad set targets it. See meta_list_audiences.

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": {
      "audience_type": "<audience_type>",
      "name": "<name>"
    },
    "name": "meta_create_audience"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesAudience name.
ratioNoLOOKALIKE: share of the country's population, 0.01 (closest) to 0.20. Default 0.01.
countryNoLOOKALIKE: ISO country code, e.g. US.
pixel_idNoWEBSITE: pixel. Defaults to the account's pixel.
source_idNoENGAGEMENT: Page id (defaults to the account's Page) or Instagram account id (see meta_list_instagram_accounts).
descriptionNoOptional description.
pixel_eventNoWEBSITE: only people who fired this pixel event, e.g. Purchase, Lead.
url_containsNoWEBSITE: only visits to URLs containing this text.
ad_account_idNoMeta ad account to change: act_ id or exact account name. Required when you have several ad accounts — the stored default is never used for a change then.
audience_typeYesKind of audience.
retention_daysNoWEBSITE (1-180) or ENGAGEMENT (1-365): look-back window. Default 30.
engagement_sourceNoENGAGEMENT: PAGE or INSTAGRAM.
origin_audience_idNoLOOKALIKE: audience to model on.

Output Schema

NameRequiredDescriptionDefault
audienceIdYesId of the new audience.
adAccountIdYesAd account the audience belongs to.
audienceTypeYesKind of audience.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=true and idempotentHint=false, so the safety profile is structured. The description adds genuine context beyond them: a created audience is inert ('reaches no one and spends nothing') until targeted by an ad set, and it describes what each type captures (pixel retention window, URL/event filters, lookalike ratio/country). It does not discuss duplicate creation on retry despite idempotentHint=false, or audience population latency.

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?

The core action and the four type branches are front-loaded in the first sentence, with the scoping caveat and sibling pointer at the end. It is dense but economical; the type enumeration is a long run-on clause that takes a second read to parse.

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?

For a 13-parameter mutation with full schema coverage, an output schema, and complete annotations, the description supplies exactly the missing semantic layer: what each audience type means and what it does not do. Nothing an agent needs to choose a type and call the tool is absent.

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 coverage is 100%, so baseline is 3, but the description goes further by framing parameters conditionally per audience type in prose (retention_days only for pixel/engagement windows, url_contains and pixel_event only for WEBSITE, country/ratio only for LOOKALIKE). It does not state which parameters become effectively required for each type, so a gap remains.

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 names a specific verb and resource ('Create a custom audience in your Meta ad account') and then defines all four audience_type values (CUSTOMER_LIST, WEBSITE, ENGAGEMENT, LOOKALIKE) with their actual semantics. It also distinguishes itself from siblings by naming meta_update_audience_users for populating lists and meta_list_audiences for viewing them.

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?

Usage routing is implied clearly per type: empty CUSTOMER_LIST 'then add people with meta_update_audience_users' and 'See meta_list_audiences' points to the follow-up and listing tools. The line 'It reaches no one and spends nothing until an ad set targets it' sets expectations about scope. It does not explicitly state when NOT to create an audience or prerequisites such as account selection, which is left to the schema.

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.

Resources