Skip to main content
Glama
Google Ads MCP Server

Google Ads MCP Server

mutate

Apply raw Google Ads API write operations across campaigns, ad groups, keywords, budgets, and assets in one atomic call; validates by default and writes when validateOnly is false.

Instructions

Универсален запис — приема суровите mutate операции на Google Ads API и може да смеси различни ресурси в едно атомарно извикване (кампании, ad groups, keywords, бюджети, асети...). Използвай го за всичко, което специализираните инструменти не покриват. ВАЖНО: по подразбиране работи в режим validateOnly (само проверка). Подай validateOnly: false, за да приложиш промяната наистина.

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": {
      "customerId": "<customerId>",
      "mutateOperations": "<mutateOperations>"
    },
    "name": "mutate"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoКратко описание за change log-а.
confirmNoЗадължително true, ако има REMOVE операции.
customerIdYesGoogle Ads customer ID (с или без тирета).
validateOnlyNotrue (по подразбиране) = само проверка. false = прилага промяната.
partialFailureNoАко е true, валидните операции минават дори при грешка в останалите.
mutateOperationsYesМасив от операции, всяка с ключ <resource>Operation, напр. [{"campaignOperation":{"update":{"resourceName":"customers/123/campaigns/456","status":"PAUSED"},"updateMask":"status"}}]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well on the most dangerous trait: it discloses that the tool defaults to validateOnly (dry-run) and that validateOnly: false is required to actually persist the change. It also states the atomic multi-resource behavior. It does not cover permissions/auth requirements, rate limits, or how partial failures are reported.

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?

Three sentences, front-loaded with the verb and scope, then the routing rule, then the critical safety caveat in caps. It is tightly sized; the only minor redundancy is repeating the validateOnly default that the schema also states, though the emphasis is defensible for a destructive-capable tool.

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 6-parameter, no-output-schema mutation tool, the definition covers purpose, when to use it, atomicity, and the dry-run default. The remaining gap is the return value: with no output schema, the description never says what a mutate call returns (per-operation results vs. overall success), which an agent needs after calling it.

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 100%, so all six parameters (including label, confirm for REMOVE, partialFailure, and the mutateOperations shape) are already documented in the schema. The description only restates the validateOnly default, which duplicates the schema text. Baseline 3 is appropriate since the schema does the heavy lifting.

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 gives a specific verb and resource ('универсален запис... приема суровите mutate операции на Google Ads API') and states the distinctive capability: mixing multiple resource types in one atomic call, with concrete examples (campaigns, ad groups, keywords, budgets, assets). An agent can immediately tell this is the raw generic escape hatch rather than a field-specific writer.

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?

It gives an explicit routing rule: 'Използвай го за всичко, което специализираните инструменти не покриват' — i.e., use this when the specialized tools (set_status, set_bid, add_keywords, etc.) don't cover the case. That is a clear fallback condition, though it does not name a concrete sibling or state explicit exclusions (e.g., 'prefer set_status for simple pause/resume').

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