Skip to main content
Glama

AdsAgent — Meta Ads MCP

ads_update_copy_prepare

Prepare body/title/description edits on the same Ad ID, preserving media and Page. Use ad_id to select the source ad. Confirmation accepts a rotated thumbnail URL when the video ID, valid thumbnail hash and the rest of the creative match. If the source video, thumbnail, destination link or copy changes, prepare again and obtain fresh approval.

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": {
      "ad_account_id": "<ad_account_id>",
      "ad_id": "<ad_id>"
    },
    "name": "ads_update_copy_prepare"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
ad_idYes
titleNo
descriptionNo
ad_account_idYes

Output Schema

NameRequiredDescriptionDefault
messageNo
retryableNo
support_refNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / connection_context
      Removed value: -{
      -  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      -  "type": "string"
      -}
  2. Changed3 schema fields changed
    • removedOutput schema / $defs
      Removed value: -{
      -  "s0": {
      -    "properties": {
      -      "account_currency": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "action": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "ad_account_id": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "ad_count": {
      -        "type": "integer"
      -      },
      -      "ad_id": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "ad_name_after": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "ad_name_before": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "ad_status": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "adset_count": {
      -        "type": "integer"
      -      },
      -      "adset_id": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "adset_status": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "bid": {
      -        "$ref": "#/$defs/s1"
      -      },
      -      "budget": {
      -        "$ref": "#/$defs/s1"
      -      },
      -      "campaign_count": {
      -        "type": "integer"
      -      },
      -      "campaign_id": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "campaign_status": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "change_percent": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "copies": {
      -        "type": "integer"
      -      },
      -      "count": {
      -        "type": "integer"
      -      },
      -      "creative_after": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "creative_before": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "cross_account": {
      -        "type": "boolean"
      -      },
      -      "current_daily_budget": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "engagement_mode": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "entity_id": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "entity_type": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "groups": {
      -        "items": {
      -          "properties": {
      -            "adsets": {
      -              "items": {
      -                "properties": {
      -                  "name": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "target_adset_id": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "bid": {
      -              "$ref": "#/$defs/s6"
      -            },
      -            "budget": {
      -              "$ref": "#/$defs/s6"
      -            },
      -            "campaign_name": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "layout": {
      -              "type": "string"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "items": {
      -        "items": {
      -          "properties": {
      -            "ad_account_id": {
      -              "type": "string"
      -            },
      -            "ad_id": {
      -              "type": "string"
      -            },
      -            "campaign_id": {
      -              "type": "string"
      -            },
      -            "current_configured_status": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "current_daily_budget": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "new_daily_budget": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "target_configured_status": {
      -              "type": "string"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "mode": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "new_daily_budget": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "note": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "page_id_after": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "page_id_before": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "publish_start_label": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "source_ad_account_id": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "source_ad_id": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "source_id": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "source_level": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "source_name": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "statuses": {
      -        "properties": {
      -          "ad": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "adset": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "campaign": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "structure": {
      -        "properties": {
      -          "ads": {
      -            "type": "integer"
      -          },
      -          "adsets": {
      -            "type": "integer"
      -          },
      -          "auxiliary_writes": {
      -            "type": "integer"
      -          },
      -          "campaigns": {
      -            "type": "integer"
      -          },
      -          "creative_keys": {
      -            "type": "integer"
      -          },
      -          "layouts": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "target_ad_account_id": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "template_name": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "warnings": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "anyOf": [
      -                {
      -                  "properties": {
      -                    "code": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "code"
      -                  ]
      -                },
      -                {
      -                  "required": [
      -                    "message"
      -                  ]
      -                }
      -              ],
      -              "properties": {
      -                "message": {
      -                  "type": "string"
      -                }
      -              },
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "s1": {
      -    "properties": {
      -      "amount": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "currency": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "daily_budget": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "level": {
      -        "type": "string"
      -      },
      -      "mode": {
      -        "type": "string"
      -      },
      -      "total_daily_budget": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "unit": {
      -        "type": "string"
      -      }
      -    },
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  },
      -  "s6": {
      -    "properties": {
      -      "amount": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "currency": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "daily_budget": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "level": {
      -        "type": "string"
      -      },
      -      "mode": {
      -        "type": "string"
      -      },
      -      "total_daily_budget": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "unit": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  }
      -}
    • changedOutput schema / else / else / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "approval_request": {
      -        "properties": {
      -          "approval_ref": {
      -            "type": "string"
      -          },
      -          "confirm_token": {
      -            "type": "string"
      -          },
      -          "confirm_tool": {
      -            "type": "string"
      -          },
      -          "expires_at": {
      -            "type": "string"
      -          },
      -          "instruction_template_id": {
      -            "type": "string"
      -          },
      -          "mode": {
      -            "type": "string"
      -          },
      -          "plan_digest": {
      -            "type": "string"
      -          },
      -          "schema_version": {
      -            "type": "integer"
      -          },
      -          "status": {
      -            "const": "approval_required"
      -          },
      -          "summary": {
      -            "$ref": "#/$defs/s0"
      -          },
      -          "tool_name": {
      -            "type": "string"
      -          },
      -          "user_instruction": {
      -            "type": "string"
      -          },
      -          "warnings": {
      -            "items": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "anyOf": [
      -                    {
      -                      "properties": {
      -                        "code": {
      -                          "type": "string"
      -                        }
      -                      },
      -                      "required": [
      -                        "code"
      -                      ]
      -                    },
      -                    {
      -                      "required": [
      -                        "message"
      -                      ]
      -                    }
      -                  ],
      -                  "properties": {
      -                    "message": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "type": "object"
      -                }
      -              ]
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "status",
      -          "confirm_token",
      -          "expires_at",
      -          "summary"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "approval_request"
      -    ]
      -  },
      -  {
      -    "properties": {
      -      "ad_account_id": {
      -        "type": "string"
      -      },
      -      "ad_id": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "const": "unchanged"
      -      },
      -      "summary": {
      -        "$ref": "#/$defs/s0"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "ad_account_id",
      -      "ad_id",
      -      "summary"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "required": [
      +      "approval_request"
      +    ]
      +  },
      +  {
      +    "properties": {
      +      "status": {
      +        "const": "unchanged"
      +      }
      +    },
      +    "required": [
      +      "ad_account_id",
      +      "ad_id",
      +      "status",
      +      "summary"
      +    ]
      +  }
      +]
    • addedOutput schema / else / else / properties
      Added value: +{
      +  "ad_account_id": {
      +    "type": "string"
      +  },
      +  "ad_id": {
      +    "type": "string"
      +  },
      +  "approval_request": {
      +    "properties": {
      +      "approval_ref": {
      +        "type": "string"
      +      },
      +      "confirm_token": {
      +        "type": "string"
      +      },
      +      "confirm_tool": {
      +        "type": "string"
      +      },
      +      "expires_at": {
      +        "type": "string"
      +      },
      +      "instruction_template_id": {
      +        "type": "string"
      +      },
      +      "mode": {
      +        "type": "string"
      +      },
      +      "plan_digest": {
      +        "type": "string"
      +      },
      +      "schema_version": {
      +        "type": "integer"
      +      },
      +      "status": {
      +        "const": "approval_required"
      +      },
      +      "summary": {
      +        "properties": {
      +          "account_currency": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "action": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "ad_account_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "ad_count": {
      +            "type": "integer"
      +          },
      +          "ad_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "ad_name_after": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "ad_name_before": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "ad_status": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "adset_count": {
      +            "type": "integer"
      +          },
      +          "adset_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "adset_status": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "bid": {
      +            "properties": {
      +              "amount": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "currency": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "daily_budget": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "level": {
      +                "type": "string"
      +              },
      +              "mode": {
      +                "type": "string"
      +              },
      +              "total_daily_budget": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "unit": {
      +                "type": "string"
      +              }
      +            },
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "budget": {
      +            "properties": {
      +              "amount": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "currency": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "daily_budget": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "level": {
      +                "type": "string"
      +              },
      +              "mode": {
      +                "type": "string"
      +              },
      +              "total_daily_budget": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "unit": {
      +                "type": "string"
      +              }
      +            },
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "campaign_count": {
      +            "type": "integer"
      +          },
      +          "campaign_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "campaign_status": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "change_percent": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "copies": {
      +            "type": "integer"
      +          },
      +          "count": {
      +            "type": "integer"
      +          },
      +          "creative_after": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "creative_before": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "cross_account": {
      +            "type": "boolean"
      +          },
      +          "current_daily_budget": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "engagement_mode": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "entity_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "entity_type": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "groups": {
      +            "items": {
      +              "properties": {
      +                "adsets": {
      +                  "items": {
      +                    "properties": {
      +                      "name": {
      +                        "type": [
      +                          "string",
      +                          "null"
      +                        ]
      +                      },
      +                      "target_adset_id": {
      +                        "type": [
      +                          "string",
      +                          "null"
      +                        ]
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "bid": {
      +                  "properties": {
      +                    "amount": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    },
      +                    "currency": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "daily_budget": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    },
      +                    "level": {
      +                      "type": "string"
      +                    },
      +                    "mode": {
      +                      "type": "string"
      +                    },
      +                    "total_daily_budget": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    },
      +                    "unit": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                "budget": {
      +                  "properties": {
      +                    "amount": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    },
      +                    "currency": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "daily_budget": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    },
      +                    "level": {
      +                      "type": "string"
      +                    },
      +                    "mode": {
      +                      "type": "string"
      +                    },
      +                    "total_daily_budget": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    },
      +                    "unit": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                "campaign_name": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "layout": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "items": {
      +            "items": {
      +              "properties": {
      +                "ad_account_id": {
      +                  "type": "string"
      +                },
      +                "ad_id": {
      +                  "type": "string"
      +                },
      +                "campaign_id": {
      +                  "type": "string"
      +                },
      +                "current_configured_status": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "current_daily_budget": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "new_daily_budget": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "target_configured_status": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "mode": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "new_daily_budget": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "note": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "page_id_after": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "page_id_before": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "publish_start_label": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "source_ad_account_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "source_ad_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "source_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "source_level": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "source_name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "statuses": {
      +            "properties": {
      +              "ad": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "adset": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "campaign": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "structure": {
      +            "properties": {
      +              "ads": {
      +                "type": "integer"
      +              },
      +              "adsets": {
      +                "type": "integer"
      +              },
      +              "auxiliary_writes": {
      +                "type": "integer"
      +              },
      +              "campaigns": {
      +                "type": "integer"
      +              },
      +              "creative_keys": {
      +                "type": "integer"
      +              },
      +              "layouts": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "target_ad_account_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "template_name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "warnings": {
      +            "items": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "anyOf": [
      +                    {
      +                      "properties": {
      +                        "code": {
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "code"
      +                      ]
      +                    },
      +                    {
      +                      "required": [
      +                        "message"
      +                      ]
      +                    }
      +                  ],
      +                  "properties": {
      +                    "message": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                }
      +              ]
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "tool_name": {
      +        "type": "string"
      +      },
      +      "user_instruction": {
      +        "type": "string"
      +      },
      +      "warnings": {
      +        "items": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "anyOf": [
      +                {
      +                  "properties": {
      +                    "code": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "code"
      +                  ]
      +                },
      +                {
      +                  "required": [
      +                    "message"
      +                  ]
      +                }
      +              ],
      +              "properties": {
      +                "message": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "confirm_token",
      +      "expires_at",
      +      "summary"
      +    ],
      +    "type": "object"
      +  },
      +  "status": {
      +    "type": "string"
      +  },
      +  "summary": {
      +    "properties": {
      +      "account_currency": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "action": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "ad_account_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "ad_count": {
      +        "type": "integer"
      +      },
      +      "ad_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "ad_name_after": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "ad_name_before": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "ad_status": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "adset_count": {
      +        "type": "integer"
      +      },
      +      "adset_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "adset_status": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "bid": {
      +        "properties": {
      +          "amount": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "currency": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "daily_budget": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "level": {
      +            "type": "string"
      +          },
      +          "mode": {
      +            "type": "string"
      +          },
      +          "total_daily_budget": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "unit": {
      +            "type": "string"
      +          }
      +        },
      +        "type": [
      +          "null",
      +          "object"
      +        ]
      +      },
      +      "budget": {
      +        "properties": {
      +          "amount": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "currency": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "daily_budget": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "level": {
      +            "type": "string"
      +          },
      +          "mode": {
      +            "type": "string"
      +          },
      +          "total_daily_budget": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "unit": {
      +            "type": "string"
      +          }
      +        },
      +        "type": [
      +          "null",
      +          "object"
      +        ]
      +      },
      +      "campaign_count": {
      +        "type": "integer"
      +      },
      +      "campaign_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "campaign_status": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "change_percent": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "copies": {
      +        "type": "integer"
      +      },
      +      "count": {
      +        "type": "integer"
      +      },
      +      "creative_after": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "creative_before": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "cross_account": {
      +        "type": "boolean"
      +      },
      +      "current_daily_budget": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "engagement_mode": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "entity_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "entity_type": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "groups": {
      +        "items": {
      +          "properties": {
      +            "adsets": {
      +              "items": {
      +                "properties": {
      +                  "name": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "target_adset_id": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "bid": {
      +              "properties": {
      +                "amount": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "currency": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "daily_budget": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "level": {
      +                  "type": "string"
      +                },
      +                "mode": {
      +                  "type": "string"
      +                },
      +                "total_daily_budget": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "unit": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "budget": {
      +              "properties": {
      +                "amount": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "currency": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "daily_budget": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "level": {
      +                  "type": "string"
      +                },
      +                "mode": {
      +                  "type": "string"
      +                },
      +                "total_daily_budget": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "unit": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "campaign_name": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "layout": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "items": {
      +        "items": {
      +          "properties": {
      +            "ad_account_id": {
      +              "type": "string"
      +            },
      +            "ad_id": {
      +              "type": "string"
      +            },
      +            "campaign_id": {
      +              "type": "string"
      +            },
      +            "current_configured_status": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "current_daily_budget": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "new_daily_budget": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "target_configured_status": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "mode": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "new_daily_budget": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "note": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "page_id_after": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "page_id_before": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "publish_start_label": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "source_ad_account_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "source_ad_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "source_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "source_level": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "source_name": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "statuses": {
      +        "properties": {
      +          "ad": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "adset": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "campaign": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "structure": {
      +        "properties": {
      +          "ads": {
      +            "type": "integer"
      +          },
      +          "adsets": {
      +            "type": "integer"
      +          },
      +          "auxiliary_writes": {
      +            "type": "integer"
      +          },
      +          "campaigns": {
      +            "type": "integer"
      +          },
      +          "creative_keys": {
      +            "type": "integer"
      +          },
      +          "layouts": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "target_ad_account_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "template_name": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "warnings": {
      +        "items": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "anyOf": [
      +                {
      +                  "properties": {
      +                    "code": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "code"
      +                  ]
      +                },
      +                {
      +                  "required": [
      +                    "message"
      +                  ]
      +                }
      +              ],
      +              "properties": {
      +                "message": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "type": "object"
      +  }
      +}
  3. Changed1 schema field changed
    • changedOutput schema / else / else / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "approval_request": {
      -        "properties": {
      -          "approval_ref": {
      -            "type": "string"
      -          },
      -          "confirm_token": {
      -            "type": "string"
      -          },
      -          "expires_at": {
      -            "type": "string"
      -          },
      -          "mode": {
      -            "type": "string"
      -          },
      -          "plan_digest": {
      -            "type": "string"
      -          },
      -          "schema_version": {
      -            "type": "integer"
      -          },
      -          "status": {
      -            "const": "approval_required"
      -          },
      -          "summary": {
      -            "$ref": "#/$defs/s0"
      -          },
      -          "tool_name": {
      -            "type": "string"
      -          },
      -          "user_instruction": {
      -            "type": "string"
      -          },
      -          "warnings": {
      -            "items": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "anyOf": [
      -                    {
      -                      "properties": {
      -                        "code": {
      -                          "type": "string"
      -                        }
      -                      },
      -                      "required": [
      -                        "code"
      -                      ]
      -                    },
      -                    {
      -                      "required": [
      -                        "message"
      -                      ]
      -                    }
      -                  ],
      -                  "properties": {
      -                    "message": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "type": "object"
      -                }
      -              ]
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "status",
      -          "confirm_token",
      -          "expires_at",
      -          "summary"
      -        ],
      -        "type": "object"
      -      },
      -      "status": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "approval_request"
      -    ]
      -  },
      -  {
      -    "properties": {
      -      "ad_account_id": {
      -        "type": "string"
      -      },
      -      "ad_id": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "const": "unchanged"
      -      },
      -      "summary": {
      -        "$ref": "#/$defs/s0"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "ad_account_id",
      -      "ad_id",
      -      "summary"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "approval_request": {
      +        "properties": {
      +          "approval_ref": {
      +            "type": "string"
      +          },
      +          "confirm_token": {
      +            "type": "string"
      +          },
      +          "confirm_tool": {
      +            "type": "string"
      +          },
      +          "expires_at": {
      +            "type": "string"
      +          },
      +          "instruction_template_id": {
      +            "type": "string"
      +          },
      +          "mode": {
      +            "type": "string"
      +          },
      +          "plan_digest": {
      +            "type": "string"
      +          },
      +          "schema_version": {
      +            "type": "integer"
      +          },
      +          "status": {
      +            "const": "approval_required"
      +          },
      +          "summary": {
      +            "$ref": "#/$defs/s0"
      +          },
      +          "tool_name": {
      +            "type": "string"
      +          },
      +          "user_instruction": {
      +            "type": "string"
      +          },
      +          "warnings": {
      +            "items": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "anyOf": [
      +                    {
      +                      "properties": {
      +                        "code": {
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "code"
      +                      ]
      +                    },
      +                    {
      +                      "required": [
      +                        "message"
      +                      ]
      +                    }
      +                  ],
      +                  "properties": {
      +                    "message": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                }
      +              ]
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "status",
      +          "confirm_token",
      +          "expires_at",
      +          "summary"
      +        ],
      +        "type": "object"
      +      },
      +      "status": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "approval_request"
      +    ]
      +  },
      +  {
      +    "properties": {
      +      "ad_account_id": {
      +        "type": "string"
      +      },
      +      "ad_id": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "const": "unchanged"
      +      },
      +      "summary": {
      +        "$ref": "#/$defs/s0"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "ad_account_id",
      +      "ad_id",
      +      "summary"
      +    ]
      +  }
      +]
  4. Changed6 schema fields changed
    • addedOutput schema / else / then / properties / category
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / expected
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / else / then / properties / failure_kind
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / responsibility_hint
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / route
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / then / properties / user_visible
      Added value: +{
      +  "type": "boolean"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / connection_context
      Added value: +{
      +  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      +  "type": "string"
      +}
  6. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare this is a non-read-only, non-destructive, closed-world operation; the description adds real context beyond that, explaining that this is a prepare/staging step requiring later confirmation and detailing the matching conditions under which a rotated thumbnail URL is still accepted. It does not say what happens to fields left unset or whether a previously prepared change expires.

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?

Three sentences, front-loaded with the core action, and every sentence carries operational content. The thumbnail-rotation sentence is dense but justified because it defines an edge case the agent must handle.

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?

With annotations and an output schema already supplied, the description covers the prepare-then-confirm lifecycle and the invalidation triggers well. The remaining gap is the unspecified-parameter behavior and the role of ad_account_id, which an agent would need before constructing a call.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden, yet it only gives meaning to ad_id ('select the source ad'). The body, title and description parameters are named as edit targets without saying whether omitted fields are left unchanged, and ad_account_id is never explained.

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?

The description opens with a specific verb and resource: 'Prepare body/title/description edits on the same Ad ID, preserving media and Page.' That scope statement distinguishes it from the confirm/deny siblings, which finalize rather than stage the change, and from ads_replace_creative_prepare, which swaps media instead of copy.

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?

It tells the agent to select the source ad via ad_id and gives a concrete re-use rule: re-prepare and obtain fresh approval if the video, thumbnail, destination link or copy changes. It stops short of naming ads_update_copy_confirm explicitly as the required next step, so the routing to the approval sibling is implied 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