Skip to main content
Glama

Get analytics summary

get_analytics_summary
Read-onlyIdempotent

Check how a landing page is performing — pageviews, visitors, CTA clicks, referrers, and more.

Use when the user asks about traffic, performance, conversions, or how their page is doing. Returns daily breakdown, top pages, referrers, and country data.

  • Short-term periods: 7d (default), 30d, 90d

  • Long-term periods: 180d, 365d, all (Pro/MAX only) Visitors here are this page's; the dashboard's site overview counts people across a site, a different number. For deeper analysis (device breakdown, UTM, hourly data, period comparison), use get_analytics_detail instead. Dates and hours are in the workspace's time zone, UTC when the workspace has none set. Pass timeZone, an IANA name such as America/New_York, for days in another zone; it changes only this response, never the workspace's time zone. The result's timeZone field names the zone used, and timeZoneSource says where it came from (argument, workspace, or default). A row for today's date in that zone counts only the hours so far. When timeZonePending is set, the workspace is switching to that zone once its history is recomputed. 180d, 365d, and all come from daily summaries kept in the workspace's time zone, so a different timeZone isn't used there: the result stays in the summaries' zone and names the zone you passed as requestedTimeZone.

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": {
      "siteId": "<siteId>"
    },
    "name": "get_analytics_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoTime period for the analytics summary. 180d/365d/all require Pro or MAX plan.7d
siteIdYesThe ID of the page to get analytics for
timeZoneNoIANA time zone name for the days in this response, such as America/New_York, Europe/Berlin, or Asia/Tokyo. Leave it out for the workspace's time zone (UTC when none is set). It affects only this response: the workspace's time zone stays as it is, and only the workspace's owner changes it, in the dashboard's Settings. Abbreviations such as EST and offsets such as +09:00 aren't accepted.
botFilterNoWhether to exclude known bots and vulnerability scanner traffic. Defaults to exclude. Use include only for diagnostics.exclude

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / siteId / description
      Previous value: -"The ID of the site to get analytics for"New value: +"The ID of the page to get analytics for"
  3. Changed1 schema field changed
    • addedInput schema / properties / timeZone
      Added value: +{
      +  "description": "IANA time zone name for the days in this response, such as America/New_York, Europe/Berlin, or Asia/Tokyo. Leave it out for the workspace's time zone (UTC when none is set). It affects only this response: the workspace's time zone stays as it is, and only the workspace's owner changes it, in the dashboard's Settings. Abbreviations such as EST and offsets such as +09:00 aren't accepted.",
      +  "maxLength": 64,
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / period / description
      Previous value: -"Time period for the analytics summary. 180d/365d/all require Pro or Max plan."New value: +"Time period for the analytics summary. 180d/365d/all require Pro or MAX plan."
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds substantial behavior beyond that: the result shape (daily breakdown, top pages, referrers, country), plan gating on 180d/365d/all, the fact that timeZone affects only this response and never the workspace, that today's row is partial, and the timeZonePending state. The long-period caveat — that those ranges ignore the passed timeZone and report it back as requestedTimeZone — is exactly the kind of non-obvious behavior an agent would otherwise get wrong.

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?

Purpose and when-to-use are front-loaded, and nearly every sentence carries a distinct fact. It is on the long side and re-enumerates the period values (7d default, 180d/365d/all) that the schema already lists, which is mild duplication rather than harmful padding.

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?

With no output schema, the description compensates by describing the returned sections, the time-zone metadata fields, and the partial-day and pending-switch edge cases. Combined with plan gating and the sibling routing, an agent has everything needed to call this correctly and interpret the result.

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 100%, so the baseline is 3; the description earns a point by adding cross-parameter semantics the schema cannot express, namely that timeZone is ignored for 180d/365d/all and surfaces as requestedTimeZone, and that the response echoes timeZone and timeZoneSource. It largely restates the period and timeZone option lists that the schema already documents, so it is not a full 5.

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 — checking a landing page's performance — and enumerates the concrete metrics returned (pageviews, visitors, CTA clicks, referrers). It also explicitly differentiates itself from get_analytics_detail by listing what that sibling covers (device breakdown, UTM, hourly data, period comparison).

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?

Gives an explicit trigger condition ("Use when the user asks about traffic, performance, conversions, or how their page is doing") and names the alternative tool with the exact conditions that select it. The scope caveat about visitors vs. the dashboard's site overview further disambiguates it from portfolio/site-level siblings.

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.