Skip to main content
Glama

AddSynapse Analytics

Google Analytics report

ga_report
Read-onlyIdempotent

Runs a Google Analytics 4 report (read-only): metrics for a date range, optionally broken down by up to 3 dimensions, sorted by the first metric (highest first) unless order_by is given. Only the allowed dimension and metric names are accepted (the error lists them). Typical: traffic by sessionDefaultChannelGroup, revenue by sessionCampaignName, sessions by date. Numbers are as Google Analytics measured them (sampling, consent and ad blockers make them differ from the shop's own orders).

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": {
      "metrics": "<metrics>"
    },
    "name": "ga_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
filterNoOptional dimension filter.
metricsYese.g. sessions, activeUsers, ecommercePurchases, purchaseRevenue, keyEvents.
end_dateNoYYYY-MM-DD, or today / yesterday / NdaysAgo (e.g. 28daysAgo).yesterday
order_byNoA metric or dimension of this report to sort by (descending for metrics).
dimensionsNoe.g. sessionDefaultChannelGroup, sessionSourceMedium, sessionCampaignName, landingPage, date, country, deviceCategory, itemName.
start_dateNoYYYY-MM-DD, or today / yesterday / NdaysAgo (e.g. 28daysAgo).28daysAgo
property_idNoGA4 property id (digits, from ga_list_properties). Optional when the account has only one property.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description discloses that only whitelisted dimension and metric names are accepted and that failures name the valid ones, plus that output numbers may diverge from the shop's own orders due to sampling, consent and ad blockers. These are real behavioral traits an agent could not get from the annotations. It still does not describe the row/column shape of the returned data.

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

Conciseness4/5

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

The core behavior comes first, followed by allowed-names and expected-usage clauses, then the data-quality caveat — a well-ordered structure with no filler sentences. It is fairly dense with parentheticals, but each clause contributes information an agent would otherwise have to guess.

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 an 8-parameter, nested-object tool with no output schema, the description covers input behavior, defaults, validation failures and result reliability, which is close to sufficient. The notable remaining gap is the return shape (what each row/column is), which cannot be inferred from structured fields since no output schema exists.

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 already 88%, so the schema carries most parameter meaning. The description adds only one genuinely new rule: results default to sorting by the first metric, highest first, unless order_by is given, and it restates the 'up to 3 dimensions' cap already encoded as maxItems. Useful but marginal above the high-coverage baseline.

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?

States a specific verb and resource ('Runs a Google Analytics 4 report') and gives the exact shape of the result: metrics over a date range, optionally broken down by dimensions, sorted by the first metric. It does not name the sibling it is not (e.g. ga_compare_periods or ga_landing_pages), so an agent must infer that this is the general-purpose report tool, but the purpose itself is unambiguous.

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 is conveyed only through examples ('Typical: traffic by sessionDefaultChannelGroup, revenue by sessionCampaignName, sessions by date'), which imply when the tool fits without stating when to use an alternative report tool instead. There is no explicit exclusion or routing guidance versus ga_compare_periods or ga_landing_pages, so the agent has a reasonable but inferential picture.

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.

Resources