Skip to main content
Glama

PageLens Analytics

Server Details

Cookieless web analytics and AI Visibility: traffic, funnels, errors, and which AI bots read you.

If you are the author of this connector, you can claim ownership by verifying the domain or GitHub account it belongs to. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Last Tested
Transport
Streamable HTTP · MCP 2025-06-18
URL

TDQS

Score is being calculated.

Available Tools

23 tools
add_annotationInspect

Mark a date on the charts (a release, a campaign, an outage). Needs a write key and member access or higher.

ParametersJSON Schema
NameRequiredDescriptionDefault
dateYesYYYY-MM-DD
textYes
site_idYesSite id from list_sites
create_goalInspect

Create a goal that counts sessions visiting a page, firing a custom event, or scrolling a page at least threshold percent (type scroll). Needs a write key and member access or higher.

ParametersJSON Schema
NameRequiredDescriptionDefault
nameNo
typeYes
valueYesPage path (wildcards allowed) or event name
site_idYesSite id from list_sites
thresholdNoFor scroll goals: percentage of the page scrolled, e.g. 75
delete_user_data
Destructive
Inspect

GDPR erasure: permanently delete all events, session replays and the profile of one user on a site. Needs a write key and admin access.

ParametersJSON Schema
NameRequiredDescriptionDefault
site_idYesSite id from list_sites
user_idYesIdentified user id, or "anon:<visitor_id>" for an anonymous visitor
get_ai_visibility
Read-only
Inspect

How the site shows up in AI assistants, per AI company (OpenAI/ChatGPT, Anthropic/Claude, Perplexity, Google/Gemini…) and per page: crawler reads, live fetches while answering a person, human visits sent back, purchases and revenue, robots.txt access, and plain-language findings.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
periodNoTime range (default 7d)
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
segment_idNoApply a saved segment (see list_segments); combines with filters
get_bots_and_ai
Read-only
Inspect

Bot and AI traffic: AI crawlers (GPTBot, ClaudeBot…), AI assistants fetching pages, search engines, and human visits referred by AI assistants (ChatGPT, Perplexity, Claude…).

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
periodNoTime range (default 7d)
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
segment_idNoApply a saved segment (see list_segments); combines with filters
get_breakdown
Read-only
Inspect

Top values of one dimension (pages, entry/exit pages, referrers, channels, UTM tags, countries, cities, browsers, OS, devices, languages, custom events, outbound links) with visitors and sessions.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
limitNoRows to return (default 10)
periodNoTime range (default 7d)
searchNoOnly values containing this text
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
dimensionYes
segment_idNoApply a saved segment (see list_segments); combines with filters
get_errors
Read-only
Inspect

JavaScript errors grouped by message, with occurrences, affected sessions and pages.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
limitNoRows to return (default 10)
periodNoTime range (default 7d)
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
segment_idNoApply a saved segment (see list_segments); combines with filters
get_events
Read-only
Inspect

Custom events (sent with pagelens.track) and outbound clicks with counts and their properties.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
limitNoRows to return (default 10)
periodNoTime range (default 7d)
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
segment_idNoApply a saved segment (see list_segments); combines with filters
get_journeys
Read-only
Inspect

Most common page-to-page paths visitors take.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
limitNoRows to return (default 10)
periodNoTime range (default 7d)
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
segment_idNoApply a saved segment (see list_segments); combines with filters
get_overview
Read-only
Inspect

Headline metrics (visitors, sessions, pageviews, pages per session, bounce rate, average session duration) for a period, compared with the previous period of the same length, plus a time series.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
periodNoTime range (default 7d)
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
segment_idNoApply a saved segment (see list_segments); combines with filters
include_seriesNoInclude the per-day/hour series (default true)
get_pages
Read-only
Inspect

Per-page metrics: visitors, pageviews, entries, bounce rate and time on page.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
limitNoRows to return (default 10)
periodNoTime range (default 7d)
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
segment_idNoApply a saved segment (see list_segments); combines with filters
get_realtime
Read-only
Inspect

Visitors online right now (last 5 minutes) and what they are viewing.

ParametersJSON Schema
NameRequiredDescriptionDefault
site_idYesSite id from list_sites
get_retention
Read-only
Inspect

Cohort retention of identified users (pagelens.identify): share of each daily or weekly cohort that came back in later periods.

ParametersJSON Schema
NameRequiredDescriptionDefault
unitNo
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
get_search_console
Read-only
Inspect

Google Search Console data for the site (when connected): clicks, impressions, CTR and average position in Google Search, by query, page, country or device, plus a daily series. Data lags about 2 days.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
limitNoRows to return (default 10)
periodNoTime range (default 7d)
searchNoOnly queries (or pages) containing this text
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
dimensionNo
segment_idNoApply a saved segment (see list_segments); combines with filters
get_session
Read-only
Inspect

Every pageview and event in one session, in order.

ParametersJSON Schema
NameRequiredDescriptionDefault
site_idYesSite id from list_sites
session_idYes
get_user
Read-only
Inspect

Profile of one identified user (traits, first/last seen, totals) and their sessions.

ParametersJSON Schema
NameRequiredDescriptionDefault
site_idYesSite id from list_sites
user_idYes
get_web_vitals
Read-only
Inspect

Core Web Vitals from real visitors (LCP, INP, CLS, FCP, TTFB) at p50/p75/p90, overall and per page.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
periodNoTime range (default 7d)
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
segment_idNoApply a saved segment (see list_segments); combines with filters
list_goals
Read-only
Inspect

Goals with conversions and conversion rate for the period, compared with the previous period.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
periodNoTime range (default 7d)
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
segment_idNoApply a saved segment (see list_segments); combines with filters
list_segments
Read-only
Inspect

Saved segments (named filter sets such as "Paid traffic" or "Mobile in Germany") that can be applied to any report with segment_id.

ParametersJSON Schema
NameRequiredDescriptionDefault
site_idYesSite id from list_sites
list_sessions
Read-only
Inspect

Recent sessions with entry/exit page, pages viewed, duration, source, location and device.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
kindNo
limitNoRows to return (default 10)
periodNoTime range (default 7d)
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
user_idNoOnly sessions of this identified user
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
segment_idNoApply a saved segment (see list_segments); combines with filters
list_sites
Read-only
Inspect

List the websites this key can access, with visitors in the last 24 hours.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

list_users
Read-only
Inspect

Users active in the period: identified users (with traits) and anonymous visitors, with sessions, pageviews and first source.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
kindNo
limitNoRows to return (default 10)
periodNoTime range (default 7d)
searchNoMatch user id, name or email
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
segment_idNoApply a saved segment (see list_segments); combines with filters
run_funnel
Read-only
Inspect

Conversion funnel: how many sessions completed each step. Steps are pages (path, * wildcard allowed), custom event names, or a page scrolled at least threshold percent (type scroll). mode: ordered (default; other pages may come in between), strict (each step right after the previous one) or flexible (middle steps may be skipped). compare_previous adds the same funnel over the previous period.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
modeNo
stepsYes
periodNoTime range (default 7d)
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
segment_idNoApply a saved segment (see list_segments); combines with filters
compare_previousNo

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 23 tool updates
    • First observedadd_annotation
    • First observedcreate_goal
    • First observeddelete_user_data
    • First observedget_ai_visibility
    • First observedget_bots_and_ai
    • First observedget_breakdown
    • First observedget_errors
    • First observedget_events
    • First observedget_journeys
    • First observedget_overview
    • First observedget_pages
    • First observedget_realtime
    • First observedget_retention
    • First observedget_search_console
    • First observedget_session
    • First observedget_user
    • First observedget_web_vitals
    • First observedlist_goals
    • First observedlist_segments
    • First observedlist_sessions
    • First observedlist_sites
    • First observedlist_users
    • First observedrun_funnel

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Privacy friendly, cookieless web analytics built MCP-first. "Add analytics to my Next.js app" → an AI agent runs the setup_analytics_for_site tool, picks the right install snippet, edits your layout file, and verifies the script is loading. OAuth onboarding, no API keys to paste.
    28
    27 npm
    1
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to read cookieless website analytics, investigate traffic spikes, build funnels, rank growth channels, and manage tracked campaigns through MCP tools.
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Multi-site analytics for AI agents — GA4, Google Search Console, Cloudflare edge, PageSpeed, and audit insights across all your websites as tools.
    28 npm
    MIT
Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources