PageLens Analytics is an MCP server published by io.pagelens, hosted at app.pagelens.io. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 23 tools, including list_sites, list_segments, get_overview, get_breakdown, get_pages.
Cookieless web analytics and AI Visibility: traffic, funnels, errors, and which AI bots read you.
11 connections through 4 shared values. Tap any node.
Inferred from the host name and headers: what a server runs on, not who runs it.
List the websites this key can access, with visitors in the last 24 hours.
No parameters.
{
"name": "list_sites",
"description": "List the websites this key can access, with visitors in the last 24 hours.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Saved segments (named filter sets such as "Paid traffic" or "Mobile in Germany") that can be applied to any report with segment_id.
| Parameter | Type | Description |
|---|---|---|
| site_id * |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
| string |
| Site id from list_sites |
{
"name": "list_segments",
"description": "Saved segments (named filter sets such as \"Paid traffic\" or \"Mobile in Germany\") that can be applied to any report with segment_id.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"site_id": {
"type": "string",
"description": "Site id from list_sites"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}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.
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| period | string | Time range (default 7d) |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
| include_series | boolean | Include the per-day/hour series (default true) |
{
"name": "get_overview",
"description": "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.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
},
"include_series": {
"type": "boolean",
"description": "Include the per-day/hour series (default true)"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}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.
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| limit | integer | Rows to return (default 10) |
| period | string | Time range (default 7d) |
| search | string | Only values containing this text |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| dimension * | string | one of ["page","entry","exit","title","hostname","referrer","channel","utm_source","utm_medium","utm_campaign","tag","browser","os","device","screen","country","city","language","event","outbound"] |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
{
"name": "get_breakdown",
"description": "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.",
"inputSchema": {
"type": "object",
"required": [
"site_id",
"dimension"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Rows to return (default 10)"
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"search": {
"type": "string",
"description": "Only values containing this text"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"dimension": {
"enum": [
"page",
"entry",
"exit",
"title",
"hostname",
"referrer",
"channel",
"utm_source",
"utm_medium",
"utm_campaign",
"tag",
"browser",
"os",
"device",
"screen",
"country",
"city",
"language",
"event",
"outbound"
],
"type": "string"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Per-page metrics: visitors, pageviews, entries, bounce rate and time on page.
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| limit | integer | Rows to return (default 10) |
| period | string | Time range (default 7d) |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
{
"name": "get_pages",
"description": "Per-page metrics: visitors, pageviews, entries, bounce rate and time on page.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Rows to return (default 10)"
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Visitors online right now (last 5 minutes) and what they are viewing.
| Parameter | Type | Description |
|---|---|---|
| site_id * | string | Site id from list_sites |
{
"name": "get_realtime",
"description": "Visitors online right now (last 5 minutes) and what they are viewing.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"site_id": {
"type": "string",
"description": "Site id from list_sites"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Recent sessions with entry/exit page, pages viewed, duration, source, location and device.
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| kind | string | one of ["all","engaged","bounced","errors","replay"] |
| limit | integer | Rows to return (default 10) |
| period | string | Time range (default 7d) |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| user_id | string | Only sessions of this identified user |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
{
"name": "list_sessions",
"description": "Recent sessions with entry/exit page, pages viewed, duration, source, location and device.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"kind": {
"enum": [
"all",
"engaged",
"bounced",
"errors",
"replay"
],
"type": "string"
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Rows to return (default 10)"
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"user_id": {
"type": "string",
"description": "Only sessions of this identified user"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Every pageview and event in one session, in order.
| Parameter | Type | Description |
|---|---|---|
| site_id * | string | Site id from list_sites |
| session_id * | string |
{
"name": "get_session",
"description": "Every pageview and event in one session, in order.",
"inputSchema": {
"type": "object",
"required": [
"site_id",
"session_id"
],
"properties": {
"site_id": {
"type": "string",
"description": "Site id from list_sites"
},
"session_id": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Custom events (sent with pagelens.track) and outbound clicks with counts and their properties.
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| limit | integer | Rows to return (default 10) |
| period | string | Time range (default 7d) |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
{
"name": "get_events",
"description": "Custom events (sent with pagelens.track) and outbound clicks with counts and their properties.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Rows to return (default 10)"
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}JavaScript errors grouped by message, with occurrences, affected sessions and pages.
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| limit | integer | Rows to return (default 10) |
| period | string | Time range (default 7d) |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
{
"name": "get_errors",
"description": "JavaScript errors grouped by message, with occurrences, affected sessions and pages.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Rows to return (default 10)"
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Core Web Vitals from real visitors (LCP, INP, CLS, FCP, TTFB) at p50/p75/p90, overall and per page.
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| period | string | Time range (default 7d) |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
{
"name": "get_web_vitals",
"description": "Core Web Vitals from real visitors (LCP, INP, CLS, FCP, TTFB) at p50/p75/p90, overall and per page.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Most common page-to-page paths visitors take.
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| limit | integer | Rows to return (default 10) |
| period | string | Time range (default 7d) |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
{
"name": "get_journeys",
"description": "Most common page-to-page paths visitors take.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Rows to return (default 10)"
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}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.
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| mode | string | one of ["ordered","strict","flexible"] |
| steps * | array | |
| period | string | Time range (default 7d) |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
| compare_previous | boolean |
{
"name": "run_funnel",
"description": "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.",
"inputSchema": {
"type": "object",
"required": [
"site_id",
"steps"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"mode": {
"enum": [
"ordered",
"strict",
"flexible"
],
"type": "string"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"value"
],
"properties": {
"type": {
"enum": [
"page",
"event",
"scroll"
],
"type": "string"
},
"value": {
"type": "string"
},
"threshold": {
"type": "integer"
}
}
},
"maxItems": 10,
"minItems": 2
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
},
"compare_previous": {
"type": "boolean"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Goals with conversions and conversion rate for the period, compared with the previous period.
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| period | string | Time range (default 7d) |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
{
"name": "list_goals",
"description": "Goals with conversions and conversion rate for the period, compared with the previous period.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}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.
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| type * | string | one of ["page","event","scroll"] |
| value * | string | Page path (wildcards allowed) or event name |
| site_id * | string | Site id from list_sites |
| threshold | integer | For scroll goals: percentage of the page scrolled, e.g. 75 |
{
"name": "create_goal",
"description": "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.",
"inputSchema": {
"type": "object",
"required": [
"site_id",
"type",
"value"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"enum": [
"page",
"event",
"scroll"
],
"type": "string"
},
"value": {
"type": "string",
"description": "Page path (wildcards allowed) or event name"
},
"site_id": {
"type": "string",
"description": "Site id from list_sites"
},
"threshold": {
"type": "integer",
"description": "For scroll goals: percentage of the page scrolled, e.g. 75"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Mark a date on the charts (a release, a campaign, an outage). Needs a write key and member access or higher.
| Parameter | Type | Description |
|---|---|---|
| date * | string | YYYY-MM-DD |
| text * | string | |
| site_id * | string | Site id from list_sites |
{
"name": "add_annotation",
"description": "Mark a date on the charts (a release, a campaign, an outage). Needs a write key and member access or higher.",
"inputSchema": {
"type": "object",
"required": [
"site_id",
"date",
"text"
],
"properties": {
"date": {
"type": "string",
"description": "YYYY-MM-DD"
},
"text": {
"type": "string"
},
"site_id": {
"type": "string",
"description": "Site id from list_sites"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Cohort retention of identified users (pagelens.identify): share of each daily or weekly cohort that came back in later periods.
| Parameter | Type | Description |
|---|---|---|
| unit | string | one of ["day","week"] |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
{
"name": "get_retention",
"description": "Cohort retention of identified users (pagelens.identify): share of each daily or weekly cohort that came back in later periods.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"unit": {
"enum": [
"day",
"week"
],
"type": "string"
},
"site_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Users active in the period: identified users (with traits) and anonymous visitors, with sessions, pageviews and first source.
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| kind | string | one of ["all","identified","anonymous"] |
| limit | integer | Rows to return (default 10) |
| period | string | Time range (default 7d) |
| search | string | Match user id, name or email |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
{
"name": "list_users",
"description": "Users active in the period: identified users (with traits) and anonymous visitors, with sessions, pageviews and first source.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"kind": {
"enum": [
"all",
"identified",
"anonymous"
],
"type": "string"
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Rows to return (default 10)"
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"search": {
"type": "string",
"description": "Match user id, name or email"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Profile of one identified user (traits, first/last seen, totals) and their sessions.
| Parameter | Type | Description |
|---|---|---|
| site_id * | string | Site id from list_sites |
| user_id * | string |
{
"name": "get_user",
"description": "Profile of one identified user (traits, first/last seen, totals) and their sessions.",
"inputSchema": {
"type": "object",
"required": [
"site_id",
"user_id"
],
"properties": {
"site_id": {
"type": "string",
"description": "Site id from list_sites"
},
"user_id": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}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.
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| limit | integer | Rows to return (default 10) |
| period | string | Time range (default 7d) |
| search | string | Only queries (or pages) containing this text |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| dimension | string | one of ["query","page","country","device"] |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
{
"name": "get_search_console",
"description": "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.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Rows to return (default 10)"
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"search": {
"type": "string",
"description": "Only queries (or pages) containing this text"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"dimension": {
"enum": [
"query",
"page",
"country",
"device"
],
"type": "string"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}GDPR erasure: permanently delete all events, session replays and the profile of one user on a site. Needs a write key and admin access.
| Parameter | Type | Description |
|---|---|---|
| site_id * | string | Site id from list_sites |
| user_id * | string | Identified user id, or "anon:<visitor_id>" for an anonymous visitor |
{
"name": "delete_user_data",
"description": "GDPR erasure: permanently delete all events, session replays and the profile of one user on a site. Needs a write key and admin access.",
"inputSchema": {
"type": "object",
"required": [
"site_id",
"user_id"
],
"properties": {
"site_id": {
"type": "string",
"description": "Site id from list_sites"
},
"user_id": {
"type": "string",
"description": "Identified user id, or \"anon:<visitor_id>\" for an anonymous visitor"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": true
}
}Bot and AI traffic: AI crawlers (GPTBot, ClaudeBot…), AI assistants fetching pages, search engines, and human visits referred by AI assistants (ChatGPT, Perplexity, Claude…).
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| period | string | Time range (default 7d) |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
{
"name": "get_bots_and_ai",
"description": "Bot and AI traffic: AI crawlers (GPTBot, ClaudeBot…), AI assistants fetching pages, search engines, and human visits referred by AI assistants (ChatGPT, Perplexity, Claude…).",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}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.
| Parameter | Type | Description |
|---|---|---|
| to | string | End date YYYY-MM-DD, inclusive (default today) |
| from | string | Start date YYYY-MM-DD (overrides period) |
| period | string | Time range (default 7d) |
| filters | array | Optional 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, scree… |
| site_id * | string | Site id from list_sites |
| timezone | string | IANA timezone for days and hours, e.g. Europe/Berlin (default UTC) |
| segment_id | string | Apply a saved segment (see list_segments); combines with filters |
{
"name": "get_ai_visibility",
"description": "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.",
"inputSchema": {
"type": "object",
"required": [
"site_id"
],
"properties": {
"to": {
"type": "string",
"description": "End date YYYY-MM-DD, inclusive (default today)"
},
"from": {
"type": "string",
"description": "Start date YYYY-MM-DD (overrides period)"
},
"period": {
"enum": [
"today",
"yesterday",
"24h",
"7d",
"30d",
"90d",
"12m"
],
"type": "string",
"description": "Time range (default 7d)"
},
"filters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional 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_id": {
"type": "string",
"description": "Site id from list_sites"
},
"timezone": {
"type": "string",
"description": "IANA timezone for days and hours, e.g. Europe/Berlin (default UTC)"
},
"segment_id": {
"type": "string",
"description": "Apply a saved segment (see list_segments); combines with filters"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}PageLens is a privacy-friendly web analytics tool. Start with list_sites to find a site_id; list_segments shows saved audience segments. Time ranges: pass period (today, yesterday, 24h, 7d, 30d, 90d, 12m) or from/to dates (YYYY-MM-DD, "to" inclusive). Filters narrow every report to matching sessions, e.g. ["country:DE", "channel:Organic Search", "page:/pricing"]. "Visitors" are daily unique visitors counted without cookies.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.