Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Mondovo. If you published it, claim ownership there.

Ask a question about a site's traffic

query_site_analytics
Read-onlyIdempotent

Answer ANY website traffic question the fixed summary does not cover, by building the report yourself: pick metrics, up to 3 breakdowns, filters, a window and an optional comparison. Examples: organic search visits day by day → breakdown ["date"], filters [{dimension:"channel", value:"Organic Search"}]; this month vs last month → start_date/end_date with compare "previous_period"; mobile vs desktop bounce rate → breakdown ["device"], metrics ["sessions","bounce_rate"]; which pages Instagram visitors land on → breakdown ["landing_page"], filters [{dimension:"source", value:"instagram", match:"contains"}]; busiest weekday or hour → breakdown ["weekday"] or ["hour"]; traffic by week per channel → breakdown ["week","channel"]; visits to one page over time → breakdown ["date"], filters [{dimension:"page", value:"/pricing"}]; conversions by source → metrics ["conversions"], breakdown ["source_medium"]. Checkout progress: metrics ["events","visitors"], breakdown ["event"] or ["date","event"]. Filter event exactly to begin_checkout, checkout_contact_completed, checkout_review_viewed, checkout_request_started, checkout_modal_opened, checkout_payment_form_ready, checkout_payment_submitted, checkout_redirected, checkout_closed, checkout_load_failed, checkout_payment_attempt_failed, checkout_abandoned, checkout_completed or purchase. Counts by event are activity counts, not a verified ordered funnel or payment failure rate. Channel values are names like "Organic Search", "Organic Social", "Direct", "Referral", "Paid Search", "Paid Social", "Paid Other", "Email", "AI Assistant". "Paid Other" is paid traffic from a source the analytics does not recognise (for example ads shown on chatgpt.com): break it down by source_medium and campaign before answering, and name the source. Presets end yesterday (complete days) unless include_today is true. compare cannot be combined with a date, week or month breakdown. Rows come back with totals; the total visitor count counts each person once. Requires analytics to be enabled on the site. If a combination is rejected, the error says why: adjust and ask again rather than telling the user the data is unavailable.

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": {
      "site_id": "<site_id>"
    },
    "name": "query_site_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
periodNoPreset window ending yesterday (default last_28_days)
compareNoAlso read the previous period or the same window a year earlier
filtersNoFilters, all must hold
metricsNoWhat to count (default visitors and sessions)
site_idYesThe site, from list_sites
end_dateNoWindow end, YYYY-MM-DD, inclusive
order_byNoA metric or breakdown in this question to sort by
ascendingNo
breakdownNoUp to 3 ways to split the numbers, in order
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
start_dateNoWindow start, YYYY-MM-DD (with end_date)
include_todayNoSlide a preset to end today

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive, so the bar is lower, yet the description still adds a lot: presets end yesterday, the compare/breakdown incompatibility, that rows come back with totals, that the visitor total counts each person once, that analytics must be enabled, that event counts are activity counts and not a verified funnel or payment-failure rate, and that rejected combinations return an explanatory error to retry against. That is substantive behavioral context beyond structured fields.

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 scoping sentence and constraints are correctly front-loaded and every block of content is individually useful, but the middle is a semicolon-chained wall of seven examples followed by a 13-value event enumeration, which is hard to scan and partly duplicates the schema enums. The information is earned; the structure is not.

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 13-parameter, no-output-schema, multi-dimensional query tool this covers the awkward parts well: window defaults, comparison restrictions, filter semantics, row totals, and error recovery. The main omission is limit behavior — what happens when a breakdown exceeds the 400-row cap is left unaddressed.

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 already 85%, so baseline would be 3, but the description adds real meaning: breakdown entries are applied "in order", which channel values exist and what "Paid Other" means, that "Paid Other" should be drilled down by source_medium and campaign, and how compare interacts with date/week/month breakdowns. It does not explain limit/row overflow behavior, which keeps it 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?

"Answer ANY website traffic question the fixed summary does not cover, by building the report yourself" names a specific verb (answer/build report) and resource (website traffic), and explicitly distinguishes this tool from a fixed-summary alternative. An agent immediately knows this is the customizable/queryable path rather than a canned report.

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?

It gives concrete when-to-use conditions with multiple worked examples (organic visits by day, month-over-month comparison, device bounce rate, landing pages for Instagram traffic), plus explicit exclusions: "compare cannot be combined with a date, week or month breakdown" and presets end yesterday unless include_today is true. The only mild gap is it does not name the fixed-summary sibling by name.

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