Skip to main content
Glama
samarthanalytics-sj

Samarth GTM MCP Server

Official

ga4_run_report

Run a read-only GA4 Data API report over a date range to reconcile configured GTM/GA4 events against actual reported event counts, flagging zero activity.

Instructions

Run a read-only GA4 Data API report for a property over a date range. Returns dimension/metric rows (e.g. event counts by eventName). Useful for reconciling configured GTM/GA4 events against events GA4 actually reports (zero reported activity for a configured event is a red flag). Read-only — never writes. Requires the analytics.readonly scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
propertyYesGA4 property ID, e.g. "123456789" or "properties/123456789".
dimensionsNoDimension names, e.g. ["eventName","date"]. Max 9. Omit for a metric-only report.
metricsYesMetric names, e.g. ["eventCount","totalUsers"]. At least 1, max 10.
startDateNoStart date: YYYY-MM-DD, "NdaysAgo", "today", or "yesterday".7daysAgo
endDateNoEnd date: YYYY-MM-DD, "NdaysAgo", "today", or "yesterday".today
limitNoMax rows to return (default 250).
offsetNoRow offset for paging (default 0).
orderByMetricNoMetric name to order by (descending). Optional.
Behavior4/5

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

With no annotations, the description clearly states 'Read-only — never writes' and 'Requires the analytics.readonly scope', effectively communicating safety and authentication needs. It does not mention pagination or rate limits, but the core behavioral traits are well-covered.

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

Conciseness5/5

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

Three sentences, each carrying essential information: purpose, use case, safety/scope. No wasted words. Front-loaded with the primary action.

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?

Given the tool's complexity (8 params, no output schema), the description adequately explains return format, use case, and safety. It lacks details on ordering or paging behavior, but these are covered by schema descriptions. Overall, it's sufficient for an agent to select and invoke the tool correctly.

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 100%, so the baseline is 3. The description adds minimal parameter-specific value beyond the schema, only giving an example of dimension/metric rows (eventName) and referencing date range. No additional guidance on format or constraints.

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?

The description clearly states the tool runs a read-only GA4 Data API report for a property over a date range, using specific verb and resource. It differentiates from sibling ga4_run_realtime_report by focusing on historical date ranges, and provides an example of returned data (event counts by eventName).

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?

The description explicitly mentions a specific use case: reconciling configured events against reported activity. It implies the tool is for historical analysis, but does not explicitly mention ga4_run_realtime_report as an alternative for real-time needs. Still, the guidance is clear and actionable.

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

Install Server

Other Tools

Latest Blog Posts

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/samarthanalytics-sj/samarth-analytics-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server