Skip to main content
Glama
google-data-mcp

google-data-mcp

by seliem-attia

GA4: Available dimensions & metrics

ga4_get_metadata
Read-only

Lists valid GA4 dimensions and metrics, including custom fields, for a property so you can select correct API names before running a report instead of guessing.

Instructions

Lists the dimensions and metrics that ga4_run_report knows for this property, incl. custom ones (customEvent:…, customUser:…). Use before a report instead of guessing API names. Without a filter only the apiNames; with search (substring in apiName, uiName, description), category or customOnly, uiName, category and metric type are added.

Input Schema

NameRequiredDescriptionDefault
kindNoDefault all
searchNoSubstring, e.g. 'page', 'source', 'lead'
detailsNoInclude description (long, only useful together with a filter)
categoryNoCategory substring, e.g. 'Page / screen', 'Traffic source', 'Event'
propertyYesGA4 property ID, e.g. '123456789' or 'properties/123456789'
customOnlyNoOnly custom dimensions/metrics

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=true, openWorldHint=true), so the bar is lower. The description still adds genuine behavioral detail about the response shape: unfiltered calls return only apiNames, while search/category/customOnly calls additionally return uiName, category and metric type — a meaningful disclosure not derivable from 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?

Three dense sentences, front-loaded with purpose then usage then output behavior; no filler. The compression ('incl.', 'customEvent:…') makes it slightly harder to parse than a cleanly structured alternative, but nothing is wasted.

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?

With six parameters and no output schema, the description carries the burden of explaining returns and largely does so by distinguishing the filtered and unfiltered output shapes. Combined with the fully documented schema, an agent has enough to call this correctly and interpret the result.

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 would be 3, but the description adds real meaning beyond the schema: it specifies that search matches substrings in apiName, uiName and description, and that it conditions which output fields appear. The 'details' parameter is not addressed in the description, keeping it below 5.

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 ('Lists the dimensions and metrics that ga4_run_report knows for this property') and explicitly scopes it to the property, including custom ones with their naming prefixes (customEvent:…, customUser:…). An agent can tell this apart from report-running siblings like ga4_run_report or ga4_run_funnel_report without opening a schema.

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 a clear precondition: 'Use before a report instead of guessing API names,' which explicitly routes the agent away from trial-and-error on ga4_run_report. It lacks any 'when not' guidance or differentiation from the closely related ga4_list_custom_definitions sibling, so it falls short of a 5.

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