Skip to main content
Glama

GA4: create Google Ads link

ga4_create_google_ads_link
Destructive

Link a GA4 property (properties/) to a Google Ads account, so its key events can be imported into Google Ads as conversions and paid visits join the organic ones. customer_id is the Google Ads account (digits; hyphens are stripped). ads_personalization_enabled shares Analytics audiences and remarketing events with Google Ads — off unless the user asks for it. Read ga4_list_google_ads_links first: a property already linked to this account needs no second link. While linked, Google Ads click and cost data flows into this property and Analytics data flows to that Google Ads account; the link stays until someone removes it in Analytics (Admin, Product links), as this connector cannot unlink.

Tools revision: d80f65c0.

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": {
      "property": "<property>",
      "customer_id": "<customer_id>"
    },
    "name": "ga4_create_google_ads_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
propertyYes
customer_idYes
ads_personalization_enabledNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description goes further: it discloses bidirectional data flow while linked and, critically, that the link persists until removed manually in Analytics because "this connector cannot unlink." That irreversibility warning is exactly the kind of context an agent needs before performing an effectively permanent mutation.

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 its purpose, then prerequisites, then parameter meaning, then consequences — a sensible order with no filler sentences. Slightly long, and the aside about paid visits joining organic ones is explanatory color rather than operational guidance, but it is not wasteful enough to penalize further.

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?

Output schema exists, so return values need not be described. Given that, the description covers everything an agent needs: what the link does, how to avoid duplicate links, parameter formats and defaults, and the fact that the operation is not reversible through this connector.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry all parameter meaning — and it does. It specifies the property ID format (properties/<id>), that customer_id is digits with hyphens stripped, and that ads_personalization_enabled shares audiences and remarketing events with Google Ads, reinforcing the schema's default of false.

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 ("Link a GA4 property ... to a Google Ads account") and immediately explains the effect: key events importable as conversions and paid visits joining organic ones. This is clearly distinguishable from the sibling ga4_list_google_ads_links and from ga4_create_property or ga4_create_conversion_event.

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 an explicit prerequisite ("Read ga4_list_google_ads_links first: a property already linked to this account needs no second link") and an explicit default for the optional flag ("off unless the user asks for it"). Both when-to-use and when-not-to-use are named.

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