Skip to main content
Glama
AdLoop: Google Ads, Reddit Ads & GA4

AdLoop: Google Ads, Reddit Ads & GA4

Draft sitelinks

draft_sitelinks

Draft sitelink extensions for a campaign or account, validate each destination URL, and return a preview with plan ID and warnings before anything is applied.

Instructions

Draft sitelink extensions for a campaign or the account — returns a PREVIEW.

Sitelinks appear as additional links below your ad, increasing click area and directing users to specific pages. Every final_url is fetched and an unreachable URL (HTTP 4xx/5xx) blocks the draft. Google recommends at least 4 sitelinks per campaign; fewer than 2 may not show. Returns a preview with a plan_id and any warnings; nothing changes until confirm_and_apply applies it.

Google Ads API: https://developers.google.com/google-ads/api/docs/start

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": "draft_sitelinks"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoEmpty follows campaign_id. "account" links the sitelinks account-wide; they serve on every eligible campaign without sitelinks of its own. It is never inferred from an empty campaign_id.
sitelinksYesList of dicts (at least one), each with link_text (str, required, max 25 chars) — the clickable text shown; final_url (str, required) — destination URL for this sitelink; description1 (str, optional, max 35 chars) — first description line; description2 (str, optional, max 35 chars) — second description line; start_date / end_date (str, optional, YYYY-MM-DD) — first and last day the sitelink shows, so seasonal links switch off by themselves.
campaign_idNoNumeric ID of the campaign to attach sitelinks to. Leave empty with scope="account".
customer_idNoGoogle Ads customer ID (digits, dashes optional). Defaults to the configured account.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.45.0
    • changedInput schema / properties / sitelinks / description
      Previous value: -"List of dicts (at least one), each with link_text (str,\nrequired, max 25 chars) — the clickable text shown; final_url (str,\nrequired) — destination URL for this sitelink; description1 (str,\noptional, max 35 chars) — first description line; description2\n(str, optional, max 35 chars) — second description line."New value: +"List of dicts (at least one), each with link_text (str,\nrequired, max 25 chars) — the clickable text shown; final_url (str,\nrequired) — destination URL for this sitelink; description1 (str,\noptional, max 35 chars) — first description line; description2\n(str, optional, max 35 chars) — second description line;\nstart_date / end_date (str, optional, YYYY-MM-DD) — first and last\nday the sitelink shows, so seasonal links switch off by themselves."
  2. Changed4 schema fields changedv0.38.1
    • addedInput schema / properties / campaign_id / default
      Added value: +""
    • changedInput schema / properties / campaign_id / description
      Previous value: -"Numeric ID of the campaign to attach sitelinks to."New value: +"Numeric ID of the campaign to attach sitelinks to. Leave\nempty with scope=\"account\"."
    • addedInput schema / properties / scope
      Added value: +{
      +  "default": "",
      +  "description": "Empty follows campaign_id. \"account\" links the sitelinks\naccount-wide; they serve on every eligible campaign without sitelinks\nof its own. It is never inferred from an empty campaign_id.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "campaign_id",
      -  "sitelinks"
      -]New value: +[
      +  "sitelinks"
      +]
  3. Changed3 schema fields changedv0.27.1
    • addedInput schema / properties / campaign_id / description
      Added value: +"Numeric ID of the campaign to attach sitelinks to."
    • addedInput schema / properties / customer_id / description
      Added value: +"Google Ads customer ID (digits, dashes optional). Defaults to\nthe configured account."
    • addedInput schema / properties / sitelinks / description
      Added value: +"List of dicts (at least one), each with link_text (str,\nrequired, max 25 chars) — the clickable text shown; final_url (str,\nrequired) — destination URL for this sitelink; description1 (str,\noptional, max 35 chars) — first description line; description2\n(str, optional, max 35 chars) — second description line."
  4. First observedv0.9.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, openWorldHint=true; the description adds substantially more: the operation is a preview keyed by plan_id, no state changes occur until confirm_and_apply, final_url values are fetched live and 4xx/5xx responses block the draft, and warnings are returned. That is real behavioral context an agent cannot get from the annotations.

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-loads the preview/plan_id contract, then rationale, then API reference. The middle sentence about increasing click area is mild marketing filler that does not help an agent decide or invoke, but the rest is dense and earned.

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?

With annotations, a full output schema, and 100% param coverage, the description supplies what structured fields cannot: the preview-then-apply lifecycle, URL validation failure mode, and scope semantics. It does not cover auth requirements or error shapes beyond URL blocking, which is a minor gap given the output schema exists.

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 baseline is 3, but the description adds meaning beyond the schema by explaining the account-scope consequence ('serve on every eligible campaign without sitelinks of its own') and by tying final_url validity to draft success. The sitelinks element fields themselves are left entirely to the schema.

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 ('Draft sitelink extensions for a campaign or the account') and immediately qualifies the output as a PREVIEW, which separates it from confirm_and_apply and from the other draft_* siblings that cover different asset types.

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 explicit workflow guidance ('nothing changes until confirm_and_apply applies it') and a precondition that determines success ('an unreachable URL (HTTP 4xx/5xx) blocks the draft'), plus the Google recommendation of 4+ sitelinks and the 2-sitelink display floor. It stops short of naming when-not-to-use cases, but the draft/apply split is clear enough to route correctly.

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

Deploy Server

Other Tools