Skip to main content
Glama

meta_ads_audiences_create

Build a Custom Audience in Meta Ads using website pixel events, custom rules, or app data. Returns the audience ID for use in campaigns.

Instructions

Creates a Custom Audience in a Meta Ads account. Returns the new audience_id. Mutating — not automatically reversible; record before-state with mureo_state_action_log_append if you may need to roll back. Subtype controls the data source: WEBSITE audiences require a pixel_id and an event rule; CUSTOM audiences accept a manually supplied rule or a customer list upload (the upload path is handled out-of-band by Meta). For similarity-expanded reach use meta_ads_audiences_create_lookalike on top of this audience.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesAudience name shown in Ads Manager. Must be unique within the account.
ruleNoAudience rule definition (Meta rule JSON schema). When omitted with subtype=WEBSITE, a default PageView rule scoped to the supplied pixel is auto-generated. See Meta Marketing API docs for rule syntax — supports url filters, event parameters, and compound boolean operators.
subtypeNoAudience type hint. WEBSITE auto-generates a PageView rule from the linked pixel when `rule` is omitted; CUSTOM requires an explicit rule or a customer-list upload; APP requires an app_id. Default CUSTOM when omitted.
pixel_idNoMeta Pixel ID to source events from. Required for subtype=WEBSITE. Find via meta_ads.pixels.list.
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.
descriptionNoOptional free-text description stored with the audience. Not visible to end users.
retention_daysNoHow long a matched user stays in the audience after their last qualifying event. Default 30. Meta caps at 180 days.
customer_file_sourceNoSource declaration required by Meta for compliance. USER_PROVIDED_ONLY (default) — data came from the advertiser's own first-party sources; PARTNER — from a data provider; BOTH — mixed. Meta uses this to set legal-basis defaults.
Behavior4/5

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

With no annotations provided, the description takes on the full burden of transparency. It discloses that the operation is 'Mutating — not automatically reversible' and recommends recording before-state using mureo_state_action_log_append for rollback. It also explains subtype-specific behavior (e.g., default rule generation for WEBSITE). Missing details on permissions, rate limits, or idempotency, but overall sufficient.

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 concise at approximately 6 sentences, with no fluff. It front-loads the core purpose and return value, then provides mutation warning, subtype details, and a cross-reference to the lookalike tool. Every sentence adds value, making it easy for an AI agent to parse quickly.

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 the lack of annotations and output schema, the description covers the essential aspects: creation, return value, mutation warning, subtype-specific behavior, and relationship to a sibling tool. It does not address error conditions, permission requirements, or idempotency, but for a creation tool with 8 parameters, the provided context is reasonably complete.

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?

Since schema description coverage is 100%, the baseline is 3. The description adds value by explaining the interplay between subtype, pixel_id, and rule (e.g., 'WEBSITE auto-generates a PageView rule from the linked pixel when rule is omitted'). It also provides context for the customer_file_source parameter in relation to Meta compliance. This goes beyond repeating 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's purpose: 'Creates a Custom Audience in a Meta Ads account. Returns the new audience_id.' It specifies the resource (Custom Audience) and action (create), and explicitly differentiates from the sibling tool meta_ads_audiences_create_lookalike for similarity-expanded reach.

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 provides explicit context on when to use different subtypes (WEBSITE, CUSTOM, APP) and their prerequisites (pixel_id for WEBSITE, rule for CUSTOM). It also directs users to use meta_ads_audiences_create_lookalike for lookalike audiences. However, it does not explicitly state when not to use this tool (e.g., for audience deletion or listing).

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