Skip to main content
Glama
mcp-google-analytics

mcp-google-analytics

Configure key events and custom definitions

ga_configure_metrics

Create key events, custom dimensions, and custom metrics on a GA4 property. Existing items are reported instead of duplicated, so you can safely re-run configuration.

Instructions

Creates key events, custom dimensions and custom metrics on a property. Existing ones are reported, not duplicated.

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>"
    },
    "name": "ga_configure_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyEventsNoEvent names to mark as key events (conversions).
propertyIdYesGA4 property ID, e.g. 123456789 or properties/123456789.
customMetricsNo
customDimensionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does add one genuinely useful trait: 'Existing ones are reported, not duplicated', which tells the agent repeated calls are safe and what already-present items produce. It omits other important traits for a mutation tool — required permissions, partial-failure behavior when one of several arrays fails, whether existing definitions with the same parameterName are left untouched, and what the response actually reports.

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?

Two short sentences with zero filler; the creation scope is front-loaded and the idempotency caveat follows immediately. Nothing is repeated from the title or schema.

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

Completeness3/5

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

For a mutation tool that creates three distinct resource types in batch, with no annotations and no output schema, the definition covers the core action plus repeat-call behavior but leaves the agent guessing on permissions, partial failure, and return shape. It is adequate to select the tool but thin for invoking it confidently with complex nested payloads.

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

Parameters2/5

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

Schema description coverage is 50%, so the description needs to compensate, but it adds nothing about any parameter — not the propertyId format, not that keyEvents is a batch of event names, and not how customMetrics/customDimensions item fields (measurementUnit, scope, parameterName) are interpreted. 'On a property' only faintly gestures at propertyId, which the schema already documents well.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ('Creates') plus three concrete resources (key events, custom dimensions, custom metrics) and the target ('on a property'), so an agent knows exactly what the tool produces. It does not explicitly contrast itself with any sibling such as ga_update_property, which keeps it just short of a 5.

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

Usage Guidelines3/5

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

Usage is only implied: the agent can infer it should call this when it needs to register conversions or custom definitions on an existing property. There is no stated prerequisite (e.g. property must already exist, admin access required), no when-not-to-use condition, and no routing to alternatives like ga_create_property for non-existent properties.

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