meta_ create_ feed_ rule
Add a transformation rule to a feed: map a column to a Meta field, map values, change letter case, set a fallback or replace with a regular expression.
View as MarkdownAdd a transformation rule to a feed: map a column to a Meta field, map values, change letter case, set a fallback or replace with a regular expression. A feed has one rule per attribute and rule type. Preview by default; no automatic retry; ownership checked before any write.
- Source
- Meta Ads
- Kind
- Write
- Discovery
- Reachable through
search_toolsandrun_write_tool - Account parameter
adAccountId- Endpoint
- https:/
/ mcp. getmcpads. com/ meta-ads/ mcp
Parameters
| Name | Type | Required | Notes |
|---|---|---|---|
adAccountId | string | Required | Ad account ID (with or without act_) that owns every referenced object. |
catalogId | string | Required | Numeric catalog ID. Writes require the catalog and selected ad account to have the same owning Business. |
feedId | string | Required | feedId. |
attribute | string | Required | attribute. |
ruleType | string | Required | ruleType. One of: mapping_rule, value_, letter_case_rule, fallback_rule, regex_. |
params | object | Required | Native rule parameters, for example {"map_from":"product_name"} for a mapping_rule. |
confirm | boolean | Optional | true applies. Default: a local preview, nothing changed. |
validateOnly | boolean | Optional | Meta validates only; nothing changes. Not with confirm. |
Calling it
{
"name": "run_write_tool",
"arguments": {
"name": "meta_create_feed_rule",
"args": {
"adAccountId": "<string>",
"catalogId": "<string>",
"feedId": "<string>",
"attribute": "<string>",
"ruleType": "mapping_rule",
"params": "<object>"
}
}
}Manage your ads from your AI assistant
Start for free
Free with 1 ad account, no card. Pro is free for 7 days.