Skip to content
Get MCP Ads, home

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 Markdown

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. 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_tools and run_write_tool
Account parameter
adAccountId
Endpoint
https://mcp.getmcpads.com/meta-ads/mcp

Parameters

Parameters
NameTypeRequiredNotes
adAccountIdstringRequiredAd account ID (with or without act_) that owns every referenced object.
catalogIdstringRequiredNumeric catalog ID. Writes require the catalog and selected ad account to have the same owning Business.
feedIdstringRequiredfeedId.
attributestringRequiredattribute.
ruleTypestringRequiredruleType. One of: mapping_rule, value_mapping_rule, letter_case_rule, fallback_rule, regex_replace_rule.
paramsobjectRequiredNative rule parameters, for example {"map_from":"product_name"} for a mapping_rule.
confirmbooleanOptionaltrue applies. Default: a local preview, nothing changed.
validateOnlybooleanOptionalMeta validates only; nothing changes. Not with confirm.

Calling it

json · Through run_write_tool, since it is not announced
{
  "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.

Esc

Type to search