Skip to main content
Glama

google_ads_asset_group_assets_replace

Swap a Performance Max asset group's headline, long headline, or description atomically, preserving the minimum asset count by linking a new asset before removing the old link.

Instructions

Swaps one headline, long headline or description of a Performance Max asset group for new text. Mutating. A Google Ads text Asset is immutable, so this creates a new Asset, links it to the asset group under the same field_type, and removes the old link — all three in ONE atomic GoogleAdsService.mutate, so the asset group's asset count for that field type never dips below the Performance Max minimum (a removal issued on its own is refused with AssetGroupError.NOT_ENOUGH_*). The old Asset itself is not deleted; only its link to this asset group is. Returns {asset_group_id, field_type, added: {asset_id, asset_resource_name, text, asset_group_asset}, removed: {asset_id, text, asset_group_asset}, note}. Not automatically reversible — to swap back, call this tool again with the old text; record before-state with mureo_state_action_log_append if you may need to roll back. Call google_ads_asset_group_assets_list first to get old_asset_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
new_textYesReplacement copy. Display-width limits (a full-width character counts as two): HEADLINE 30, LONG_HEADLINE 90, DESCRIPTION 90. Text already linked under the same field_type is rejected — Google Ads refuses a duplicate link.
field_typeYesWhich slot to swap. Must match the field_type the old asset is linked under — the same text asset can be linked as more than one field type.
customer_idNoGoogle Ads customer ID as a 10-digit string without dashes (e.g. '1234567890'). Optional — falls back to GOOGLE_ADS_CUSTOMER_ID / GOOGLE_ADS_LOGIN_CUSTOMER_ID from the configured credentials when omitted.
old_asset_idYesasset_id of the entry being replaced, from google_ads_asset_group_assets_list. Rejected before any write if it is not linked to this asset group under this field_type.
asset_group_idYesAsset group whose copy is being changed, as reported by google_ads_asset_group_assets_list.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv0.13.1

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description takes full responsibility for behavioral disclosure. It details that the operation is atomic (all three steps in one mutate), creates a new asset, removes the old link without deleting the asset, is not reversible, and returns a specific structure. It also mentions the duplicate-link rejection behavior, providing comprehensive transparency about side effects and constraints.

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?

Although the description is longer than typical, every sentence delivers critical information: atomicity, the NOT_ENOUGH_* error context, old asset non-deletion, return format, irreversibility, and the prerequisite list call. No fluff or redundancy; it is efficiently front-loaded with the core action.

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 complex mutating tool with no annotations and no output schema, the description covers all necessary context: the atomic multi-step operation, the reason for atomicity (minimum asset count), the return structure, the irreversibility and rollback guidance, and the required precursor step. It is fully sufficient for an agent to understand and execute the tool correctly.

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% and every parameter has a description, but the tool description adds extra meaning beyond the schema: new_text's display-width limits and duplicate-text rejection, field_type's note that the same asset can be linked under multiple field types, and old_asset_id's validation rule. This enhances understanding beyond the basic schema definitions.

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 states a specific verb+resource: 'Swaps one headline, long headline or description of a Performance Max asset group for new text. Mutating.' It clearly identifies the operation and distinguishes it from sibling tools like google_ads_asset_group_images_replace (images vs. text) and google_ads_asset_group_assets_list (read vs. write).

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 explicitly instructs calling google_ads_asset_group_assets_list first to obtain old_asset_id, and explains that removing an asset on its own fails with NOT_ENOUGH_* errors, implying this replace tool is the correct approach to maintain minimum asset counts. It also advises recording before-state with mureo_state_action_log_append for rollback, giving clear context for when and how to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/logly/mureo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server