Skip to main content
Glama

GA4 metrics

analytics_get_ga4_metrics
Read-only

GA4 traffic and conversions for this account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
daysNo
limitNo
date_toNo
page_idNo
sort_byNo
user_idNo
site_urlNo
client_idNo
date_fromNo
ad_accountNo
ig_user_idNo
user_emailNo
range_presetNo
activity_onlyNo
campaign_nameNo
property_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds nothing further: no note on auth/account binding, rate limits, whether missing parameters default to a date range, or what 'this account' resolves to.

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

Conciseness3/5

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

A single short sentence that is front-loaded and wastes no words, but its brevity comes at the cost of under-specification rather than genuine efficiency.

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?

The output schema exists, so return values need not be explained, and annotations cover safety. But with 17 optional parameters, no required fields, and no parameter or usage guidance, the definition leaves an agent without enough information to invoke it correctly.

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

Parameters1/5

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

Seventeen parameters with 0% schema description coverage and zero explanation in the description. The overlapping filter names (url vs site_url, days vs date_from/date_to vs range_preset, page_id vs property_name) are left entirely ambiguous, which is a severe gap for a tool with this many inputs.

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

Purpose3/5

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

The description names the domain (GA4 traffic and conversions) and scopes it to 'this account', so an agent knows it retrieves GA4 reporting data. However, it does not distinguish this tool from siblings like analytics_get_ai_referrals or analytics_get_checkout_funnel, nor does it say what metric granularity or breakdowns are returned.

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, no exclusions, and no mention of the neighboring analytics_* tools that overlap in GA4 reporting. 'For this account' is a scope hint at best, not usage direction.

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.