Skip to main content
Glama

Propose an ad edit or status change

propose_ad_edit

Meta field rules: special_ad_categories and countries are required only for creating objects (ad_create, adset_create, ad_add, boost); switches (adset_pause, adset_resume, ad_pause, ad_resume) and ad_edit inherit the categories of the campaign, adset_edit needs countries only with targeting. Example adset_resume: {platform:meta_ads, site_id, account, action:adset_resume, object_type:ad_set, object_id, name, reason}. Example ad_resume: same with action:ad_resume, object_type:ad. Schema errors name the field and reason. A video id from an approved propose_ad_video_upload can be used where videoId is accepted. Propose edits with platform. Meta ad_pause/ad_resume and ad_edit address synced ads by Meta ad id. Meta ad_edit supports exact case-sensitive replace pairs or explicit text fields: use the singular field for one option, arrays for multiple options with unchanged count and order. Link/CTA allowed on supported formats, imageUrl/videoId only on story image/video. Explicit existingCreativeId ignores all other fields. Active carousel edits require a paused copy; card text needs rebuild. Full-set/existing-post creatives require propose_ad_rebuild. Meta re-reviews edited ads. Google: campaign name/budget/planning/status, ad-group status/CPC, RSA text in place, ad_pause/ad_resume and keyword_pause/keyword_resume with object_id/ad_set_id. Ad/keyword resume counts the live campaign daily budget unless campaign/group is paused or the same group already has another enabled, non-disapproved ad and enabled, non-negative, non-disapproved keyword. Unknown budget blocks autopilot. Never remove, keyword bid, URL/strategy/shared-budget changes. TikTok/LinkedIn/Pinterest: ad-set daily budget and ad-set switches on all three; individual ad switches require ad_set_id and a live status read, otherwise state_unavailable. TikTok also body/linkUrl/callToAction edits. LinkedIn creative replacement deletes the old ad and is refused. Pinterest has no creative edit. Social schedules/targeting edits are not supported in this round. Owner currency caps apply, unknown live budget blocks autopilot. No preview on social platforms. MCP never consents.

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>",
      "account": "<account>",
      "action": "<action>",
      "object_type": "<object_type>",
      "name": "<name>",
      "reason": "<reason>"
    },
    "name": "propose_ad_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNo
nameYes
actionYes
reasonYes
accountYes
cpc_bidNo
replaceNo
site_idYes
board_idNo
creativeNo
end_dateNo
keywordsNo
platformNometa_ads
ad_set_idNo
countriesNo
dsa_payorNo
object_idNo
targetingNo
final_urlsNo
start_dateNo
campaign_idNo
identity_idNo
object_typeYes
daily_budgetNo
dsa_beneficiaryNo
expected_impactNo
idempotency_keyNo
organization_idNo
promoted_objectNo
lead_gen_form_idNo
platform_post_idNo
special_ad_categoriesNo
eu_political_advertisingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed28 schema fields changed
    • removedInput schema / properties / ad_set_id / $ref
      Removed value: -"#/properties/object_id"
    • addedInput schema / properties / ad_set_id / pattern
      Added value: +"^\\d{1,20}$"
    • addedInput schema / properties / ad_set_id / type
      Added value: +"string"
    • removedInput schema / properties / campaign_id / $ref
      Removed value: -"#/properties/object_id"
    • addedInput schema / properties / campaign_id / pattern
      Added value: +"^\\d{1,20}$"
    • addedInput schema / properties / campaign_id / type
      Added value: +"string"
    • changedInput schema / properties / creative / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bodies": {
      -        "items": {
      -          "maxLength": 5000,
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "maxItems": 5,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "body": {
      -        "maxLength": 5000,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "callToAction": {
      -        "maxLength": 80,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "description": {
      -        "maxLength": 1000,
      -        "type": "string"
      -      },
      -      "descriptions": {
      -        "items": {
      -          "maxLength": 255,
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "maxItems": 5,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "existingCreativeId": {
      -        "$ref": "#/properties/account"
      -      },
      -      "headline": {
      -        "maxLength": 255,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "headlines": {
      -        "items": {
      -          "maxLength": 255,
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "maxItems": 5,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "imageUrl": {
      -        "$ref": "#/properties/creative/anyOf/0/properties/linkUrl"
      -      },
      -      "linkUrl": {
      -        "maxLength": 2000,
      -        "type": "string"
      -      },
      -      "videoId": {
      -        "$ref": "#/properties/account"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "descriptions": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "pinnedField": {
      -              "enum": [
      -                "DESCRIPTION_1",
      -                "DESCRIPTION_2"
      -              ],
      -              "type": "string"
      -            },
      -            "text": {
      -              "maxLength": 90,
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "text"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 4,
      -        "minItems": 2,
      -        "type": "array"
      -      },
      -      "headlines": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "pinnedField": {
      -              "enum": [
      -                "HEADLINE_1",
      -                "HEADLINE_2",
      -                "HEADLINE_3"
      -              ],
      -              "type": "string"
      -            },
      -            "text": {
      -              "maxLength": 30,
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "text"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 15,
      -        "minItems": 3,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "headlines",
      -      "descriptions"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bodies": {
      +        "items": {
      +          "maxLength": 5000,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "maxItems": 5,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "body": {
      +        "maxLength": 5000,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "callToAction": {
      +        "maxLength": 80,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "description": {
      +        "maxLength": 1000,
      +        "type": "string"
      +      },
      +      "descriptions": {
      +        "items": {
      +          "maxLength": 255,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "maxItems": 5,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "existingCreativeId": {
      +        "pattern": "^[A-Za-z0-9_:.\\-]{1,100}$",
      +        "type": "string"
      +      },
      +      "headline": {
      +        "maxLength": 255,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "headlines": {
      +        "items": {
      +          "maxLength": 255,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "maxItems": 5,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "imageUrl": {
      +        "maxLength": 2000,
      +        "type": "string"
      +      },
      +      "linkUrl": {
      +        "maxLength": 2000,
      +        "type": "string"
      +      },
      +      "videoId": {
      +        "pattern": "^[A-Za-z0-9_:.\\-]{1,100}$",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "descriptions": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "pinnedField": {
      +              "enum": [
      +                "DESCRIPTION_1",
      +                "DESCRIPTION_2"
      +              ],
      +              "type": "string"
      +            },
      +            "text": {
      +              "maxLength": 90,
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "text"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 4,
      +        "minItems": 2,
      +        "type": "array"
      +      },
      +      "headlines": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "pinnedField": {
      +              "enum": [
      +                "HEADLINE_1",
      +                "HEADLINE_2",
      +                "HEADLINE_3"
      +              ],
      +              "type": "string"
      +            },
      +            "text": {
      +              "maxLength": 30,
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "text"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 15,
      +        "minItems": 3,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "headlines",
      +      "descriptions"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / lead_gen_form_id / $ref
      Removed value: -"#/properties/account"
    • addedInput schema / properties / lead_gen_form_id / pattern
      Added value: +"^[A-Za-z0-9_:.\\-]{1,100}$"
    • addedInput schema / properties / lead_gen_form_id / type
      Added value: +"string"
    • removedInput schema / properties / platform_post_id / $ref
      Removed value: -"#/properties/account"
    • addedInput schema / properties / platform_post_id / pattern
      Added value: +"^[A-Za-z0-9_:.\\-]{1,100}$"
    • addedInput schema / properties / platform_post_id / type
      Added value: +"string"
    • removedInput schema / properties / promoted_object / properties / applicationId / $ref
      Removed value: -"#/properties/account"
    • addedInput schema / properties / promoted_object / properties / applicationId / pattern
      Added value: +"^[A-Za-z0-9_:.\\-]{1,100}$"
    • addedInput schema / properties / promoted_object / properties / applicationId / type
      Added value: +"string"
    • removedInput schema / properties / promoted_object / properties / objectStoreUrl / $ref
      Removed value: -"#/properties/creative/anyOf/0/properties/linkUrl"
    • addedInput schema / properties / promoted_object / properties / objectStoreUrl / maxLength
      Added value: +2000
    • addedInput schema / properties / promoted_object / properties / objectStoreUrl / type
      Added value: +"string"
    • removedInput schema / properties / promoted_object / properties / pageId / $ref
      Removed value: -"#/properties/account"
    • addedInput schema / properties / promoted_object / properties / pageId / pattern
      Added value: +"^[A-Za-z0-9_:.\\-]{1,100}$"
    • addedInput schema / properties / promoted_object / properties / pageId / type
      Added value: +"string"
    • removedInput schema / properties / promoted_object / properties / pixelId / $ref
      Removed value: -"#/properties/account"
    • addedInput schema / properties / promoted_object / properties / pixelId / pattern
      Added value: +"^[A-Za-z0-9_:.\\-]{1,100}$"
    • addedInput schema / properties / promoted_object / properties / pixelId / type
      Added value: +"string"
    • removedInput schema / properties / promoted_object / properties / productSetId / $ref
      Removed value: -"#/properties/account"
    • addedInput schema / properties / promoted_object / properties / productSetId / pattern
      Added value: +"^[A-Za-z0-9_:.\\-]{1,100}$"
    • addedInput schema / properties / promoted_object / properties / productSetId / type
      Added value: +"string"
  2. Changed2 schema fields changed
    • changedInput schema / properties / creative / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "body": {
      -        "maxLength": 5000,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "callToAction": {
      -        "maxLength": 80,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "description": {
      -        "maxLength": 1000,
      -        "type": "string"
      -      },
      -      "existingCreativeId": {
      -        "$ref": "#/properties/account"
      -      },
      -      "headline": {
      -        "maxLength": 255,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "imageUrl": {
      -        "$ref": "#/properties/creative/anyOf/0/properties/linkUrl"
      -      },
      -      "linkUrl": {
      -        "maxLength": 2000,
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "descriptions": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "pinnedField": {
      -              "enum": [
      -                "DESCRIPTION_1",
      -                "DESCRIPTION_2"
      -              ],
      -              "type": "string"
      -            },
      -            "text": {
      -              "maxLength": 90,
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "text"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 4,
      -        "minItems": 2,
      -        "type": "array"
      -      },
      -      "headlines": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "pinnedField": {
      -              "enum": [
      -                "HEADLINE_1",
      -                "HEADLINE_2",
      -                "HEADLINE_3"
      -              ],
      -              "type": "string"
      -            },
      -            "text": {
      -              "maxLength": 30,
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "text"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 15,
      -        "minItems": 3,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "headlines",
      -      "descriptions"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bodies": {
      +        "items": {
      +          "maxLength": 5000,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "maxItems": 5,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "body": {
      +        "maxLength": 5000,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "callToAction": {
      +        "maxLength": 80,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "description": {
      +        "maxLength": 1000,
      +        "type": "string"
      +      },
      +      "descriptions": {
      +        "items": {
      +          "maxLength": 255,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "maxItems": 5,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "existingCreativeId": {
      +        "$ref": "#/properties/account"
      +      },
      +      "headline": {
      +        "maxLength": 255,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "headlines": {
      +        "items": {
      +          "maxLength": 255,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "maxItems": 5,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "imageUrl": {
      +        "$ref": "#/properties/creative/anyOf/0/properties/linkUrl"
      +      },
      +      "linkUrl": {
      +        "maxLength": 2000,
      +        "type": "string"
      +      },
      +      "videoId": {
      +        "$ref": "#/properties/account"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "descriptions": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "pinnedField": {
      +              "enum": [
      +                "DESCRIPTION_1",
      +                "DESCRIPTION_2"
      +              ],
      +              "type": "string"
      +            },
      +            "text": {
      +              "maxLength": 90,
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "text"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 4,
      +        "minItems": 2,
      +        "type": "array"
      +      },
      +      "headlines": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "pinnedField": {
      +              "enum": [
      +                "HEADLINE_1",
      +                "HEADLINE_2",
      +                "HEADLINE_3"
      +              ],
      +              "type": "string"
      +            },
      +            "text": {
      +              "maxLength": 30,
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "text"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 15,
      +        "minItems": 3,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "headlines",
      +      "descriptions"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / replace
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "from": {
      +        "maxLength": 5000,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "to": {
      +        "maxLength": 5000,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "from",
      +      "to"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 10,
      +  "minItems": 1,
      +  "type": "array"
      +}
  3. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=false, idempotent=false, openWorld=true; the description adds substantial context beyond that: Meta re-reviews edited ads, unknown budget blocks autopilot, owner currency caps apply, active carousel edits require a paused copy, explicit existingCreativeId ignores all other fields, schema errors name field and reason, and 'MCP never consents.' None of this contradicts destructiveHint=false, since the one deleting operation (LinkedIn creative replacement) is explicitly refused.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One undifferentiated wall of text with no headings, bullets, or per-action grouping, and it opens with creation-field rules that belong to a different tool rather than with the tool's own purpose. Critical safety constraints ('Never remove...', 'MCP never consents') are buried mid-paragraph where they are easy to miss. Sentences do carry real information, so this is a structure failure rather than pure padding.

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?

For a 12-action, 5-platform, 33-parameter mutation tool, the description covers an unusual amount of behavioral ground — platform capability matrix, refusal cases, budget-blocking semantics, and sibling routing. The notable gap is that there is no output schema and no hint of what a proposal returns (a change id? a preview?) or how it relates to get_change/recheck_change, which the sibling names imply is the next step.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 33 parameters, so the description carries the full burden, and it does explain the high-risk ones: special_ad_categories/countries only for creation, replace pairs case-sensitive with singular-vs-array and unchanged count/order rules, imageUrl/videoId restricted to story image/video, existingCreativeId as an override, and object_id/ad_set_id for keyword and ad switches. However, most of the schema remains unexplained — goal, targeting sub-fields, promoted_object, dsa_payor/dsa_beneficiary, eu_political_advertising, idempotency_key, expected_impact, start_date/end_date, cpc_bid, daily_budget, identity_id, organization_id, board_id, lead_gen_form_id, platform_post_id. Coverage is partial rather than compensatory.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description enumerates the concrete operations (ad_edit, ad_pause/ad_resume, adset_pause/adset_resume, keyword_pause/keyword_resume, campaign_edit, set_daily_budget) across five platforms and states 'Propose edits with platform,' so the resource and verb are recoverable. It also names siblings it is not, e.g. 'Full-set/existing-post creatives require propose_ad_rebuild' and the videoId path via propose_ad_video_upload. It loses a point because there is no clean opening sentence defining the tool — the first words are 'Meta field rules:' about behavior belonging to creation tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Strong when/when-not coverage: 'Never remove, keyword bid, URL/strategy/shared-budget changes,' 'Social schedules/targeting edits are not supported in this round,' 'No preview on social platforms,' 'LinkedIn creative replacement ... is refused,' 'Pinterest has no creative edit,' plus per-platform routing to propose_ad_rebuild and propose_ad_video_upload. It also gives prerequisites an agent can act on, such as individual ad switches requiring ad_set_id and a live status read, otherwise state_unavailable.

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