Skip to main content
Glama

Propose rebuilding a Meta ad

propose_ad_rebuild

Propose a new PAUSED image, video or text-options ad in the source ad set, preserving supported source media, Page and form. Optional replacement text, new form or explicit pixel. Carousel requires mode new_ad_set and EU targeting requires dsa_beneficiary/dsa_payor. Placement rules are reconstructed only when unambiguous with one text per kind. Dynamic creatives are unsupported. No Meta prevalidation with an existing ad set. Source pixel tracking and own video thumbnail are not copied. Activation needs a separate swap. MCP never consents. Optional placement_videos {default_video_id, vertical_video_id, vertical_placements} (placement_rules or single_video sources, same ad set): default video 4:5 or 1:1 for all other placements, vertical 9:16 for vertical_placements, default "stories_reels" = Facebook story + facebook_reels, Instagram story + reels; both must be ready in the ad account library, inside the ad set's placements; the source's other rules are replaced. After approval it runs in steps and can stay on executing for some minutes; get_change shows progress per phase.

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": {
      "site_id": "<site_id>",
      "reason": "<reason>",
      "account": "<account>",
      "source_ad_id": "<source_ad_id>"
    },
    "name": "propose_ad_rebuild"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
reasonYes
accountYes
ad_nameNo
replaceNo
site_idYes
creativeNo
pixel_idNo
dsa_payorNo
ad_set_nameNo
source_ad_idYes
dsa_beneficiaryNo
lead_gen_form_idNo
placement_videosNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / properties / lead_gen_form_id / $ref
      Removed value: -"#/properties/source_ad_id"
    • addedInput schema / properties / lead_gen_form_id / pattern
      Added value: +"^\\d{1,100}$"
    • addedInput schema / properties / lead_gen_form_id / type
      Added value: +"string"
    • removedInput schema / properties / pixel_id / $ref
      Removed value: -"#/properties/source_ad_id"
    • addedInput schema / properties / pixel_id / pattern
      Added value: +"^\\d{1,100}$"
    • addedInput schema / properties / pixel_id / type
      Added value: +"string"
    • removedInput schema / properties / placement_videos / properties / vertical_video_id / $ref
      Removed value: -"#/properties/placement_videos/properties/default_video_id"
    • addedInput schema / properties / placement_videos / properties / vertical_video_id / pattern
      Added value: +"^\\d{1,30}$"
    • addedInput schema / properties / placement_videos / properties / vertical_video_id / type
      Added value: +"string"
  2. Changed1 schema field changed
    • addedInput schema / properties / placement_videos
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "default_video_id": {
      +      "pattern": "^\\d{1,30}$",
      +      "type": "string"
      +    },
      +    "vertical_placements": {
      +      "anyOf": [
      +        {
      +          "const": "stories_reels",
      +          "type": "string"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "audienceNetworkPositions": {
      +              "items": {
      +                "enum": [
      +                  "classic",
      +                  "rewarded_video"
      +                ],
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "devicePlatforms": {
      +              "items": {
      +                "enum": [
      +                  "mobile",
      +                  "desktop"
      +                ],
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "facebookPositions": {
      +              "items": {
      +                "enum": [
      +                  "feed",
      +                  "right_hand_column",
      +                  "marketplace",
      +                  "story",
      +                  "search",
      +                  "instream_video",
      +                  "facebook_reels",
      +                  "facebook_reels_overlay",
      +                  "profile_feed",
      +                  "notification"
      +                ],
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "instagramPositions": {
      +              "items": {
      +                "enum": [
      +                  "stream",
      +                  "story",
      +                  "explore",
      +                  "explore_home",
      +                  "reels",
      +                  "profile_feed",
      +                  "ig_search",
      +                  "profile_reels"
      +                ],
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "messengerPositions": {
      +              "items": {
      +                "enum": [
      +                  "messenger_home",
      +                  "sponsored_messages",
      +                  "story"
      +                ],
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "publisherPlatforms": {
      +              "items": {
      +                "enum": [
      +                  "facebook",
      +                  "instagram",
      +                  "threads",
      +                  "messenger",
      +                  "audience_network",
      +                  "whatsapp"
      +                ],
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "threadsPositions": {
      +              "items": {
      +                "const": "threads_stream",
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "whatsappPositions": {
      +              "items": {
      +                "const": "status",
      +                "type": "string"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "vertical_video_id": {
      +      "$ref": "#/properties/placement_videos/properties/default_video_id"
      +    }
      +  },
      +  "required": [
      +    "default_video_id",
      +    "vertical_video_id"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / ad_set_name
      Added value: +{
      +  "maxLength": 120,
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say it is a non-idempotent, non-destructive open-world write; the description adds far more: the ad is created PAUSED, no Meta prevalidation occurs with an existing ad set, source pixel tracking and own video thumbnail are not copied, MCP never consents, and execution runs in phases that can sit on 'executing' for minutes with progress visible via get_change. That is exactly the behavior an agent needs to set expectations.

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?

Front-loaded with purpose and scope, then constraints, then the one genuinely complex parameter; almost every clause carries unique information. The placement_videos sentence is a dense parenthetical run-on that takes effort to parse, which is the main structural weakness.

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 14-parameter, nested, no-output-schema mutation tool, the description covers the mutation semantics, the constraints that cause failures, what is deliberately not carried over, and how to observe async progress. Nothing material for correct invocation is missing.

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?

With 0% schema description coverage across 14 parameters, the description carries the burden and does add meaning for the hard ones: placement_videos fields and their 4:5 / 9:16 / 'stories_reels' semantics, mode's new_ad_set requirement, the dsa_* pair, replace ('replacement text'), creative ('text-options'), pixel_id and lead_gen_form_id. It leaves site_id, reason, account, ad_name, ad_set_name and source_ad_id unexplained, which keeps it from a 5.

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?

States a specific verb and resource ('Propose a new PAUSED image, video or text-options ad in the source ad set') plus the preservation scope (media, Page, form), which cleanly separates it from propose_ad_create, propose_ad_duplicate and propose_ad_edit. An agent can pick this over its siblings without opening any schema.

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?

Gives concrete when/when-not rules: carousel requires mode new_ad_set, EU targeting requires dsa_beneficiary/dsa_payor, dynamic creatives are unsupported, and 'Activation needs a separate swap' points the agent to the swap flow. It stops short of naming the sibling tools explicitly, so routing is inferred rather than stated.

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