Custom audiences
meta_audienceCreate a custom audience. create_website: from pixel events and URL rules (up to 180 days). create_lookalike: from a seed audience in the same account; ratios are 0 to 1. create_engagement: from a Facebook Page or Instagram business account. To delete one, use meta_delete_audience. Changes the ad account: tell the user exactly what will change and call only after their Yes. If the result lists rule reasons, nothing changed: show them, ask again, and only after a new Yes retry with acknowledge_rules: true.
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": {
"action": "<action>",
"account_id": "<account_id>",
"name": "<name>"
},
"name": "meta_audience"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| event | No | Required for create_engagement | |
| ratio | No | Only create_lookalike | |
| action | Yes | ||
| country | No | Required for create_lookalike | |
| prefill | No | Only create_website | |
| pixel_id | No | Required for create_website. A string, never a number | |
| source_id | No | Required for create_engagement. A string, never a number | |
| account_id | Yes | e.g. act_1234567890 | |
| description | No | ||
| source_type | No | Required for create_engagement | |
| url_contains | No | Only create_website | |
| exclude_events | No | Only create_website | |
| include_events | No | Only create_website | |
| retention_days | No | Default 30; create_website max 180 | |
| starting_ratio | No | Only create_lookalike | |
| acknowledge_rules | No | Only on a retry after the user's Yes to rule reasons; never on a first call. | |
| origin_audience_id | No | Required for create_lookalike. A string, never a number | |
| exclude_url_contains | No | Only create_website |