Skip to main content
Glama

Metadata MCP Connector

Add & Edit Campaign Elements

add_and_edit_campaign_elements
Destructive

Add audiences, ads, offers, or targeting and edit supported settings of a Precision Optimization campaign. Returns the updated configuration and per-operation results or errors. Campaign structure and current platform state constrain which edits are permitted. LinkedIn ads can be added as named Metadata platform ad groups (ads.groups) when the user asks for them. CRITICAL: PARTIAL EDITS ONLY. Only campaignId is required. Supply other fields only for the user's requested changes, never by copying the whole campaign read result. A budget-group-only move uses campaign_data={"campaignId": 12345, "budgetGroup": "Destination"}. Omit name, startDate, endDate and channel blocks unless the user also requested those edits. Campaign-level startDate/endDate writes apply to every channel, including switched-off channels, so replaying a campaign's aggregate dates can overwrite distinct channel dates. On a draft, sending one date keeps the other as saved; when the saved one cannot stay (a start date already passed, an end before the new start, channels saved with different dates) nothing changes and errors says which date to ask the user for. For a budget-only move, read the campaign before and after and verify each channel's startDate/endDate and enabled state are unchanged, alongside the new budget group. The handler returns budget_move_verification for a completed move without date or channel edits. verified=true confirms every channel's identity, dates and switch state and the destination group. verified=false also populates errors: stop further moves and report the changed fields or incomplete readback, even when success=true because the budget group already changed. No schedule rollback is attempted. Do not report dates preserved without that readback; report any mismatch explicitly.

Input Schema

NameRequiredDescriptionDefault
campaign_dataYesCampaign data with fields to edit and/or elements to add

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / campaign_data / properties / linkedin / properties / ads / properties / groups / description
      Added value: +"Named Metadata platform ad groups for Precision/METADATA campaigns, ONLY when explicitly requested. Each group needs at least two distinct compatible LinkedIn ads of the same type. Names are capped at 50 characters. May be combined with list; preserve native-container routing for NATIVE campaigns."
    • changedInput schema / properties / campaign_data / properties / reddit / properties / ads / properties / list / description
      Previous value: -"Array of Reddit ad IDs, each sent as its own request. Like LinkedIn, Reddit uses list only — no ad groups."New value: +"Array of Reddit ad IDs, attached individually. Reddit uses list only — no ad groups in this tool."
  2. Changed2 schema fields changed
    • changedInput schema / properties / campaign_data / properties / endDate / description
      Previous value: -"Optional new end date (YYYY-MM-DD). Omit unless the user requested a schedule change; supplied dates overwrite that date on every channel, including switched-off channels."New value: +"Optional new end date (YYYY-MM-DD). Omit unless the user requested a schedule change; supplied dates overwrite that date on every channel, including switched-off channels. A draft keeps its saved start date when only endDate is sent."
    • changedInput schema / properties / campaign_data / properties / startDate / description
      Previous value: -"Optional new start date (YYYY-MM-DD). Omit unless the user requested a schedule change; supplied dates overwrite that date on every channel, including switched-off channels."New value: +"Optional new start date (YYYY-MM-DD). Omit unless the user requested a schedule change; supplied dates overwrite that date on every channel, including switched-off channels. A draft keeps its saved end date when only startDate is sent; a launched campaign's start date cannot change."
  3. Changed3 schema fields changed
    • changedInput schema / properties / campaign_data / properties / endDate / description
      Previous value: -"Campaign end date in YYYY-MM-DD format — REPLACES existing end date"New value: +"Optional new end date (YYYY-MM-DD). Omit unless the user requested a schedule change; supplied dates overwrite that date on every channel, including switched-off channels."
    • changedInput schema / properties / campaign_data / properties / startDate / description
      Previous value: -"Campaign start date in YYYY-MM-DD format — REPLACES existing start date"New value: +"Optional new start date (YYYY-MM-DD). Omit unless the user requested a schedule change; supplied dates overwrite that date on every channel, including switched-off channels."
    • changedInput schema / properties / campaign_data / required
      Previous value: -[
      -  "campaignId",
      -  "campaignType",
      -  "name",
      -  "startDate",
      -  "endDate",
      -  "budgetGroup"
      -]New value: +[
      +  "campaignId"
      +]
  4. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and openWorldHint=true, but the description goes well beyond them: campaign-level dates overwrite every channel including switched-off ones, draft date writes are partial and can fail entirely, and budget_move_verification returns verified=false with errors even when success=true because the budget group already changed. It also states 'No schedule rollback is attempted', which is exactly the irreversibility an agent needs before calling.

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?

Purpose and the partial-edit rule are front-loaded, but the back half drifts into a dense procedural block on budget-move verification and readback reporting, with mid-sentence line breaks that hurt scanning. Several sentences restate the same irreversibility idea ('No schedule rollback is attempted', 'Do not report dates preserved without that readback'), so it is longer than it needs to be.

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 single deeply nested campaign_data object with no output schema, the description covers return shape ('updated configuration and per-operation results or errors') and the budget_move_verification field, plus the date-write constraints. It omits prerequisites — permissions, whether the campaign must be a draft or launched for each edit class, and what a per-operation error looks like.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real semantics on top: a concrete payload example ({"campaignId": 12345, "budgetGroup": "Destination"}) and the rule that only campaignId is required while other fields are additive partial edits. It does not explain channel-block precedence or how google/reddit/linkedin blocks interact, which the schema only partly covers.

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 opening sentence names a specific verb set (add/edit) and resource (audiences, ads, offers, targeting, settings on a Precision Optimization campaign), plus the return value. It scopes itself to Precision Optimization campaigns, which implicitly separates it from add_and_edit_native_campaign_elements, but it never states that contrast explicitly, so an agent must infer the boundary.

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?

Strong intra-tool guidance: 'CRITICAL: PARTIAL EDITS ONLY', omit name/startDate/endDate/channel blocks unless requested, and a worked budget-group-only payload. What's missing is sibling routing — nothing tells the agent when to prefer add_and_edit_native_campaign_elements, update_reddit_channel_settings, or the remove_* tools instead of this one.

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