Skip to main content
Glama

Get Google Analytics ecommerce performance

get_google_analytics_ecommerce_performance
Read-only

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. Read-only and uses no FastestRank 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 FastestRank 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.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=false, so 'Read-only' is redundant. The genuinely additive facts are the credit cost ('uses no FastestRank credits') and the three-state activity signal, but there is no mention of data freshness, empty-result behavior, or rate limits for a GA reporting call.

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?

Two dense sentences that lead with what is returned and end with cost/safety, with zero filler or repeated boilerplate. Every clause carries operational information an agent would otherwise have to probe for.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description is not obligated to explain return values, so the main gap is pagination (limit/offset) and how the response behaves when no date range is supplied. For an 8-parameter reporting tool over GA, the definition is workable but leaves real operational questions unanswered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 38%, yet the description compensates for three parameters: the 'by item' vs 'by landing page' split maps to breakdown, the transactions restriction maps to onlyWithTransactions, and the default maps to channel. Pagination (limit/offset) and the date pair are still left entirely to the schema, which keeps it below a 5.

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 the specific resources and metrics returned (item views, add-to-cart units, purchases, item revenue by item; transactions and purchase revenue by landing page), which is far more than restating the title. It does not name the closest sibling, e.g. get_google_analytics_organic_landing_pages, so an agent must infer the boundary itself, but the verb+resource+breakdown framing is clear.

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?

It supplies one useful default ('Organic Search is the default') and one conditional use case ('landing pages can be limited to those with transactions'), which implies usage. It never states when to pick this over page/landing-page performance siblings, nor any prerequisite such as needing GA connected for the project.

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.