Skip to main content
Glama
mharnett

mcp-gtm-ga4

by mharnett

gtm_ga4_create_custom_dimension

Create a new custom dimension in GA4 property linked to your GTM container. Define the event parameter name, display name, scope, and description.

Instructions

Register a new custom dimension in the GA4 property linked to this GTM container.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNo"EVENT" or "USER" (default: EVENT)
descriptionNoOptional description
display_nameYesHuman-readable name (e.g., "Form Type")
parameter_nameYesEvent parameter name (e.g., "form_type")
Behavior2/5

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

With no annotations provided, the description must disclose behavioral traits. It fails to mention idempotency, permissions, rate limits, or behavior on duplicate parameter names. Only the core action is stated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, front-loaded sentence with no wasted words. Efficiently conveys the core action and context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete. It does not explain return values, success indicators, or implications of creating a dimension. For a creation tool, more detail is needed.

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 the baseline is 3. The description adds no additional meaning beyond the schema's parameter descriptions (e.g., parameter_name, display_name). No extra context like formatting or constraints.

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 clearly states the action (register) and resource (custom dimension) with context (GA4 property linked to GTM container). It effectively distinguishes from sibling tools like listing dimensions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives, such as when to create vs. list dimensions or prerequisites. The description lacks exclusions or contextual help.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mharnett/mcp-gtm-ga4'

If you have feedback or need assistance with the MCP directory API, please join our Discord server