Skip to main content
Glama

Site Insights by KKV Labs

GA4 dimensions and metrics

ga4_metadata
Read-onlyIdempotent

Every dimension and metric this GA4 property has (GA4 Data API getMetadata), including its custom dimensions and metrics, with API name, UI name, description, category and type.

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
rawNotrue returns Google's response exactly as Google sent it, unchanged.
siteNoThe site's domain (example.com) or its label. Optional when the account has exactly one site switched on. An unknown name returns an error that lists the switched on sites.
offsetNoRow to start from, for the next page. Default 0.
searchNoOnly fields whose name or category contains this text.
page_sizeNoRows per page, default 1000, max 5000. Every row is available through paging.
custom_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's job is to say what comes back — and it does, listing API name, UI name, description, category and type, plus the fact that custom fields are included. Paging and search behavior are delegated to the schema, which is a reasonable division of labor.

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?

A single dense sentence that front-loads scope and the underlying API, with the returned field list trailing. No filler, though the parenthetical API reference and the field enumeration make it slightly harder to scan than a short verb-first statement would be.

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

Completeness4/5

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

With no output schema, the description carries the return-value burden and does so adequately by naming the five fields each entry contains. What is missing is workflow context — that this is the prerequisite step for building reports — plus clarification of the one undocumented parameter.

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 83%, so the schema already documents site, raw, offset, search and page_size. The description adds no parameter-level meaning and does not clarify the undocumented 'custom_only' flag, nor how it interacts with the stated 'including its custom dimensions' scope.

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 the resource precisely ('Every dimension and metric this GA4 property has'), cites the underlying API call (getMetadata), and enumerates returned fields plus the inclusion of custom dimensions/metrics. An agent can tell this is a discovery/catalog tool rather than a report runner, though it never explicitly contrasts itself with the run_ga4_* siblings.

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?

There is no when-to-use guidance: nothing says to call this before constructing a report, no prerequisites about property selection, and no alternatives named. The intended workflow (discover fields, then query with run_ga4_report) must be inferred entirely by the agent.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources