Skip to main content
Glama

Meta create adset

meta_create_adset

Create a Meta ad set. targeting is a Meta targeting spec object. Changes data: runs only with confirm=true; without it, returns a preview and changes nothing. The change reaches outside Kampalo. client_id picks the brand (defaults to the active one); extra passes any other field the app accepts.

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": {
      "ad_account_id": "<ad_account_id>",
      "name": "<name>",
      "campaign_id": "<campaign_id>"
    },
    "name": "meta_create_adset"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
extraNo
statusNo
confirmNo
user_idNo
end_timeNo
client_idNo
targetingNo
bid_amountNo
start_timeNo
user_emailNo
campaign_idYes
daily_budgetNo
ad_account_idYes
billing_eventNo
lifetime_budgetNo
optimization_goalNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false. The description adds real value on top of that: the confirm-gated preview behavior (nothing is written without confirm=true) and the warning that the change reaches outside Kampalo. Missing is what happens on partial failure or whether a retry could duplicate an ad set, which matters given idempotentHint=false.

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?

Four short sentences, front-loaded with the action and then the highest-risk fact (the confirm gate). No filler or repetition. The only cost is that the terse phrasing, such as "extra passes any other field the app accepts," pushes some interpretative work onto the reader.

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?

An output schema exists, so return values need not be described, but for a 17-parameter creation tool with 0% schema coverage the description leaves too much unstated: which fields are mutually exclusive (daily versus lifetime budget), what units the budgets use, and what valid enum values look like. The critical safety semantics are covered; the configuration semantics are not.

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 0%, so the description carries the full burden for 17 parameters, and it only explains four of them (targeting as a Meta targeting spec object, client_id with its default, extra as a passthrough, confirm). The remaining budget, bid, billing_event, optimization_goal, status and time fields are left entirely to the parameter names, and with no enums in the schema the agent has no way to know valid values for billing_event or optimization_goal.

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?

"Create a Meta ad set" states a specific verb and resource, and the resource noun (ad set) distinguishes it from meta_create_campaign and meta_create_ad without those being named. It stops short of an explicit sibling-level differentiation statement, so it earns a 4 rather than a 5.

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?

The description gives strong operational gating for confirm=true (preview versus apply), which is genuine when-to-use guidance for the mutation path. However, it says nothing about prerequisites or alternatives, e.g. that campaign_id must reference an existing campaign, or when to pick this over meta_create_campaign / meta_create_ad. Usage is implied rather than framed.

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.