Skip to main content
Glama

Get analytics breakdown

get_analytics_detail
Read-onlyIdempotent

Deep-dive analytics with period comparison, device breakdown, UTM tracking, and CTA click analysis.

Use when the user wants to optimize campaigns, evaluate traffic sources, or understand user behavior in detail. Includes everything from get_analytics_summary PLUS:

  • CTA click breakdown (which buttons get clicked most)

  • Device breakdown (mobile/desktop/tablet)

  • UTM parameter analysis (source, medium, campaign)

  • Period-over-period comparison with change percentages

  • Hourly breakdown (short-term only) Periods: 7d (default), 30d, 90d | 180d, 365d, all (Pro/MAX only) With 90d, a timeZone other than the workspace's leaves the change figures null, except for form submissions: the previous 90 days come only from daily summaries kept in the workspace's time zone. Leave timeZone out for 90d changes. 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_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoTime period for the analytics detail. 180d/365d/all require Pro or MAX plan.7d
siteIdYesThe ID of the page to get detailed 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 detailed analytics for"New value: +"The ID of the page to get detailed 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 detail. 180d/365d/all require Pro or Max plan."New value: +"Time period for the analytics detail. 180d/365d/all require Pro or MAX plan."
  5. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnly, idempotent, non-destructive, closed-world); the description adds far more: change figures become null for 90d with a foreign timeZone, 180d/365d/all are served from daily summaries in the workspace zone and report the passed zone as requestedTimeZone, today's row counts only elapsed hours, and timeZonePending signals a pending workspace switch. These are non-obvious output behaviors an agent could not infer from annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening line and bullet list are well front-loaded, but the definition is padded: the 'Periods: 7d (default), 30d, 90d...' line merely restates the schema enum and default, and the timeZone rules are explained three separate times (the 90d caveat, the general IANA paragraph, and the 180d paragraph), with the general paragraph largely duplicating the schema's timeZone description.

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?

For a complex, multi-breakdown analytics tool with no output schema, the description covers the tricky parts well: zone provenance fields (timeZone, timeZoneSource, requestedTimeZone, timeZonePending), partial-day rows, and null change figures. It never sketches the shape of the breakdown payloads themselves (device/UTM/CTA row structure), which is the main remaining gap.

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, but the description genuinely adds parameter interaction semantics the schema cannot express: the timeZone × period coupling (nulls at 90d, ignored at 180d/365d/all) and the plan gating on longer periods. botFilter is left entirely to the schema, which is acceptable since it is fully documented there.

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 ('Deep-dive analytics') and enumerates the exact breakdowns returned: CTA clicks, devices, UTM parameters, period-over-period comparison, hourly. It also explicitly positions itself against the sibling by saying it 'Includes everything from get_analytics_summary PLUS', so an agent can distinguish the two without opening a schema.

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

Usage Guidelines4/5

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

Gives concrete when-to-use triggers ('optimize campaigns, evaluate traffic sources, or understand user behavior in detail') and an implicit routing rule via the summary-PLUS framing. It also warns 'Leave timeZone out for 90d changes' and notes 180d/365d/all ignore a differing timeZone. It stops short of an explicit when-not / use-summary-instead exclusion, which keeps it at 4.

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.