Skip to main content
Glama

Diagnose page performance

analyze_site_performance
Read-onlyIdempotent

Analyze a landing page's aggregate analytics and return a compact diagnosis with prioritized next actions.

Use when the user asks what to improve, why conversions changed, whether traffic quality is healthy, or what to test next. This tool does NOT return raw event logs or form submission payloads. It returns aggregate metrics, top drivers, findings, evidence, and recommendations. 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": "analyze_site_performance"
  }
}

Input Schema

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

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description still adds real behavioral context beyond that: the shape of the payload (aggregate metrics, top drivers, findings, evidence, recommendations), plan gating on long periods, the 90d null-change caveat, the summary-backed zone behavior for 180d/365d/all, and the timeZonePending transition state.

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?

It is front-loaded correctly: purpose, then when to use, then exclusions, then period and time-zone rules. But the time-zone block runs long and restates material already present in the schema, such as the fact that timeZone affects only this response and never the workspace setting. The density is defensible for the edge cases, yet some sentences duplicate structured data rather than earning their place.

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?

With no output schema, the description takes on the burden of describing returns and does so at a high level (metrics, drivers, findings, evidence, recommendations) plus named result fields like timeZone, timeZoneSource, timeZonePending, and requestedTimeZone. Combined with a fully documented schema and clear annotations, an agent has enough to call this correctly. The only residual gap is guidance on choosing it over the closely related analytics siblings.

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

Parameters3/5

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

Schema coverage is 100%, including detailed timeZone and botFilter descriptions, so the schema already carries parameter meaning and the baseline is 3. The description does add non-obvious semantics not in the schema: 90d change figures go null on a zone mismatch, 180d/365d/all ignore the passed timeZone and echo it as requestedTimeZone, and today's row is partial. That is genuine added value, but botFilter is never discussed in the description.

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 opens with a specific verb and resource: analyzing a landing page's aggregate analytics and returning a diagnosis with prioritized next actions. It also carves out a boundary by stating it does NOT return raw event logs or form submission payloads. It stops short of naming a sibling such as analyze_source_quality or get_analytics_detail, so disambiguation is left partly to inference.

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?

It gives concrete triggering questions ('what to improve, why conversions changed, whether traffic quality is healthy, what to test next'), which is strong when-to-use guidance. It adds a negative scope statement about raw logs and payloads. What it lacks is an explicit alternative for adjacent needs, e.g. when to prefer source-quality or summary tools instead.

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.