Skip to main content
Glama

Google Ads & Meta Ads

Google Ads: Update Sitelink

gads_update_sitelink
DestructiveIdempotent

Rewrite an existing Google Ads sitelink: its link text, its two description lines or the page it sends people to. Editing keeps the sitelink's id and its performance history, which is why this is the right way to fix a dead landing page or reword a link rather than removing it and creating a replacement. A sitelink is one shared asset: if it is linked to several campaigns or ad groups, this changes it in all of them, and the result lists everywhere it is used — tell the user before calling. Get asset ids from gads_list_sitelinks. Pass only the fields you are changing.

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_id": "<asset_id>"
    },
    "name": "gads_update_sitelink"
  }
}

Input Schema

NameRequiredDescriptionDefault
asset_idYesSitelink asset to rewrite, from gads_list_sitelinks.
final_urlNoNew https page the click lands on.
link_textNoNew clickable line, at most 25 characters.
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.
description1NoNew first description line, at most 35 characters.
description2NoNew second description line, same limit.

Output Schema

NameRequiredDescriptionDefault
assetIdYesSitelink asset that was rewritten.
changedYesFields this call changed.
linkTextNoLink text after the edit.
linkedToYesEverywhere this sitelink is linked, and therefore everywhere the edit lands.
finalUrlsNoLanding pages after the edit.
description1NoFirst line after the edit.
description2NoSecond line after the edit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, but the description adds the non-obvious blast radius: a sitelink is a shared asset, so editing it changes every campaign and ad group it is attached to, and the response enumerates all usages. It goes further with an operational instruction ("tell the user before calling") and the partial-update rule ("pass only the fields you are changing"), which annotations cannot express.

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 and fields, then the most decision-relevant fact (history preservation), then the risk warning. Four sentences with almost no filler, though the shared-asset warning and the id-preservation rationale overlap slightly and could be tightened.

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, cross-cutting mutation with six parameters, the description covers what changes, side effects on linked campaigns, the pre-call user notification requirement, and where to source the id. An output schema exists and the description notes the result lists all usages, so return-value detail is not needed.

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 per-field meaning and length limits are already documented, giving a baseline of 3. The description adds genuine semantics beyond the schema by stating that only changed fields should be supplied, clarifying that the five optional fields are a partial-update set rather than a full replacement payload.

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?

Opens with a specific verb+resource ("Rewrite an existing Google Ads sitelink") and enumerates the mutable fields: link text, two description lines, landing page. It is clearly distinguishable from creation/removal and from the other gads_update_* siblings.

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 explicit when-to-use ("fix a dead landing page or reword a link") and an explicit when-not-to: don't remove and recreate, because editing preserves the id and performance history. It also routes the agent to gads_list_sitelinks to obtain the asset_id, so no inference is required.

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