Skip to main content
Glama

Adbloop Meta Ads

create_structured

Destructive

Create ONE campaign with MULTIPLE ad sets and MULTIPLE ads each (1 campaign -> N ad sets -> M ads), image or video, including DPA/Catalog dynamic product ads. Created PAUSED. Honors spend guardrails. Pro feature. WRITES live.

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": "create_structured"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaignsYesOne or more structured campaigns (usually one).
meta_account_idNoAd account (defaults to primary).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / campaigns / items / properties / adSets / items / properties / customAudiences
      Added value: +{
      +  "description": "Optional — custom/lookalike audience ids to target (from list_custom_audiences, Pro).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / campaigns / items / properties / adSets / items / properties / excludedAudiences
      Added value: +{
      +  "description": "Optional — audience ids to exclude, e.g. past buyers.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed4 schema fields changed
    • addedInput schema / properties / campaigns / items / properties / adSets / items / properties / budgetType
      Added value: +{
      +  "description": "ABO only. LIFETIME needs lifetimeBudget and scheduleEnd.",
      +  "enum": [
      +    "DAILY",
      +    "LIFETIME"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / campaigns / items / properties / adSets / items / properties / lifetimeBudget
      Added value: +{
      +  "description": "Lifetime budget MAJOR units (ABO, budgetType LIFETIME).",
      +  "type": "number"
      +}
    • addedInput schema / properties / campaigns / items / properties / adSets / items / properties / scheduleEnd
      Added value: +{
      +  "description": "Ad set end, ISO 8601. Required (more than 24h after start) with a lifetime budget.",
      +  "type": "string"
      +}
    • addedInput schema / properties / campaigns / items / properties / adSets / items / properties / scheduleStart
      Added value: +{
      +  "description": "Ad set start, ISO 8601.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / campaigns / items / properties / adSets / 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"
      +}
    • 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"
      +}
  4. Added

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, destructiveHint=true, and openWorldHint=true, so the safety bar is lower. The description still adds real behavioral context beyond them: entities are 'Created PAUSED' (so nothing goes live on creation), it 'Honors spend guardrails', and it flags a 'Pro feature' prerequisite. It does not cover partial-failure behavior or whether created object ids are returned, but the essential live-effect and pause-state facts are disclosed.

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?

It is front-loaded with the most decision-relevant fact (the 1->N->M shape) in a single punchy line, and every clause ('Created PAUSED', 'Pro feature', 'WRITES live') carries distinct signal. The telegraphic ALL-CAPS fragments are efficient but slightly staccato; a small amount of connective structure would read better without adding length.

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 a deeply nested, destructive creation tool this covers the essentials — write behavior, paused state, guardrails, and Pro gating — and the annotations plus rich schema carry the rest. Still missing are scale limits (how many ad sets/ads are allowed), what happens on partial validation failure, and whether ids are returned for follow-up calls. Those gaps matter for a complex nested write.

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% and the nested schema already documents budgets, geoLocations, DPA fields, and scheduling in detail, so the baseline is 3. The description only gestures at parameters via 'image or video, including DPA/Catalog dynamic product ads', adding no syntax or unit details beyond the schema. It correctly does not duplicate schema text, but it contributes little parameter meaning of its own.

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 names a specific verb and resource and pins the exact shape of the object graph: 'Create ONE campaign with MULTIPLE ad sets and MULTIPLE ads each (1 campaign -> N ad sets -> M ads)'. The explicit 'ONE campaign' framing implicitly separates it from the bulk/single-campaign siblings, and it calls out creative types (image/video) plus DPA/Catalog support. An agent can tell what this builds 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 Guidelines3/5

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

Usage is implied by the shape ('ONE campaign ... MULTIPLE ad sets'), and 'Pro feature' flags a plan prerequisite, so an agent can infer this is for structured multi-adset builds. However, no sibling is named and there is no explicit when-not guidance (e.g. use create_campaign for a single ad set, estimate_bulk_create to preview, bulk_create_campaigns for many campaigns). The agent must infer the boundary itself.

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