Skip to main content
Glama

Propose a Meta ad swap

propose_ad_swap

State errors return error state_unavailable with details.object_type, details.object_id and details.check. Propose activating ads first then pausing source ads in the same own ad account. Stop without pausing if activation fails. Zero spend increase only when each activation replaces an active ad in the same active set; New carousel sets can be activated with activate_ad_sets; pause_ad_sets fully pauses old sets. CBO adds zero, ABO adds the new set daily budget unless compensated by a fully paused same-currency set. Otherwise live resume budgets and owner currency limits apply. Never delete/archive. Approval via portal, signed link or owner-enabled autopilot only, never MCP. After approval it runs in steps and can stay on executing for some minutes; get_change shows progress per phase.

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": {
      "site_id": "<site_id>",
      "reason": "<reason>",
      "account": "<account>",
      "activate": "<activate>",
      "pause": "<pause>"
    },
    "name": "propose_ad_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
pauseYes
reasonYes
accountYes
site_idYes
activateYes
pause_ad_setsNo
activate_ad_setsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / properties / activate_ad_sets / items / $ref
      Removed value: -"#/properties/activate/items"
    • addedInput schema / properties / activate_ad_sets / items / pattern
      Added value: +"^\\d{1,100}$"
    • addedInput schema / properties / activate_ad_sets / items / type
      Added value: +"string"
    • removedInput schema / properties / pause / items / $ref
      Removed value: -"#/properties/activate/items"
    • addedInput schema / properties / pause / items / pattern
      Added value: +"^\\d{1,100}$"
    • addedInput schema / properties / pause / items / type
      Added value: +"string"
    • removedInput schema / properties / pause_ad_sets / items / $ref
      Removed value: -"#/properties/activate/items"
    • addedInput schema / properties / pause_ad_sets / items / pattern
      Added value: +"^\\d{1,100}$"
    • addedInput schema / properties / pause_ad_sets / items / type
      Added value: +"string"
  2. Added

TDQS

A3.8/5.0
Behavior5/5

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

Goes well beyond the annotations (which only say non-read-only, open-world, non-idempotent, non-destructive): it discloses the approval workflow, that execution runs in steps and may sit in 'executing' for minutes, that get_change shows per-phase progress, the budget math for CBO vs ABO, currency limits, and the 'never delete/archive' guarantee. It even documents the error shape (state_unavailable with details.object_type/object_id/check), which is unusually useful for a mutating tool.

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

Conciseness3/5

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

Information-dense with little waste, but it opens with error-state details instead of the primary action, and several sentences pack multiple conditional clauses ('CBO adds zero, ABO adds the new set daily budget unless compensated by a fully paused same-currency set'). Front-loading the swap semantics would improve scannability.

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 complex, approval-gated, multi-step mutation with no output schema, the description covers the async lifecycle, progress tracking via get_change, budget constraints, and irreversibility boundaries. The remaining gap is parameter-level meaning, which is fully absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 7 parameters, and the description never explains site_id, reason, account, or the ID format/limits of activate and pause. Worse, activate_ad_sets and pause_ad_sets are described as if they were separate tools ('can be activated with activate_ad_sets'), while the schema defines identically named parameters, leaving the agent unsure whether to pass them as fields or call siblings.

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?

The description states a specific action: 'Propose activating ads first then pausing source ads in the same own ad account,' which is a precise verb+resource statement of an ad swap. It is somewhat obscured by the opening error-state sentence and never explicitly contrasts itself with close siblings like propose_ad_change or propose_ad_edit, so differentiation is only partial.

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 clear operating conditions: 'Stop without pausing if activation fails,' and routes carousel sets to activate_ad_sets and full pauses to pause_ad_sets. It also states approval must come via portal/signed link/autopilot and 'never MCP,' which tells the agent the boundary of what this call can accomplish. No explicit when-not-to-use statement against the sibling propose_* tools.

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