GA4 MCP Server
Server Quality Checklist
Latest release: v1.0.1
- Disambiguation4/5
Each special-purpose tool targets a distinct analytical view (top pages, traffic sources, conversions, realtime, period comparison), and ga4_get_report is explicitly generic. While ga4_get_report could theoretically replicate the specialized tools, its purpose is clearly different, so confusion is unlikely.
Naming Consistency5/5All tools follow the consistent ga4_<verb>_<noun> pattern with lowercase and underscores. Verbs are list, get, and compare, which is a predictable and uniform convention across the set.
Tool Count5/5With 7 tools, the server is well-scoped for a GA4 analytics wrapper. It covers property discovery and the most common report types without unnecessary bloat or excessive minimalism.
Completeness4/5The tool set covers property listing, common report dimensions, custom queries, realtime data, and period-over-period comparison. Advanced GA4 features like funnel analysis or user exploration are absent, but these are beyond the typical expectation for an analytics MCP server.
Average 4.2/5 across 7 of 7 tools scored.
See the Tool Scores section below for per-tool breakdowns.
- No community issues in the last 6 months
- 4 commits in the last 12 weeks
- Last stable release on
- No critical vulnerability alerts
- No high-severity vulnerability alerts
- No code scanning findings
- CI is passing
This repository is licensed under MIT License.
This repository includes a README.md file.
No tool usage detected in the last 30 days. Usage tracking helps demonstrate server value.
Tip: use the "Try in Browser" feature on the server page to seed initial usage.
Add a glama.json file to provide metadata about your server.
If you are the author, simply .
If the server belongs to an organization, first add
glama.jsonto the root of your repository:{ "$schema": "https://glama.ai/mcp/schemas/server.json", "maintainers": [ "your-github-username" ] }Then . Browse examples.
Add related servers to improve discoverability.
How to sync the server with GitHub?
Servers are automatically synced at least once per day, but you can also sync manually at any time to instantly update the server profile.
To manually sync the server, click the "Sync Server" button in the MCP server admin interface.
How is the quality score calculated?
The overall quality score combines two components: Tool Definition Quality (70%) and Server Coherence (30%).
Tool Definition Quality measures how well each tool describes itself to AI agents. Every tool is scored 1–5 across six dimensions: Purpose Clarity (25%), Usage Guidelines (20%), Behavioral Transparency (20%), Parameter Semantics (15%), Conciseness & Structure (10%), and Contextual Completeness (10%). The server-level definition quality score is calculated as 60% mean TDQS + 40% minimum TDQS, so a single poorly described tool pulls the score down.
Server Coherence evaluates how well the tools work together as a set, scoring four dimensions equally: Disambiguation (can agents tell tools apart?), Naming Consistency, Tool Count Appropriateness, and Completeness (are there gaps in the tool surface?).
Tiers are derived from the overall score: A (≥3.5), B (≥3.0), C (≥2.0), D (≥1.0), F (<1.0). B and above is considered passing.
Tool Scores
- Behavior2/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states what the tool returns (active users, top pages, traffic sources) but doesn't mention that it's a read-only operation, any authentication requirements, or potential rate limits. The only extra behavioral detail is the env var fallback for property_id, which is helpful but not sufficient for full transparency. The description leans heavily on the tool's obvious read-only nature without explicitly stating it.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise: two sentences plus an Args section. The main purpose is front-loaded in the first sentence, and the second sentence adds valuable detail about what the tool shows. The Args section is clean and directly relevant. No fluff or redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness4/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple, has only one parameter well documented, and an output schema exists (so return values need not be explained). The description covers the core functionality and purpose. It could potentially mention prerequisites or that it's read-only, but given the low complexity and existing output schema, the description is sufficiently complete for practical use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters5/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It fully explains the single parameter: property_id is a numeric GA4 property ID, and leaving it empty uses the GA4_PROPERTY_ID environment variable. This adds significant meaning beyond the schema's bare 'string type, default empty' and completely addresses parameter semantics.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose4/5Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Get realtime active users and current events') and resource (the site's real-time data). It provides a clear sense of what the tool does without needing to infer. However, it does not explicitly distinguish this from sibling tools like ga4_get_top_pages or ga4_get_traffic_sources, which might overlap in scope, so it doesn't earn 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 Guidelines4/5Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives clear context for when to use this tool: it shows what's happening 'RIGHT NOW', implying real-time monitoring. It doesn't explicitly mention alternatives or exclusions, but the 'right now' phrasing effectively communicates the intended use case. This meets the 'clear context, no exclusions' level.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior3/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the transparency burden. It adds useful behavioral detail by explaining the property_id env var fallback and implying a read-only report via 'Get'. However, it omits potential rate limits, authentication requirements, or data freshness considerations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and well-structured: a clear purpose sentence followed by a bulleted list of arguments. Every sentence contributes value, with no redundancy or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness4/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that an output schema exists and parameters are well documented, the description is nearly complete for a simple reporting tool. Minor gaps include not mentioning authentication prerequisites or potential caveats like data lag, but these are not critical for basic usage.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters5/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema provides only types and defaults, but the description fully compensates by giving meaning to each parameter: property_id (numeric GA4 ID with env var fallback), days (lookback period), and row_limit (max rows). This is exactly what is needed when schema description coverage is 0%.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose5/5Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves top pages ranked by sessions and enumerates the specific metrics returned (page path, sessions, users, etc.). This makes its function unambiguous and distinguishes it from sibling tools like ga4_get_traffic_sources or ga4_get_conversions.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines2/5Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no explicit guidance on when to use this tool versus alternatives. The description only explains what it does and its parameters, leaving usage context implied rather than providing clear selection criteria or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior3/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden. It indicates a 'get' operation, implying read-only, but does not disclose potential behavioral traits such as sorting order, pagination, rate limits, or data freshness. The env var fallback for property_id is a useful detail, but otherwise the behavior is only partially transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise, starting with the main purpose in one sentence, then listing parameters in a clear arg block. Every sentence earns its place with no filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness4/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the presence of an output schema, the description need not explain return values. It covers the core functionality, metrics, and parameters adequately for a straightforward retrieval tool. However, it lacks explicit guidance on usage context or alternatives, which would make it more complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters4/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0% description coverage, so the description adds essential meaning for all three parameters. It explains that property_id can use an env var default, days is a lookback period, and row_limit caps results. This goes beyond the schema but could provide more detail on value ranges or formats.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose5/5Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it retrieves traffic sources breakdown by source/medium and lists the specific metrics (sessions, users, bounce rate, conversions). This specific verb+resource combination distinguishes it from sibling tools like ga4_get_top_pages and ga4_get_conversions.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines3/5Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies use for traffic source analysis but does not explicitly mention when to choose this over alternatives. No exclusions or alternative tool names are given, leaving the agent to infer from the name and sibling context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior3/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of transparency. It discloses that the operation lists properties and returns IDs/names, implying a read-only action, but it does not state safety traits, error implications, or limitations. The mention of service account scope adds useful context, but there is no explicit statement about non-mutating behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two short sentences that immediately state the action and output. There is no redundant or filler content, making it highly concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness4/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (no parameters) and the presence of an output schema, the description is mostly complete. It covers the key purpose and return items. However, it does not mention typical edge cases like empty results or auth failures, nor does it relate itself to sibling tools. For such a simple tool, this is adequate, hence a 4.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters4/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
There are zero parameters, so the schema provides no semantics to clarify. Per the rubric, a baseline of 4 is appropriate for parameterless tools. The description does not need to explain parameters and adds nothing beyond the schema, which is acceptable in this case.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose5/5Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'List' and the resource 'all GA4 properties', which immediately establishes the tool's function. It also specifies the return content (property IDs and display names), distinguishing it from sibling tools that focus on reports, pages, or traffic sources.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines3/5Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives no explicit guidance on when to use this tool versus alternatives. It implies a listing/discovery use case, and the scope 'accessible by the service account' gives some context, but it does not mention that this might be a prerequisite for other GA4 tools or when to prefer it over siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior4/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description is the only source of behavioral info. It clearly describes the output (counts, event names) and the default lookback period, and explains that property_id can fall back to an environment variable. It does not mention any side effects, rate limits, or required permissions, but for a read-oriented tool this description is reasonably transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and well-structured: a one-sentence summary, a brief explanation, and a clear Args list. Every sentence adds value, and the format makes it easy to parse.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness4/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple with three parameters, and the description covers its purpose, output, and parameter semantics. The output schema exists so return format isn't needed. The only gap is the lack of explicit mention of required permissions or usage context relative to siblings, but this is not critical for invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters5/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The Args section explains each parameter's meaning (property_id with env var fallback, days as lookback, row_limit as max rows) and provides defaults. This goes well beyond the input schema, which only lists types and defaults, and provides valuable context for correct invocation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose5/5Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: 'Get conversion events and their counts' and explains the breakdown by event name. This specific verb and resource clearly distinguishes it from sibling tools like ga4_get_top_pages or ga4_get_traffic_sources.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines3/5Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies the tool should be used when conversion event data is needed, but it does not explicitly state when to use this versus alternatives. There is no mention of exclusions or comparisons to sibling tools, so the agent must infer usage from the tool's name and description.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior4/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the burden of behavioral disclosure. It explains the comparison logic, the period length default, and the env var fallback for property_id. It doesn't mention edge cases like timezone handling or empty property_id behavior, but the core behavior is well disclosed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise, front-loaded with the core purpose, and uses a clear Args block. Every sentence provides useful information without redundancy. It is well-structured for quick comprehension.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness5/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has three parameters, no annotations, but an output schema exists. The description covers the main behavior and all parameters, and given the output schema, no further detail on return values is necessary. It is complete enough for an agent to invoke the tool correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters5/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must fully document parameters. It does this excellently: property_id is numeric with an env var fallback, metrics is comma-separated with a default list, and days is explained with the 'last N vs N before' logic. This adds significant meaning beyond the raw schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose5/5Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb and resource: 'Compare current period vs previous period for key metrics.' It clearly differentiates from sibling tools like ga4_get_report or ga4_get_realtime by focusing on period-over-period comparison rather than single-period reports or realtime data.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines4/5Does the description explain when to use this tool, when not to, or what alternatives exist?
The intended use case is clear: comparing current and previous periods with a configurable period length. It explains the period logic ('last N days vs the N days before that') and provides defaults. It does not explicitly state when not to use it or mention alternatives, but the context is clear enough for an agent to select it appropriately.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior4/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It explains the tool executes a report and details parameter behavior, defaults, and row limit maximum. It does not mention rate limits or handling of invalid dimension/metric names, but the output schema covers return structure, and the read-only nature is self-evident.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with an 'Args' block, clear parameter explanations, and useful examples. Every sentence adds value, and the format is scannable and efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness5/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has an output schema, so return values need no further explanation. The description fully covers parameters, defaults, limits, and the custom-report use case, making it complete for the tool's complexity and context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters5/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate, and it does excellently. It explains every parameter with examples, defaults, and constraints (e.g., 'row_limit max: 100'), adding meaning far beyond the bare schema definitions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose5/5Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states a specific verb ('Run') and resource ('custom GA4 report') with the ability to combine dimensions and metrics. It distinguishes itself from specialized sibling tools by emphasizing 'any combination' of dimensions and metrics.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines4/5Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies this is for arbitrary/custom report needs versus the specialized siblings (e.g., top pages, traffic sources, conversions), but it does not explicitly state when to prefer this tool over a sibling. The 'custom' framing makes the use case clear enough.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
GitHub Badge
Glama performs regular codebase and documentation scans to:
- Confirm that the MCP server is working as expected.
- Confirm that there are no obvious security issues.
- Evaluate tool definition quality.
Our badge communicates server capabilities, safety, and installation instructions.
Card Badge
Copy to your README.md:
Score Badge
Copy to your README.md:
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/luminarylane/ga4-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server