Skip to main content
Glama
mcp-google-analytics

mcp-google-analytics

Basic traffic report

ga_basic_report
Read-only

Retrieves Google Analytics 4 metrics for a date range, including users, sessions, page views, engagement, daily trends, traffic sources and top pages.

Instructions

Users, new users, sessions, page views, engagement, daily trend, traffic sources and top pages.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "propertyId": "<propertyId>"
    },
    "name": "ga_basic_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
endDateNoYYYY-MM-DD, or relative: today, yesterday, NdaysAgo.today
startDateNoYYYY-MM-DD, or relative: today, yesterday, NdaysAgo.28daysAgo
propertyIdYesGA4 property ID, e.g. 123456789.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, so safety is covered, but the description adds no behavioral context beyond the metric list — no date-range default behavior (28daysAgo→today), no note on rate limits, aggregation granularity, or what 'daily trend' means in the result. For a report tool with no output schema, this leaves the agent guessing at the response shape.

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?

Extremely short and free of filler, but it is a fragment without a leading verb or sentence structure, so it is under-specified rather than well-structured. Nothing is front-loaded because there is nothing to order.

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?

With no output schema and only a readOnly annotation, the description carries most of the burden and falls short: it names metrics but not the row/dimension structure, response format, or error behavior for an invalid propertyId. An agent would still not know what the returned report looks like before calling.

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 coverage is 100% and all three parameters (propertyId, startDate, endDate) are documented with formats and defaults in the schema. The description adds nothing about parameters, so the baseline 3 applies; it neither compensates nor subtracts.

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 is a bare noun phrase listing metrics ('Users, new users, sessions, page views...') rather than a verb+resource statement. It does convey what the report contains, which is slightly more than the title, but never says what the tool actually does (retrieve a GA4 report) or how it differs from siblings like ga_run_report or ga_realtime_report.

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?

No when-to-use guidance of any kind. Nothing tells the agent to prefer this over ga_run_report for custom queries or ga_realtime_report for live data, and no prerequisites (auth, property ID validity) are mentioned.

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