Skip to main content
Glama

Get analytics for all pages

get_portfolio_analytics
Read-onlyIdempotent

Get a performance overview of ALL landing pages at once — pageviews, visitors, CTA clicks, and form submissions for every page.

Use when the user asks about overall performance, wants a summary of all pages, or says something like "how are my pages doing?" or "show me all LP performance". Returns a flat table-friendly summary with key metrics per page. No siteId needed — automatically fetches all pages. For detailed analytics on a specific page, use get_analytics_summary or get_analytics_detail instead. Periods: 7d (default), 30d, 90d. Long-term periods are not available for portfolio view. Visitors here add up each page, so one person on two pages counts twice; the dashboard's site overview counts people across a site, so its number can be lower. 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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_portfolio_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoTime period for the analytics summary.7d
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
    • 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"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior4/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 real behavioral context beyond them: no siteId required, 7d/30d/90d only with long-term periods unavailable, and today's row being a partial day. The visitor deduplication caveat (one person on two pages counts twice, so numbers can be lower than the dashboard site overview) is exactly the kind of cross-tool discrepancy warning that prevents misreading results.

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?

Front-loaded with purpose, then usage, then alternatives, then period limits, then the visitor-counting caveat — a sensible priority order. The final timezone block is long and partly repeats what the timeZone schema property already says about affecting only this response, which costs it a point.

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?

There is no output schema, and the description compensates by describing the return shape (flat table-friendly summary, key metrics per page), the period restriction, and the result fields that qualify the data (timeZone, timeZoneSource, timeZonePending). For a three-optional-parameter read tool, an agent has everything needed to call it and interpret the numbers correctly.

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?

With 100% schema coverage the baseline is 3, but the description adds meaning beyond the schema: it restates the period enum with its default and the constraint that long-term periods are not available here, and it clarifies timeZone scope (affects only this response) plus the derived timeZoneSource and timeZonePending result fields. The remainder of the timeZone prose largely duplicates the schema text, so it stops short of a 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 (get a performance overview of ALL landing pages) and enumerates the metrics returned (pageviews, visitors, CTA clicks, form submissions). It also implicitly scopes itself against get_analytics_summary and get_analytics_detail, which are named later for the per-page case.

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?

Explicit when-to-use triggers are given, including literal user phrasings ("how are my pages doing?", "show me all LP performance"), plus a negative rule: for detailed analytics on a specific page, use get_analytics_summary or get_analytics_detail. The agent has a clear routing decision without opening any schema.

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.