Skip to main content
Glama

GSCPAP - Google Search Console, GA4, Bing Webmaster Tools & PageSpeed MCP

GA4 audience breakdown

ga4_user_demographics
Read-only

Audience breakdown over the last N days, or start_date to end_date (YYYY-MM-DD; explicit dates win over days).

Returns three slices:

  • by_country: top countries by activeUsers

  • by_device: deviceCategory (desktop/mobile/tablet) split

  • by_browser: top browsers

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": {
      "property_id": "<property_id>"
    },
    "name": "ga4_user_demographics"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
limitNo
intentNoOptional: the user's goal in a few words. No site names or URLs.
end_dateNo
start_dateNo
property_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / intent
      Added value: +{
      +  "description": "Optional: the user's goal in a few words. No site names or URLs.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / end_date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / start_date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds the shape of the returned data (three named slices with their dimensions), which is useful, but says nothing about limits on results, rate/latency behavior, or how empty data is handled. It also somewhat duplicates what the existing output schema can convey.

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?

The time-window rule and precedence are front-loaded in the first sentence, followed by a compact bulleted enumeration of the three slices. Every clause carries information; there is no filler or restatement of the tool name.

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?

For a 6-parameter read-only reporting tool with an output schema, the description covers the essential behavior: time-window semantics and the exact result slices. The remaining gap is the undocumented 'limit' parameter and the absent guidance on when to choose this over sibling GA4 report tools.

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 only 17% (only 'intent' is documented), so the description must compensate, and it partly does: it explains 'days' as a lookback window, gives the YYYY-MM-DD format for start_date/end_date, and states the precedence rule that explicit dates win over days. However, 'limit' and the required 'property_id' receive no explanation anywhere, leaving half the parameters under-specified.

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 a specific resource (audience breakdown) and scopes it in time, then enumerates exactly what the three result slices are (by_country, by_device, by_browser). An agent can tell this apart from ga4_overview or ga4_traffic_sources by the demographic dimension, though the description never explicitly contrasts itself with those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied by the date-window framing ('last N days, or start_date to end_date'), but there is no statement of when to prefer this over the many other ga4_* tools, nor any exclusions or prerequisites beyond the required property_id. Adequate but leaves the routing decision to 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.