Skip to main content
Glama

Meta ads: Create ad set

meta_create_ad_set

Add an ad set to an existing Meta campaign: goal, daily budget, locations, ages. Created PAUSED. Call without confirm first: Meta checks it (validate only, nothing created). Then confirm: true. Add ads to it with meta_create_ad.

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": {
      "campaign_id": "<campaign_id>",
      "name": "<name>",
      "goal": "<goal>",
      "daily_budget_major": "<daily_budget_major>",
      "locations": "<locations>"
    },
    "name": "meta_create_ad_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYes
nameYes
age_maxNo
age_minNo
confirmNoLeave false to preview: nothing changes and the preview shows exactly what would happen. Set true only after the user has agreed to this exact change.
page_idNoRequired for calls
end_timeNo
pixel_idNo
locationsYes
start_timeNo
campaign_idYes
daily_budget_majorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag it as a non-read-only, non-destructive, non-idempotent open-world write, so the bar is lower; the description still adds real context by disclosing that the ad set is created PAUSED and that the first call creates nothing. What's missing is anything about failure modes, permission requirements, or what happens when the campaign is in an incompatible state.

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

Conciseness5/5

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

Four short front-loaded sentences: what it creates, key fields, resulting state, then the two-step confirm protocol and next step. Nothing is redundant and the safety-critical confirm sequence is easy to find.

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?

With 12 parameters, low schema description coverage, and no output schema, the description should say more about the unlabeled scheduling and tracking parameters (page_id, pixel_id, start_time, end_time) and about what the confirmation result returns. The confirm protocol and PAUSED state are well covered, but the definition is not complete for a tool of this complexity.

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 coverage is only 17% across 12 parameters, so the description carries weight and does explain goal, daily budget, locations, ages, and the validate-then-confirm flow for confirm. However, page_id, pixel_id, start_time, end_time, and campaign_id are not explained anywhere, so it only partially compensates for the low coverage.

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 and resource ('Add an ad set to an existing Meta campaign') plus the key configuring fields (goal, daily budget, locations, ages). It also distinguishes itself from siblings by naming meta_create_ad as the follow-up step, so an agent can tell it apart from meta_create_campaign and meta_create_ad.

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 explicit sequencing guidance: call without confirm first so Meta validates, then re-call with confirm: true. It also tells the agent what to do next (add ads with meta_create_ad). It doesn't cover alternatives like meta_build_campaign or prerequisites such as needing a connected Meta account, but the core when/how is clear.

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.