Skip to main content
Glama

Google Ads & Meta Ads

Google Ads: Create Sitelinks

gads_create_sitelinks
DestructiveIdempotent

Add sitelinks — the extra links under a Search ad — and attach them to the whole account, to one campaign or to one ad group. Each sitelink needs link text of at most 25 characters and an https landing page, and may carry two description lines of at most 35 characters each — Google shows both lines or neither, so pass both or neither. Google serves at most 20 sitelinks per level, and this call is refused if the new ones would not fit. Existing sitelinks are kept: an identical sitelink already attached at the target is reported as already attached, and one that exists elsewhere in the account is linked instead of created again. Set validate_only to have Google check the request without changing anything. Read what is already there with gads_list_sitelinks.

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": {
      "sitelinks": "<sitelinks>"
    },
    "name": "gads_create_sitelinks"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoWhere the sitelinks serve: account for every campaign in the account, campaign for one campaign, ad_group for one ad group. Defaults to campaign.
sitelinksYesSitelinks to create, at most 20 per call.
ad_group_idNoAd group to attach them to, when level is ad_group.
campaign_idNoCampaign to attach them to, when level is campaign.
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.
validate_onlyNoHave Google validate the request without creating or attaching anything. Default false.

Output Schema

NameRequiredDescriptionDefault
levelYesWhere the sitelinks were attached.
ownerIdNoCampaign or ad group they were attached to. Null at account level.
sitelinksYesOne row per requested sitelink.
countAfterYesHow many sitelinks the level holds now.
createdCountYesNumber of sitelinks newly linked (created or reused).
validateOnlyYesTrue when Google only validated and nothing changed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the 20-sitelinks-per-level cap and that the call is refused if the new ones would not fit, that existing sitelinks are preserved, that an identical sitelink at the target reports as already attached, and that one existing elsewhere in the account is linked rather than duplicated. The both-or-neither rule for description lines is also stated, matching the idempotentHint annotation without contradicting destructiveHint.

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 purpose and attachment levels before constraints and dedup semantics, and nearly every sentence carries operational information. A small amount of duplication with the schema (character limits, https requirement) is the only waste.

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 mutation tool whose annotations already flag destructive and open-world behavior, the description covers limits, refusal conditions, dedup behavior, dry-run support, and where to read current state. With an output schema present, no return-value explanation is needed, leaving nothing an agent needs missing.

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 level, ids, validate_only and the sitelink fields are already documented in the schema. The description mostly restates those constraints (25-character link text, https URL, 35-character description lines) and adds only a little extra meaning, notably the both-or-neither pairing rule and the 20-per-level serving cap.

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 ('Add sitelinks — the extra links under a Search ad') and immediately enumerates the three attachment levels. It names the sibling it is not ('Read what is already there with gads_list_sitelinks'), so an agent can route between read and create without opening either schema.

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?

Gives a clear usage context (creating and attaching sitelinks at account/campaign/ad-group level) and a concrete alternative for inspection (gads_list_sitelinks), plus the validate_only dry-run pattern. It stops short of explicit when-not-to-use guidance such as naming gads_remove_sitelinks for deletion or stating prerequisites like permissions.

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