Skip to main content
Glama

Google Ads & Meta Ads

Google Ads: Update Search Themes

gads_update_search_themes
DestructiveIdempotent

Set the search themes of a Performance Max asset group — the phrases that tell Google which demand this asset group is meant to capture, which is one of the few direct controls a Performance Max campaign has. The list you pass REPLACES the whole set: send every theme you want the asset group to have, including the ones already there. A theme that drops out of the list is deleted and this tool cannot bring it back. At most 25 themes of 80 characters each. Audience signals on the same asset group are never touched. Read the current themes first with gads_list_asset_groups and include_search_themes.

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": {
      "asset_group_id": "<asset_group_id>",
      "search_themes": "<search_themes>"
    },
    "name": "gads_update_search_themes"
  }
}

Input Schema

NameRequiredDescriptionDefault
customer_idNoGoogle Ads account to change: customer id or exact account name. Required when you have several accounts — the stored default is never used for a change then.
search_themesYesThe complete new set of search themes, at most 25 entries of 80 characters or fewer. Write them the way someone would search, not as keywords with match types. Pass an empty array to remove every search theme, which leaves Google inferring intent entirely on its own.
asset_group_idYesAsset group whose search themes to set, as reported by gads_list_asset_groups.

Output Schema

NameRequiredDescriptionDefault
addedYesHow many themes were created.
removedYesHow many themes were deleted.
skippedYesThemes that were already set under a different capitalisation, so nothing was written for them. Google matches search themes case-insensitively.
campaignIdNoCampaign it belongs to.
assetGroupIdYesAsset group that was updated.
searchThemesYesThe search themes now in effect.
assetGroupNameNoName of the asset group.
audienceSignalCountYesAudience signals on this asset group, which this tool leaves untouched. Editing those needs the Google Ads interface.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds the crucial detail of what destruction means: the passed list replaces the entire set, dropped themes are deleted with no undo, and audience signals on the asset group are untouched. It could still say more about the response or whether a partial failure is possible, but the irreversibility warning is the highest-value disclosure.

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 tight sentences, front-loaded with the destructive replace semantics before the limits and the read-first advice. The aside that search themes are 'one of the few direct controls a Performance Max campaign has' is context rather than instruction, which keeps it just short of a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive write with three parameters, the definition covers scope, replacement semantics, irreversibility, size limits, an empty-array edge case, what is not affected, and the prerequisite read. With full schema coverage, annotations, and an output schema, nothing material is missing.

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 coverage is 100%, so baseline is 3; the description adds real meaning on the riskiest parameter by stressing that every existing theme must be re-sent, which is stronger than the schema's 'complete new set' phrasing. The 25-theme/80-character limit and empty-array semantics are already in the schema, so the gain is modest but real.

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 ('Set the search themes of a Performance Max asset group') and immediately defines what a search theme is, so an agent understands the object it is mutating rather than just the name. It also names the sibling read tool that reports asset groups, distinguishing this write from the listing tools.

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?

Gives an explicit prerequisite workflow ('Read the current themes first with gads_list_asset_groups and include_search_themes'), states the replace-all calling convention, and explains the edge case of passing an empty array. An agent knows both how to call it and what to do before calling 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