Skip to main content
Glama

Duplicate

meta_duplicate

Copy a campaign, an adset (into its campaign or target_campaign_id) or an ad (same creative, into its ad set or target_adset_id); the copy starts PAUSED. Undo pauses the copy. Changes the ad account: tell the user exactly what will change and call only after their Yes. If the result lists rule reasons, nothing changed: show them, ask again, and only after a new Yes retry with acknowledge_rules: true.

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": {
      "level": "<level>"
    },
    "name": "meta_duplicate"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idNoRequired for ad. A string, never a number
levelYes
adset_idNoRequired for adset. A string, never a number
end_timeNoNot for ad. ISO 8601 or Unix seconds; "0" = no end (daily budgets)
deep_copyNoAlso copy children. campaign: its ad sets and ads (Meta: fewer than 3 objects in all); adset: its ads (at most 1 ad)
start_timeNoNot for ad. ISO 8601 or Unix seconds
campaign_idNoRequired for campaign. A string, never a number
name_prefixNo
name_suffixNoMeta's default: " - Copy"
target_adset_idNoOnly ad. A string, never a number
acknowledge_rulesNoOnly on a retry after the user's Yes to rule reasons; never on a first call.
target_campaign_idNoOnly adset. A string, never a number

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only mark this as a non-readonly, non-destructive, non-idempotent open-world write. The description adds genuinely new behavior: copies are created PAUSED, undo works by pausing the copy, the tool mutates the ad account and therefore needs explicit user confirmation, and a rule-reason result means nothing changed. It stops short of saying whether the duplication is reversible beyond that pause mechanism or what the response looks like on success.

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

Conciseness4/5

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

Front-loads the purpose in the first clause, then layers the paused-state fact and the confirmation/retry protocol. Dense semicolon chaining makes it slightly hard to parse but every clause carries operational information; nothing is redundant.

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-parameter mutation with no output schema, the description supplies the critical operational context: mandatory user confirmation, resulting paused state, and the rule-reason retry loop including acknowledge_rules. The only meaningful omission is success-response shape and any permission or rate context for a bulk-changing operation.

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 83%, so the schema already documents level-required IDs, deep_copy semantics, name_suffix's ' - Copy' default, and end_time's "0" meaning. The description mostly restates the level-to-target-ID mapping already present in per-property descriptions, adding meaning only for acknowledge_rules' retry-only nature.

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

Purpose5/5

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

States a specific verb (copy/duplicate) plus the exact three resources handled (campaign, adset, ad) and where each copy lands (its own parent or target_campaign_id/target_adset_id). The final state ('the copy starts PAUSED') is stated up front, so an agent can distinguish this from the meta_create_* siblings at a glance.

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

Usage Guidelines4/5

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

Gives a clear mandatory precondition — 'Changes the ad account: tell the user exactly what will change and call only after their Yes' — plus an explicit retry path when rule reasons come back (show, re-ask, then retry with acknowledge_rules: true). It does not say when to duplicate versus creating fresh via meta_create_campaign/meta_create_ad, which is the main remaining gap.

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.