Skip to main content
Glama

Get Google Analytics key events

get_google_analytics_key_events
Read-onlyIdempotent

Read active GA4 key events with counts and users by event or organic landing page. Previous-period comparison is available for the event breakdown. Reads only the GA4 property already connected to a NameIO project the caller is authorized to access. The server selects the Google account and property from that project's saved connection. Read-only and uses no NameIO credits.

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": {
      "projectId": "<projectId>"
    },
    "name": "get_google_analytics_key_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
channelNoorganic_search
endDateNoInclusive YYYY-MM-DD date. Provide both startDate and endDate.
breakdownNoevent
projectIdYesRequired. The NameIO project ID to scope this call to. Get one from list_projects.
startDateNoInclusive YYYY-MM-DD date. Provide both startDate and endDate.
comparePreviousPeriodNo

Output Schema

NameRequiredDescriptionDefault
rowsNo
errorNo
quotaNo
sourceNo
statusYes
requestNo
pageInfoNo
rowCountNo
warningsNo
comparisonNo
diagnosticsNo
totalRowCountNo
reportMetadataNo
ecommerceActivityNo
diagnosticCoverageNo
siteSearchActivityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the bar is lower, and the description still adds real context: the server resolves the Google account and property from the project's saved connection rather than from caller-supplied credentials, and the call consumes no NameIO credits. It stops short of describing pagination behavior or what happens when no property is connected.

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?

Four short sentences, front-loaded with what is returned, followed by data-source scoping and cost/read semantics. No filler and nothing repeated from the annotations or schema.

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?

With an output schema present and rich annotations, the description need only cover scoping and quirks, which it largely does. The remaining gap is pagination and the date-range pairing requirement for an 8-parameter tool, but that is minor against the schema's own date descriptions.

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 only 38% across 8 parameters, but the description does add genuine meaning: breakdown toggles between per-event and per-event-and-landing-page output, and comparePreviousPeriod is valid only for the event breakdown. It says nothing about limit/offset pagination or the channel enum's 'all' vs 'organic_search' behavior, leaving the caller dependent on bare schema defaults.

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?

States a specific verb and resource ('Read active GA4 key events') plus the metrics returned (counts and users) and the two breakdown modes. That distinguishes it from siblings like get_google_analytics_organic_landing_pages and get_google_analytics_organic_overview, which an agent can rule out without opening the schema.

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?

The description supplies context for correct use — the read is scoped to the GA4 property saved on the caller's NameIO project, and previous-period comparison applies only to the event breakdown — but it never states when to choose this tool over the many GA4 siblings, nor what to do if the project has no GA connection.

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