Skip to main content
Glama

Adbloop Meta Ads

bulk_create_campaigns

Destructive

Create many Meta campaigns at once on ONE account (rate-limit-safe, validated). WRITES live. Honors plan limits, spend guardrails, and capacity. Auto-uses the correct Page/Instagram/pixel. Each campaign needs an imageUrl (public image, or Drive/Dropbox share link).

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": {
      "campaigns": "<campaigns>"
    },
    "name": "bulk_create_campaigns"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet true only after the user has explicitly approved proceeding past the guardrail or capacity warning returned by a previous call. Never set it on your own.
page_idNoFacebook Page for the ads. Optional — auto-resolved from the account if omitted.
pixel_idNoMeta Pixel for conversion tracking. Optional — auto-resolved from the account if omitted.
campaignsYesThe campaigns to create; each item's fields are defined in the campaign schema. campaignName and objective are required per campaign; image ads need an imageUrl.
catalogIdNoProduct catalog ID, for DPA / catalog (dynamic product) campaigns.
productSetIdNoProduct set ID within the catalog, for DPA / catalog campaigns.
meta_account_idNoAd account to create all these campaigns on (defaults to your primary account).
instagram_account_idNoInstagram account for placements. Optional — auto-resolved from the account if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Set true to proceed when a spend-guardrail or rate-limit-capacity warning would otherwise pause the run."New value: +"Set true only after the user has explicitly approved proceeding past the guardrail or capacity warning returned by a previous call. Never set it on your own."
  2. Changed1 schema field changed
    • addedInput schema / properties / campaigns / items / properties / geoLocations
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "OPTIONAL specific places instead of whole countries (replaces countries when set). Get keys from search_locations. cities: [{ key, radius (km, 17-80; omit for the city only), country_code }], regions: [{ key, country_code }] (states), zips: [{ key e.g. \"IN:380015\", country_code }] (PIN/ZIP codes). Meta rejects overlapping places (e.g. a PIN inside a city radius). With a Special Ad Category: no zips, and cities need a radius of at least 25 km.",
      +  "properties": {
      +    "cities": {
      +      "items": {
      +        "properties": {
      +          "country_code": {
      +            "type": "string"
      +          },
      +          "key": {
      +            "type": "string"
      +          },
      +          "radius": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "key"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "regions": {
      +      "items": {
      +        "properties": {
      +          "country_code": {
      +            "type": "string"
      +          },
      +          "key": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "key"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "zips": {
      +      "items": {
      +        "properties": {
      +          "country_code": {
      +            "type": "string"
      +          },
      +          "key": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "key"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed8 schema fields changed
    • addedInput schema / properties / campaigns / description
      Added value: +"The campaigns to create; each item's fields are defined in the campaign schema. campaignName and objective are required per campaign; image ads need an imageUrl."
    • addedInput schema / properties / catalogId / description
      Added value: +"Product catalog ID, for DPA / catalog (dynamic product) campaigns."
    • addedInput schema / properties / confirm / description
      Added value: +"Set true to proceed when a spend-guardrail or rate-limit-capacity warning would otherwise pause the run."
    • addedInput schema / properties / instagram_account_id / description
      Added value: +"Instagram account for placements. Optional — auto-resolved from the account if omitted."
    • addedInput schema / properties / meta_account_id / description
      Added value: +"Ad account to create all these campaigns on (defaults to your primary account)."
    • addedInput schema / properties / page_id / description
      Added value: +"Facebook Page for the ads. Optional — auto-resolved from the account if omitted."
    • addedInput schema / properties / pixel_id / description
      Added value: +"Meta Pixel for conversion tracking. Optional — auto-resolved from the account if omitted."
    • addedInput schema / properties / productSetId / description
      Added value: +"Product set ID within the catalog, for DPA / catalog campaigns."
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, and the description corroborates and extends this with 'WRITES live,' plan-limit enforcement, spend guardrails, capacity checks, and auto-resolution of Page/Instagram/pixel. It stops short of disclosing bulk-specific behavior such as whether some campaigns succeed when others fail, which is the main residual risk for a batch write.

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?

The definition is compact and front-loads the write/scope information ahead of the per-campaign imageUrl constraint. The trailing sentence is slightly redundant with the schema's own imageUrl documentation, but nothing is wasted.

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

Completeness3/5

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

For an eight-parameter, deeply nested bulk mutation with no output schema, the description covers the safety and guardrail story well but says nothing about what a call returns — e.g., per-campaign success/failure results — which matters for a batch operation. Adequate but leaves a meaningful gap.

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 100%, so the detailed field documentation already carries parameter meaning. The description adds only marginal value, reinforcing the imageUrl requirement and the single-account targeting of meta_account_id, both of which are already stated in the schema.

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 plus an explicit scope constraint: 'Create many Meta campaigns at once on ONE account.' The 'ONE account' qualifier cleanly separates it from the multi-account sibling, so an agent can distinguish the two without inspecting either schema.

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

Usage Guidelines3/5

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

It implies the usage context (live bulk creation governed by plan limits, spend guardrails, and capacity) and documents the confirm-after-warning flow, but it never names alternatives such as estimate_bulk_create or validate_campaigns or states when a single create_campaign should be preferred. The agent must infer the routing decision.

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