Skip to main content
Glama

Create a campaign from a Page post

ads_create_campaign

Turn an existing Page post into a new campaign, ad set and ad, created PAUSED, and return a preview. Nothing spends until ads_set_status sets it ACTIVE. Reuse the same idempotencyKey when retrying: a repeated key returns the first result instead of creating a second campaign. dailyBudget is in whole currency units.

Input Schema

NameRequiredDescriptionDefault
endDateYes
accountIdNoThe Facebook accountId from list_accounts. Without it, pass profileId to use that profile's Facebook connection.
profileIdNoA profileId from list_profiles. Optional when accountId is given, which names its profile; if both are given they must agree.
startDateYes
pagePostIdYes
adAccountIdYes
dailyBudgetYes
campaignNameYes
idempotencyKeyYesA unique value per intended campaign, such as a UUID. Sent as the Idempotency-Key header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / accountId / description
      Previous value: -"The Facebook accountId from list_accounts. Defaults to the profile's Facebook connection."New value: +"The Facebook accountId from list_accounts. Without it, pass profileId to use that profile's Facebook connection."
    • changedInput schema / properties / profileId / description
      Previous value: -"Defaults to the profile your API key is bound to."New value: +"A profileId from list_profiles. Optional when accountId is given, which names its profile; if both are given they must agree."
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=true; the description goes well beyond that by disclosing the PAUSED creation state, that no spend occurs until a separate activation, the idempotency/retry deduplication behavior, and the currency-unit convention for dailyBudget. These are exactly the behavioral facts an agent needs before invoking a mutation.

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?

Three tight sentences with zero filler, and the most consequential fact (created PAUSED, nothing spends) is front-loaded before retry and units details. Every sentence earns its place.

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 9-parameter mutation with no output schema, the description covers the safety-relevant behavior thoroughly and even names the return artifact ('a preview'). Gaps remain around account/profile selection and date semantics, but those are documented in the schema descriptions the description can lean on.

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 33%, so the description must compensate for six undocumented parameters. It adds real value for dailyBudget (whole currency units, not in schema) and restates idempotencyKey semantics, but says nothing about adAccountId vs accountId/profileId selection, startDate/endDate meaning, pagePostId format, or campaignName constraints. Partial compensation only.

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 ('Turn an existing Page post into a new campaign, ad set and ad') plus the resulting state ('created PAUSED') and return ('a preview'). This clearly distinguishes it from siblings like ads_create_account and ads_delete_campaign without needing 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 Guidelines4/5

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

Gives the operative condition for spending ('Nothing spends until ads_set_status sets it ACTIVE'), which routes the agent to the sibling that activates campaigns, and explains the retry path via idempotencyKey. It stops short of explicit when-not-to-use or alternative creation paths, but the activation handoff is concrete.

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