Skip to main content
Glama

Get Google Analytics ecommerce performance

get_google_analytics_ecommerce_performance
Read-onlyIdempotent

Read item views, add-to-cart units, purchases, and item revenue by item, or transactions and purchase revenue by landing page. Returns a detected, none, or unknown activity state; landing pages can be limited to those with transactions. Organic Search is the default. 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_ecommerce_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
channelNoorganic_search
endDateNoInclusive YYYY-MM-DD date. Provide both startDate and endDate.
breakdownNoitem
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.
onlyWithTransactionsNo

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

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and openWorld, so the safety profile is covered. The description adds genuinely new behavior: it reads only the GA4 property already connected to a NameIO project the caller is authorized to access, the server resolves the Google account and property from the saved connection, it uses no NameIO credits, and it can return a detected/none/unknown activity state. Pagination and rate-limit behavior are not disclosed.

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 metric enumeration is front-loaded in the first sentence and each subsequent sentence adds distinct information (mode selection, activity state, auth/property resolution, credit cost). It is dense but not padded; a slightly tighter grouping of the connection/credit sentences would improve it.

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?

An output schema exists, so return structure need not be spelled out, yet the description still notes the activity-state field. For an eight-parameter, two-mode reporting tool it covers the important decisions: which breakdown yields which metrics, channel default, transaction filtering, and the authorization/property-resolution model. Pagination behavior and date-range defaults are the remaining gaps.

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?

With schema coverage at 38%, the schema already documents projectId, startDate, and endDate, and the enums self-document channel and breakdown. The description adds meaning by mapping the item vs landing_page breakdown to different metric sets and by stating that Organic Search is the default channel and that landing pages can be filtered to those with transactions. It says nothing about limit/offset pagination or how dates default when omitted.

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 verb (Read) and enumerates the exact metrics returned in each mode: item views, add-to-cart units, purchases, item revenue by item, or transactions and purchase revenue by landing page. That is far more specific than the title and lets an agent distinguish it from generic page-performance or landing-page siblings by the metric set. It stops short of explicitly naming which sibling to use instead.

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 implied through the two breakdown modes, the 'Organic Search is the default' note, and the 'landing pages can be limited to those with transactions' hint, which effectively tells the caller when to set onlyWithTransactions. However, there is no explicit when-to-use/when-not-to-use guidance against the many analytics siblings (e.g. page performance vs organic landing pages), leaving the agent to infer the boundary.

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