Skip to main content
Glama
ga4-gsc-mcp

ga4-gsc-mcp

by kkvlabs

GA4 dimensions and metrics

ga4_metadata
Read-onlyIdempotent

Lists and searches the dimensions and metrics available for a GA4 property, including custom ones, so you can find the right fields to build reports and queries.

Instructions

Which dimensions and metrics can I use? GA4 metadata for a property, including custom dimensions and metrics, searchable by name or category.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ga4_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
siteNoSite as a domain or Search Console URL, e.g. "example.com" or "sc-domain:example.com". Optional when the credentials see one site.
searchNoOnly fields whose name, API name or category contains this.
custom_onlyNoOnly custom dimensions and metrics.
ga4_propertyNoGA4 property ID (numbers only). Optional: found from the site's web stream when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered and the description only needs to add context. It confirms scope (property-level metadata including custom dimensions/metrics) but says nothing about return shape, size, pagination, or how custom fields appear alongside standard ones.

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?

Two sentences, zero waste, with the question front-loading the agent's intent and the second sentence supplying scope and the searchable attribute. The interrogative opener is slightly gimmicky for a tool description but functions as an effective hook.

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?

With five optional parameters, no required arguments, and no output schema, the description should convey what comes back — a list of field names with categories and custom flags — but it only gestures at this. It is adequate to select and call the tool, yet leaves the agent unsure of the response structure it will have to parse.

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 80% and each parameter carries its own description, so the baseline is 3. The description adds a bit beyond the schema by pairing 'custom dimensions and metrics' with the custom_only intent and 'searchable by name or category' with the search filter, but it never touches kind, site, or ga4_property resolution, so it is not a full complement.

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 resource (GA4 metadata: dimensions and metrics for a property, custom fields included) and frames the use case with 'Which dimensions and metrics can I use?'. That distinguishes it from the report-running siblings like run_ga4_report, though no sibling is named explicitly.

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?

The rhetorical question implies the discovery use case (look up valid field names before building a report), but there is no explicit when-to-use, when-not-to-use, or named alternative. An agent must infer that this is a reference/discovery call rather than a data fetch.

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