Skip to main content
Glama

get_product_analytics

Get visitor analytics for one of the connected account's products: views and unique visitors for the last 7 days, 30 days and all time, plus published/draft review counts. Set breakdown to also get WHERE the traffic came from: referring hosts, channels (search, social, referral, direct), campaigns, countries, devices, and a per-day visitor trend. Counters alone cannot tell a spike caused by one referrer from steady organic growth, so ask for the breakdown whenever the question is why traffic moved or which source is working. Read-only. Account-scoped: requires the MCP_API_KEY bearer token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodNoWindow for the breakdown. Ignored unless `breakdown` is true.30d
productNoProduct name or domain to look up (substring match). Optional when the account has one product.
breakdownNoInclude traffic sources, channels, campaigns, countries, devices and the daily trend. Off by default because it runs a second, heavier aggregation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / breakdown
      Added value: +{
      +  "default": false,
      +  "description": "Include traffic sources, channels, campaigns, countries, devices and the daily trend. Off by default because it runs a second, heavier aggregation.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / period
      Added value: +{
      +  "default": "30d",
      +  "description": "Window for the breakdown. Ignored unless `breakdown` is true.",
      +  "enum": [
      +    "7d",
      +    "30d",
      +    "90d"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It clearly declares 'Read-only' and 'requires the MCP_API_KEY bearer token', and discloses that breakdown runs 'a second, heavier aggregation' – indicating cost. It does not mention rate limits or error conditions, but the core safety and auth profile is covered.

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 description is moderately long but every sentence earns its place: the first sentence states the core data, the second explains breakdown, the third gives usage rationale, and the last covers read-only and auth. It is front-loaded with the primary function and does not include fluff.

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

Completeness5/5

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

For a read-only analytics query, the description covers everything an agent needs: what data is returned, how to adjust breakdown, when to use it, and the required authentication. It does not rely on an output schema (none present) but still communicates the expected return content. Missing details like exact number formatting are minor and unlikely to impair correct invocation.

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 description coverage is 100%, so parameters are already documented. The description adds meaningful context: it explains the purpose of breakdown, that period is only for the breakdown window (reinforcing the schema), and why breakdown matters for interpreting traffic. This goes beyond the schema's bare parameter definitions.

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?

The description states a specific verb ('Get') and resource ('visitor analytics for one of the connected account's products'), and enumerates the exact data returned (views, unique visitors for 7/30 days and all time, review counts). It clearly distinguishes itself from siblings like list_product or seo_audit_summary by focusing on visitor analytics, avoiding any ambiguity.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use guidance: 'ask for the breakdown whenever the question is why traffic moved or which source is working' and explains why breakdown is needed ('Counters alone cannot tell...'). It also states the tool is read-only and account-scoped, establishing boundaries without mentioning alternatives (no close siblings exist).

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