Skip to main content
Glama

AdsAgent — Meta Ads MCP

copy_ad_clone_structure

Prepare a same-account 1:1 campaign/ad-set tree clone, keeping each ad's creative. Pass ad_account_id and exactly one source_campaign_id or source_adset_id; copies=1-10. paused is default; inherit may resume spend. Use copy_ad_quick_copy to expand selected ads. Review exclusions, then launch_confirm after approval Use the workflow's original link_id when exposed.

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>"
    },
    "name": "copy_ad_clone_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
copiesNo
targetingNo
start_timeNo
ad_account_idYes
status_optionNopaused
engagement_modeNopreserve_post
source_adset_idNo
source_campaign_idNo
targeting_template_idNo

Output Schema

NameRequiredDescriptionDefault
messageNo
retryableNo
support_refNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / targeting / properties / country_groups
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 300,
      +  "type": "array"
      +}
    • addedInput schema / properties / targeting / properties / excluded_country_groups
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 300,
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • removedInput schema / properties / connection_context
      Removed value: -{
      -  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      -  "type": "string"
      -}
  3. Changed2 schema fields changed
    • addedInput schema / properties / targeting
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "age": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "max": {
      +          "maximum": 65,
      +          "minimum": 13,
      +          "type": "integer"
      +        },
      +        "min": {
      +          "maximum": 65,
      +          "minimum": 13,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "min"
      +      ],
      +      "type": "object"
      +    },
      +    "cities": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "country": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "name": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "region": {
      +            "maxLength": 200,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "country"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 100,
      +      "type": "array"
      +    },
      +    "countries": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "maxItems": 300,
      +      "type": "array"
      +    },
      +    "excluded_countries": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "maxItems": 300,
      +      "type": "array"
      +    },
      +    "gender": {
      +      "default": "all",
      +      "enum": [
      +        "all",
      +        "female",
      +        "male"
      +      ],
      +      "type": "string"
      +    },
      +    "languages": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "maxItems": 100,
      +      "type": "array"
      +    },
      +    "languages_mode": {
      +      "enum": [
      +        "restricted",
      +        "all"
      +      ],
      +      "type": "string"
      +    },
      +    "placements": {
      +      "anyOf": [
      +        {
      +          "const": "automatic",
      +          "type": "string"
      +        },
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      ],
      +      "default": "automatic"
      +    },
      +    "regions": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "country": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "name": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "country"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 100,
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / targeting_template_id
      Added value: +{
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • addedOutput schema / else / else / properties / approval_request / properties / confirm_tool
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / else / else / properties / approval_request / properties / instruction_template_id
      Added value: +{
      +  "type": "string"
      +}
  5. 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"
      +}
  6. Changed1 schema field changed
    • addedInput schema / properties / connection_context
      Added value: +{
      +  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      +  "type": "string"
      +}
  7. Changed3 schema fields changed
    • addedOutput schema / else / else / properties / approval_request / properties / summary / properties / preflight / properties / checks / items / properties / provider_error_code
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / else / else / properties / approval_request / properties / summary / properties / preflight / properties / checks / items / properties / provider_error_subcode
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / else / else / properties / approval_request / properties / summary / properties / preflight / properties / checks / items / properties / reason_code
      Added value: +{
      +  "type": "string"
      +}
  8. Changed1 schema field changed
    • addedOutput schema / else / else / properties / approval_request / properties / summary / properties / preflight
      Added value: +{
      +  "properties": {
      +    "ad_account_id": {
      +      "type": "string"
      +    },
      +    "billing": {
      +      "properties": {
      +        "available_funds_major": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "balance_semantics": {
      +          "type": "string"
      +        },
      +        "currency": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "low_remaining_spend_cap": {
      +          "type": "boolean"
      +        },
      +        "note": {
      +          "type": "string"
      +        },
      +        "reported_balance_major": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "spend_cap_remaining_major": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "checked_at": {
      +      "type": "string"
      +    },
      +    "checks": {
      +      "items": {
      +        "properties": {
      +          "asset_id": {
      +            "type": "string"
      +          },
      +          "asset_type": {
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "timing": {
      +      "properties": {
      +        "account_local_now": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "hours_left_today": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "note": {
      +          "type": "string"
      +        },
      +        "schedule_valid": {
      +          "type": "boolean"
      +        },
      +        "timezone_name": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "utc_offset_hours": {
      +          "type": "number"
      +        },
      +        "windows": {
      +          "items": {
      +            "properties": {
      +              "end_time": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "hours_remaining": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "hours_until_start": {
      +                "type": "number"
      +              },
      +              "paused": {
      +                "type": "boolean"
      +              },
      +              "potential_delivery_hours_today": {
      +                "type": "number"
      +              },
      +              "start_time": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "version": {
      +      "type": "integer"
      +    },
      +    "warnings": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "version",
      +    "checked_at",
      +    "ad_account_id",
      +    "status",
      +    "checks",
      +    "warnings"
      +  ],
      +  "type": "object"
      +}
  9. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, but the description adds important behavior: paused is the default, inherit may resume spend, same-account scope is enforced, and approval via launch_confirm is expected. These details add value beyond the annotations without contradicting them.

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

Conciseness3/5

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

The purpose is front-loaded and the description is short, but it becomes a run-on with missing punctuation, especially 'then launch_confirm after approval Use...', and the link_id reference is unclear and absent from the schema. It is concise but not well structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and annotations cover safety, but the input schema is complex and undocumented. The description leaves multiple non-obvious parameters and the nested targeting object unexplained, so an agent cannot fully determine how to invoke the tool correctly.

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% across 9 parameters, including a large nested targeting object. The description only documents ad_account_id, source exclusivity, copies range, and status options; it omits targeting, start_time, engagement_mode, targeting_template_id, and all nested targeting fields, so it does not compensate for the schema gap.

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 states a specific action and resource: prepare a same-account 1:1 campaign/ad-set tree clone while keeping each ad's creative. It also distinguishes the tool from copy_ad_quick_copy, which is reserved for expanding selected ads, so an agent can identify its role without opening the 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?

It specifies required ad_account_id and exactly one source_campaign_id or source_adset_id, gives the copies range, and notes the paused default versus inherit spend risk. It names copy_ad_quick_copy as the alternative for selected ads and references launch_confirm after approval, though it does not state explicit when-not-to-use cases.

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