Skip to main content
Glama
google-seo-mcp
by Akxan

Register GA4 custom dimensions

ga_create_custom_dimension
Idempotent

Registers GA4 event parameters or user properties as custom dimensions so their values are retained and available in reports; use dryRun to preview existing and new dimensions.

Instructions

Register event parameters (or user properties) as custom dimensions so GA4 keeps their values and reports can use them (customEvent:, customUser:). GA4 discards the values of unregistered parameters and never backfills, so register them as soon as the site starts sending them. Check ga_property_config customDimensions first: a dimension cannot be deleted through the API, only archived in the GA4 UI, and a standard property allows 50 event-scoped and 25 user-scoped. Parameters already registered with the same scope are skipped, not duplicated. dryRun shows what exists and what would be created.

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": {
      "propertyId": "<propertyId>",
      "dimensions": "<dimensions>"
    },
    "name": "ga_create_custom_dimension"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoList existing dimensions and the ones that would be created, without creating anything.
dimensionsYesDimensions to register in this property.
propertyIdYesGA4 property ID, e.g. '123456789' (see ga_list_properties).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses critical GA4 behavior: unregistered parameter values are discarded and never backfilled, and dimensions cannot be deleted through the API, only archived in the GA4 UI. It also adds quota limits and idempotent skip behavior, which is much more specific than the idempotentHint annotation alone.

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?

The description is front-loaded with the core action, then layers consequences, prerequisites, limits, duplicate handling, and dryRun behavior. It is dense but has little waste; a slightly more structured presentation would make the multiple caveats easier to scan.

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 non-read-only, open-world mutation tool with no output schema, the description covers the essential context an agent needs: why registration matters, what happens if omitted, prerequisites, quotas, duplicate handling, and dry-run behavior.

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 the schema already carries the detailed parameter meanings. The description still adds useful context by explaining the customEvent:<parameter> and customUser:<property> naming pattern and by clarifying what dryRun shows.

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 and resource: register event parameters or user properties as GA4 custom dimensions. It also explains the resulting naming conventions (customEvent/customUser), making the operation distinguishable from reporting or configuration-reading 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?

It tells the agent to register parameters as soon as the site starts sending them, to check ga_property_config customDimensions first, and to use dryRun to preview. It also gives concrete quota constraints and states that already-registered parameters with the same scope are skipped rather than duplicated.

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