Skip to main content
Glama

expand_campaign

DestructiveIdempotent

Run AdeptAds expansion on an existing campaign using optimization credits. UNIT adds one ad/asset group; CONTENT adds keywords/search themes; max_new_keywords caps a Search or Display CONTENT run, highest search volume first; omit it to add every reviewed keyword; target_group_ids limits a CONTENT run to those ad/asset groups (ids from get_campaign content.groups); omit it to let research pick groups; TARGETING researches exact geographies and returns a proposal for approval; poll the task for its locations and review URL. UNIT/CONTENT publish directly and may add enabled ads/groups; require authorization for their spend impact. Does not enable Autopilot. Reuse the same key for uncertain retries.

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": {
      "account": "<account>",
      "campaign_id": "<campaign_id>",
      "expansion_type": "<expansion_type>",
      "brief": "<brief>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "expand_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
briefYes
accountYes
campaign_idYes
expansion_typeYes
idempotency_keyYes
max_new_keywordsNo
target_group_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered structurally. The description nonetheless adds real value beyond them: UNIT/CONTENT publish directly and may add enabled ads/groups whose spend requires authorization, while TARGETING only returns a proposal for approval and must be polled for locations and a review URL. The main gap is that it never explains what the initial response contains for UNIT/CONTENT runs or what 'optimization credits' consumption looks like.

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?

Front-loaded with the action then per-mode detail; nearly every clause carries information. The semicolon-chained telegraphic style ('omit it to add every reviewed keyword; target_group_ids limits...') makes it denser than needed and it lacks any formatting to separate the three modes, which slows scanning.

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 7-parameter, zero-coverage, destructive, no-output-schema tool, the definition covers side effects, spend authorization, approval/proposal flow, and retry semantics. It falls short on describing the 'brief' input and on characterizing what the caller gets back from UNIT/CONTENT runs beyond 'poll the task'.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry parameter meaning and it largely does: expansion_type modes, max_new_keywords semantics (cap with highest search volume first), target_group_ids scoping plus sourcing hint ('ids from get_campaign content.groups'), and idempotency_key reuse for uncertain retries. However the required 'brief' parameter (1-4000 chars, the core instruction input) is never defined, and campaign_id/account are unexplained, leaving a meaningful gap.

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 opening sentence gives a specific verb and resource ('Run AdeptAds expansion on an existing campaign') and immediately defines the three expansion modes (UNIT adds one ad/asset group, CONTENT adds keywords/search themes, TARGETING researches geographies). It never names a sibling tool as an alternative, so the agent must infer the boundary against create_campaign or update_* tools, but the action itself is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It gives explicit mode-selection guidance for all three expansion types, states the effect of omitting optional params ('omit it to add every reviewed keyword', 'omit it to let research pick groups'), notes the TARGETING approval workflow versus direct publishing for UNIT/CONTENT, and adds a negative constraint ('Does not enable Autopilot') plus retry guidance. Little is left to inference about when and how to call it.

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