Skip to main content
Glama
lucagalvani

google-ads-agent

by lucagalvani

assign_ad_groups

Read-only

Map keywords to existing ad groups using Google's themeing, with a suggested match type per keyword. Split large ad groups by creating themed groups first, then run this to distribute.

Instructions

Map a list of keywords across ad groups that ALREADY EXIST, using Google's own themeing. It assigns and refines rather than inventing themes from scratch: pass a campaign whose ad groups are already created, and it returns which ad group each keyword belongs in, with a suggested match type. To split one big ad group, create the themed ad groups first, then run this to distribute the keywords.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordsYes
campaign_idNo
customer_idYes
ad_group_idsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already mark readOnlyHint=true, and the description stays consistent by emphasizing that the tool 'assigns and refines' and 'returns' a mapping rather than mutating ad groups. It adds useful behavioral context about using Google's own themeing, the dependency on already-created ad groups, and the distribution workflow.

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 sentences deliver the core action, the key constraint, and a practical workflow without filler. The most important distinguishing detail — existing ad groups and Google's themeing — is front-loaded, and every sentence adds value.

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?

Given that an output schema exists and annotations cover the read-only nature, the description adequately explains what the tool returns, the prerequisites, and the intended use case. The only minor gap is lack of detail about how campaign_id and ad_group_ids relate or conflict when both are supplied, which is low-risk for a read-only mapping tool.

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?

The input schema has 0% description coverage, so the description must compensate. It explains keywords as a list to map, implies campaign_id via 'pass a campaign', and references existing ad groups corresponding to ad_group_ids, but it never mentions the required customer_id parameter or clarifies the optional/null behavior of ad_group_ids. This is partial compensation, not full.

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?

The description clearly states a specific action — mapping keywords across existing ad groups via Google's themeing — and distinguishes it from creating themes from scratch. It also specifies the output: which ad group each keyword belongs in plus a suggested match type, so the tool's purpose is unambiguous and distinct from siblings like suggest_keywords.

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?

The description gives clear preconditions and workflow: ad groups must already exist, pass a campaign with pre-created ad groups, and to split a big ad group first create themed ad groups then run this. It implies when to use this tool versus alternatives, though it does not name an alternative tool explicitly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.