Agent Analytics is an MCP server published by io.github.dannyshmueli, hosted at mcp.agentanalytics.sh. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 32 tools, including account_usage, analytics_panel, list_projects, create_project, get_project_context.
Analytics your AI agent can actually use. Track, experiment, and optimize via MCP.
Nothing else in the archive shares these values.
Read current account plan, usage, billing estimate and spend cap, Pro pricing, and a human payment handoff when needed. Requires account:read. Read-only: cannot charge or manage billing. Call again after checkout to verify hosted entitlement, then retry the original task.
No parameters.
{
"name": "account_usage",
"description": "Read current account plan, usage, billing estimate and spend cap, Pro pricing, and a human payment handoff when needed. Requires account:read. Read-only: cannot charge or manage billing. Call again after checkout to verify hosted entitlement, then retry the original task.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}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.
Inferred from the host name and headers: what a server runs on, not who runs it.
Use this when you want to explore an authorized project's analytics beside the conversation. Opens a compact project/view picker; accepts empty input. Analysis queries retain their existing plan and access checks. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
No parameters.
{
"name": "analytics_panel",
"title": "Analytics explorer",
"description": "Use this when you want to explore an authorized project's analytics beside the conversation. Opens a compact project/view picker; accepts empty input. Analysis queries retain their existing plan and access checks. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List all your Agent Analytics projects Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
No parameters.
{
"name": "list_projects",
"description": "List all your Agent Analytics projects Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Create a new Agent Analytics project. Returns the tracking snippet and API example. Idempotent: returns the existing project if the name is already taken. The tracking snippet includes data-track-vitals="true" so new installs collect Core Web Vitals on page_view.
| Parameter | Type | Description |
|---|---|---|
| name * | string | Project name (letters, numbers, hyphens, dots, max 64 chars) |
| allowed_origins | string | Allowed CORS origins, defaults to * |
{
"name": "create_project",
"description": "Create a new Agent Analytics project. Returns the tracking snippet and API example. Idempotent: returns the existing project if the name is already taken. The tracking snippet includes data-track-vitals=\"true\" so new installs collect Core Web Vitals on page_view.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Project name (letters, numbers, hyphens, dots, max 64 chars)"
},
"allowed_origins": {
"type": "string",
"description": "Allowed CORS origins, defaults to *"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Get compact self-improving project context: goals, activation events, event-name glossary, and major date annotations used to interpret analytics results. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| project * | string | Project name or ID |
{
"name": "get_project_context",
"description": "Get compact self-improving project context: goals, activation events, event-name glossary, and major date annotations used to interpret analytics results. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"project": {
"type": "string",
"description": "Project name or ID"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Set or replace compact project context. The encoded API request body is capped at 512KB. Read existing context first, merge still-valid entries, inspect event names with properties or properties_received, and save only durable product truth tied to goals, activation events, event-name glossary entries, or date annotations for major product changes. Use annotations for meaningful landing page, pricing, onboarding, feature, release, or experiment changes; do not store git commit logs, noisy edits, PII, secrets, or long release notes.
| Parameter | Type | Description |
|---|---|---|
| goals | array | Short business goals, max 5 |
| project * | string | Project name or ID |
| glossary | array | Event-name glossary entries, max 10 |
| annotations | array | Major date annotations, max 100 |
| activation_events | array | Event names that define activation, max 8 |
{
"name": "set_project_context",
"description": "Set or replace compact project context. The encoded API request body is capped at 512KB. Read existing context first, merge still-valid entries, inspect event names with properties or properties_received, and save only durable product truth tied to goals, activation events, event-name glossary entries, or date annotations for major product changes. Use annotations for meaningful landing page, pricing, onboarding, feature, release, or experiment changes; do not store git commit logs, noisy edits, PII, secrets, or long release notes.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"goals": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"maxItems": 5,
"description": "Short business goals, max 5"
},
"project": {
"type": "string",
"description": "Project name or ID"
},
"glossary": {
"type": "array",
"items": {
"type": "object",
"required": [
"event_name",
"term",
"definition"
],
"properties": {
"term": {
"type": "string",
"description": "Human/product term for the event"
},
"definition": {
"type": "string",
"description": "Short definition that helps interpret analytics results"
},
"event_name": {
"type": "string",
"description": "Existing or intended event name this glossary entry explains"
}
}
},
"default": [],
"maxItems": 10,
"description": "Event-name glossary entries, max 10"
},
"annotations": {
"type": "array",
"items": {
"type": "object",
"required": [
"occurred_at",
"title"
],
"properties": {
"note": {
"type": "string",
"maxLength": 500,
"description": "Optional short note, max 500 characters"
},
"title": {
"type": "string",
"maxLength": 120,
"description": "Short annotation title, max 120 characters"
},
"occurred_at": {
"type": "string",
"description": "ISO-8601 datetime when the major product change happened"
}
}
},
"default": [],
"maxItems": 100,
"description": "Major date annotations, max 100"
},
"activation_events": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"maxItems": 8,
"description": "Event names that define activation, max 8"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Append one annotation to project context. Append-only: goals, activation events, glossary entries, and existing annotations stay in place. Allowed fields are project, occurred_at (ISO-8601 timestamp, stored as UTC), title (max 120 characters), and an optional note (max 500 characters). The annotation identity is normalized occurred_at plus title. A duplicate returns 200 with appended false and keeps the stored note. The 100 annotation cap returns 409 and stores nothing. Use this for a meaningful landing page, pricing, onboarding, feature, release, or experiment change. Do not store git commit logs, noisy edits, PII, secrets, or long notes.
| Parameter | Type | Description |
|---|---|---|
| note | string | Optional short note, max 500 characters |
| title * | string | Short annotation title, max 120 characters |
| project * | string | Project name or ID |
| occurred_at * | string | ISO-8601 timestamp when the major product change happened |
{
"name": "append_project_annotation",
"description": "Append one annotation to project context. Append-only: goals, activation events, glossary entries, and existing annotations stay in place. Allowed fields are project, occurred_at (ISO-8601 timestamp, stored as UTC), title (max 120 characters), and an optional note (max 500 characters). The annotation identity is normalized occurred_at plus title. A duplicate returns 200 with appended false and keeps the stored note. The 100 annotation cap returns 409 and stores nothing. Use this for a meaningful landing page, pricing, onboarding, feature, release, or experiment change. Do not store git commit logs, noisy edits, PII, secrets, or long notes.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project",
"occurred_at",
"title"
],
"properties": {
"note": {
"type": "string",
"maxLength": 500,
"description": "Optional short note, max 500 characters"
},
"title": {
"type": "string",
"maxLength": 120,
"description": "Short annotation title, max 120 characters"
},
"project": {
"type": "string",
"description": "Project name or ID"
},
"occurred_at": {
"type": "string",
"description": "ISO-8601 timestamp when the major product change happened"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Discover event names and property keys from recent events Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| days | number | Lookback window in days |
| project * | string | Project name |
{
"name": "properties",
"description": "Discover event names and property keys from recent events Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"days": {
"type": "number",
"default": 30,
"maximum": 365,
"minimum": 1,
"description": "Lookback window in days"
},
"project": {
"type": "string",
"description": "Project name"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Property keys by event name, sampled from recent events Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| since | string | Start date (ISO or shorthand like 7d) |
| sample | number | Events to sample |
| project * | string | Project name |
{
"name": "properties_received",
"description": "Property keys by event name, sampled from recent events Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"since": {
"type": "string",
"description": "Start date (ISO or shorthand like 7d)"
},
"sample": {
"type": "number",
"default": 5000,
"maximum": 10000,
"minimum": 100,
"description": "Events to sample"
},
"project": {
"type": "string",
"description": "Project name"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}List individual session records Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results |
| since | string | Start date |
| project * | string | Project name |
{
"name": "sessions",
"description": "List individual session records Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"limit": {
"type": "number",
"default": 100,
"maximum": 1000,
"minimum": 1,
"description": "Max results"
},
"since": {
"type": "string",
"description": "Start date"
},
"project": {
"type": "string",
"description": "Project name"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}List A/B experiments for a project Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| project * | string | Project name |
{
"name": "list_experiments",
"description": "List A/B experiments for a project Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"project": {
"type": "string",
"description": "Project name"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Create an A/B experiment
| Parameter | Type | Description |
|---|---|---|
| name * | string | Experiment name |
| project * | string | Project name |
| weights | array | Variant weights, e.g. [50, 50] |
| variants * | array | Variant keys, e.g. ['control', 'new_cta'] |
| goal_event * | string | Goal event name to measure conversions |
{
"name": "create_experiment",
"description": "Create an A/B experiment",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project",
"name",
"variants",
"goal_event"
],
"properties": {
"name": {
"type": "string",
"description": "Experiment name"
},
"project": {
"type": "string",
"description": "Project name"
},
"weights": {
"type": "array",
"items": {
"type": "number"
},
"description": "Variant weights, e.g. [50, 50]"
},
"variants": {
"type": "array",
"items": {
"type": "string"
},
"description": "Variant keys, e.g. ['control', 'new_cta']"
},
"goal_event": {
"type": "string",
"description": "Goal event name to measure conversions"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Get experiment details with results Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Experiment ID |
{
"name": "get_experiment",
"description": "Get experiment details with results Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Experiment ID"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Update experiment status (pause, resume, complete)
| Parameter | Type | Description |
|---|---|---|
| id * | string | Experiment ID |
| status * | string | New status |
| winner | string | Winning variant (for completing) |
{
"name": "update_experiment",
"description": "Update experiment status (pause, resume, complete)",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id",
"status"
],
"properties": {
"id": {
"type": "string",
"description": "Experiment ID"
},
"status": {
"enum": [
"active",
"paused",
"completed"
],
"type": "string",
"description": "New status"
},
"winner": {
"type": "string",
"description": "Winning variant (for completing)"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Delete an experiment
| Parameter | Type | Description |
|---|---|---|
| id * | string | Experiment ID |
{
"name": "delete_experiment",
"description": "Delete an experiment",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Experiment ID"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Real-time snapshot: active visitors, sessions, events per minute, top pages, and recent events. Reads from in-memory ring buffer — no D1 query.
| Parameter | Type | Description |
|---|---|---|
| window | number | Time window in seconds (10-300, default 60) |
| project * | string | Project name |
{
"name": "live_now",
"description": "Real-time snapshot: active visitors, sessions, events per minute, top pages, and recent events. Reads from in-memory ring buffer — no D1 query.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"window": {
"type": "number",
"default": 60,
"maximum": 300,
"minimum": 10,
"description": "Time window in seconds (10-300, default 60)"
},
"project": {
"type": "string",
"description": "Project name"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Historical summary across all projects in your account: total events, active project count, daily trend, and top projects.
| Parameter | Type | Description |
|---|---|---|
| limit | number | Max projects to include in the top-project list |
| period | string | Comparison period |
{
"name": "all_sites_overview",
"description": "Historical summary across all projects in your account: total events, active project count, daily trend, and top projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"type": "number",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "Max projects to include in the top-project list"
},
"period": {
"enum": [
"1d",
"7d",
"14d",
"30d",
"90d"
],
"type": "string",
"default": "7d",
"description": "Comparison period"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Filtered automated traffic for a single project: automated requests, dropped events, categories, and top actors.
| Parameter | Type | Description |
|---|---|---|
| limit | number | Max actors to include |
| period | string | Comparison period |
| project * | string | Project name |
{
"name": "bot_traffic_overview",
"description": "Filtered automated traffic for a single project: automated requests, dropped events, categories, and top actors.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"limit": {
"type": "number",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "Max actors to include"
},
"period": {
"enum": [
"1d",
"7d",
"14d",
"30d",
"90d"
],
"type": "string",
"default": "7d",
"description": "Comparison period"
},
"project": {
"type": "string",
"description": "Project name"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Filtered automated traffic across all active projects in your account.
| Parameter | Type | Description |
|---|---|---|
| limit | number | Max projects to include |
| period | string | Comparison period |
{
"name": "all_sites_bot_traffic",
"description": "Filtered automated traffic across all active projects in your account.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"type": "number",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "Max projects to include"
},
"period": {
"enum": [
"1d",
"7d",
"14d",
"30d",
"90d"
],
"type": "string",
"default": "7d",
"description": "Comparison period"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Run a flexible ad-hoc analytics query with custom metrics, filters, grouping, date ranges, and privacy-first customer email lookup. This is the most powerful endpoint — use it when other tools don't answer the question. Examples of questions this tool answers: - "How many signups from Germany this week?" → filters: [{field:"event",op:"eq",value:"signup"},{field:"country",op:"eq",value:"DE"}] - "Which events contain 'page' in the name?" → filters: [{field:"event",op:"contains",value:"page"}], group_by: ["event"] - "Daily unique users for the last 30 days" → metrics: ["unique_users"], group_by: ["date"], date_from: "30d" - "Events per country" → group_by: ["country"] - "Signups by path and day" → metrics: ["event_count"], filters: [{field:"event",op:"eq",value:"signup"}], group_by: ["date", "properties.path"] - "p75 of LCP" → use the web_vitals tool (p75 is the headline). For an ad-hoc percentile on hosted, metrics: ["p75"], property: "cwv_lcp", filters: [{field:"event",op:"eq",value:"page_view"}] - "Revenue collected" → metrics: ["sum"], property: "revenue" Filter operators: eq, neq, gt, lt, gte, lte, contains Filterable fields: event, user_id, date, country, session_id, timestamp, and any properties.* field (e.g. properties.path) For customer-specific reads, use the top-level email input instead of hashing locally. Raw email is sent only in the authenticated HTTPS POST body; the server matches via a project-scoped HMAC index and does not store raw email in event rows or profile traits. Built-in fields are a closed list. Event properties such as referrer, utm_source, path, browser, and hostname must be queried as properties.referrer, properties.utm_source, properties.path, properties.browser, and properties.hostname. Invalid filter fields fail loudly and return /properties-style guidance instead of being silently ignored. Group by: event, date, user_id, session_id, country, and at most one properties.<key>. The key matches ^[A-Za-z0-9_]{1,128}$, the same rule as property filters. Result rows use the column name properties.<key>. A null or missing property value is grouped as null. Two properties.* entries return 400 INVALID_GROUP_BY. Metrics: event_count, unique_users, session_count, bounce_rate, avg_duration, sum, avg, p50, p75, p95 Numeric property metrics sum, avg, p50, p75, and p95 are Pro, with the same gating as this query. A free account gets 403 PRO_REQUIRED and that rejection is not metered. property is the event property key and is required when any of those metrics is requested. On hosted, cwv_lcp, cwv_inp, cwv_cls, cwv_fcp, and cwv_ttfb are properties on page_view when the tracker snippet includes data-track-vitals="true". Use the web_vitals tool for the p75 headline, ratings, and good/needs-improvement/poor shares. For an ad-hoc query, filter event to page_view. property must match ^[A-Za-z0-9_]+$ and be at most 128 characters. Missing property is 400 MISSING_FIELDS. An invalid key is 400 INVALID_PROPERTY_KEY. Only JSON numbers are aggregated. Numeric strings, booleans, nulls, and missing keys are skipped. Each row includes the requested metrics plus n (numeric values used) and skipped whenever an aggregation metric is requested. Percentiles are nearest-rank: percentile_method is nearest_rank when a percentile is requested and null for sum or avg only. avg is rounded to 6 decimal places. order_by may be a requested aggregate, for example p75. Count modes: raw, session_then_user. The default for event_count is session_then_user for activation-safe counting: session-backed rows count by session, no-session rows fall back to user only when that user has no session-backed row in the same group, and fully anonymous rows fall back to event id. count_mode is ignored when event_count is not requested.
| Parameter | Type | Description |
|---|---|---|
| string | Filter by server-side scoped HMAC email lookup. Raw email is sent only in the authenticated HTTPS POST body and is not stored in event rows or profile traits. | |
| limit | number | Max results (default 100, max 1000) |
| order | string | Sort direction |
| date_to | string | End date (ISO 8601). Defaults to today. |
| filters | array | Filters to apply |
| metrics | array | Metrics to compute. sum, avg, p50, p75, and p95 require property |
| project * | string | Project name |
| group_by | array | Fields to group by. Each item is event, date, user_id, session_id, country, or properties.<key>. The key matches ^[A-Za-z0-9_]{1,128}$. At most one properties.<key>. The result column is properties.<key>, and null or missing values group as null. |
| order_by | string | Field to sort by. Aggregate metrics such as p75 are allowed when requested |
| property | string | Event property key to aggregate, for example cwv_lcp or revenue. Required when metrics include sum, avg, p50, p75, or p95. Must match ^[A-Za-z0-9_]+$ and be at most 128 characters |
| date_from | string | Start date (ISO 8601 or Nd shorthand like '30d'). Defaults to 7 days ago. |
{
"name": "query",
"description": "Run a flexible ad-hoc analytics query with custom metrics, filters, grouping, date ranges, and privacy-first customer email lookup. This is the most powerful endpoint — use it when other tools don't answer the question.\n\nExamples of questions this tool answers:\n- \"How many signups from Germany this week?\" → filters: [{field:\"event\",op:\"eq\",value:\"signup\"},{field:\"country\",op:\"eq\",value:\"DE\"}]\n- \"Which events contain 'page' in the name?\" → filters: [{field:\"event\",op:\"contains\",value:\"page\"}], group_by: [\"event\"]\n- \"Daily unique users for the last 30 days\" → metrics: [\"unique_users\"], group_by: [\"date\"], date_from: \"30d\"\n- \"Events per country\" → group_by: [\"country\"]\n- \"Signups by path and day\" → metrics: [\"event_count\"], filters: [{field:\"event\",op:\"eq\",value:\"signup\"}], group_by: [\"date\", \"properties.path\"]\n- \"p75 of LCP\" → use the web_vitals tool (p75 is the headline). For an ad-hoc percentile on hosted, metrics: [\"p75\"], property: \"cwv_lcp\", filters: [{field:\"event\",op:\"eq\",value:\"page_view\"}]\n- \"Revenue collected\" → metrics: [\"sum\"], property: \"revenue\"\n\nFilter operators: eq, neq, gt, lt, gte, lte, contains\nFilterable fields: event, user_id, date, country, session_id, timestamp, and any properties.* field (e.g. properties.path)\nFor customer-specific reads, use the top-level email input instead of hashing locally. Raw email is sent only in the authenticated HTTPS POST body; the server matches via a project-scoped HMAC index and does not store raw email in event rows or profile traits.\nBuilt-in fields are a closed list. Event properties such as referrer, utm_source, path, browser, and hostname must be queried as properties.referrer, properties.utm_source, properties.path, properties.browser, and properties.hostname.\nInvalid filter fields fail loudly and return /properties-style guidance instead of being silently ignored.\nGroup by: event, date, user_id, session_id, country, and at most one properties.<key>. The key matches ^[A-Za-z0-9_]{1,128}$, the same rule as property filters. Result rows use the column name properties.<key>. A null or missing property value is grouped as null. Two properties.* entries return 400 INVALID_GROUP_BY.\nMetrics: event_count, unique_users, session_count, bounce_rate, avg_duration, sum, avg, p50, p75, p95\nNumeric property metrics sum, avg, p50, p75, and p95 are Pro, with the same gating as this query. A free account gets 403 PRO_REQUIRED and that rejection is not metered. property is the event property key and is required when any of those metrics is requested. On hosted, cwv_lcp, cwv_inp, cwv_cls, cwv_fcp, and cwv_ttfb are properties on page_view when the tracker snippet includes data-track-vitals=\"true\". Use the web_vitals tool for the p75 headline, ratings, and good/needs-improvement/poor shares. For an ad-hoc query, filter event to page_view. property must match ^[A-Za-z0-9_]+$ and be at most 128 characters. Missing property is 400 MISSING_FIELDS. An invalid key is 400 INVALID_PROPERTY_KEY. Only JSON numbers are aggregated. Numeric strings, booleans, nulls, and missing keys are skipped. Each row includes the requested metrics plus n (numeric values used) and skipped whenever an aggregation metric is requested. Percentiles are nearest-rank: percentile_method is nearest_rank when a percentile is requested and null for sum or avg only. avg is rounded to 6 decimal places. order_by may be a requested aggregate, for example p75.\nCount modes: raw, session_then_user. The default for event_count is session_then_user for activation-safe counting: session-backed rows count by session, no-session rows fall back to user only when that user has no session-backed row in the same group, and fully anonymous rows fall back to event id. count_mode is ignored when event_count is not requested.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
"description": "Filter by server-side scoped HMAC email lookup. Raw email is sent only in the authenticated HTTPS POST body and is not stored in event rows or profile traits."
},
"limit": {
"type": "number",
"default": 100,
"maximum": 1000,
"minimum": 1,
"description": "Max results (default 100, max 1000)"
},
"order": {
"enum": [
"asc",
"desc"
],
"type": "string",
"default": "desc",
"description": "Sort direction"
},
"date_to": {
"type": "string",
"description": "End date (ISO 8601). Defaults to today."
},
"filters": {
"type": "array",
"items": {
"type": "object",
"required": [
"field",
"op",
"value"
],
"properties": {
"op": {
"enum": [
"eq",
"neq",
"gt",
"lt",
"gte",
"lte",
"contains"
],
"type": "string",
"description": "Filter operator"
},
"field": {
"type": "string",
"description": "Field to filter on (event, user_id, date, country, session_id, timestamp, or properties.*)"
},
"value": {
"type": [
"string",
"number"
],
"description": "Value to compare against"
}
}
},
"description": "Filters to apply"
},
"metrics": {
"type": "array",
"items": {
"enum": [
"event_count",
"unique_users",
"session_count",
"bounce_rate",
"avg_duration",
"sum",
"avg",
"p50",
"p75",
"p95"
],
"type": "string"
},
"default": [
"event_count"
],
"description": "Metrics to compute. sum, avg, p50, p75, and p95 require property"
},
"project": {
"type": "string",
"description": "Project name"
},
"group_by": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(event|date|user_id|session_id|country|properties\\.[A-Za-z0-9_]{1,128})$"
},
"default": [],
"description": "Fields to group by. Each item is event, date, user_id, session_id, country, or properties.<key>. The key matches ^[A-Za-z0-9_]{1,128}$. At most one properties.<key>. The result column is properties.<key>, and null or missing values group as null."
},
"order_by": {
"enum": [
"event_count",
"unique_users",
"session_count",
"date",
"event",
"sum",
"avg",
"p50",
"p75",
"p95"
],
"type": "string",
"description": "Field to sort by. Aggregate metrics such as p75 are allowed when requested"
},
"property": {
"type": "string",
"pattern": "^[A-Za-z0-9_]{1,128}$",
"description": "Event property key to aggregate, for example cwv_lcp or revenue. Required when metrics include sum, avg, p50, p75, or p95. Must match ^[A-Za-z0-9_]+$ and be at most 128 characters"
},
"date_from": {
"type": "string",
"description": "Start date (ISO 8601 or Nd shorthand like '30d'). Defaults to 7 days ago."
},
"count_mode": {
"enum": [
"raw",
"session_then_user"
],
"type": "string",
"description": "How event_count is aggregated. Default for event_count: session_then_user. Session-backed rows count by session, no-session rows fall back to user only when that user has no session-backed row in the same group, and fully anonymous rows fall back to event id. Ignored for queries without event_count. Use raw for ingestion/debugging counts."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Compare a shipped change and return a keep, revert, or extend verdict. Compare is a free read. Each successful call counts as one metered read. Pass ship_date plus window_days, or explicit baseline and compare windows. window_days is an integer from 1 to 90 and a multiple of 7 (default 7, so the largest ship window is 84). The ship day is in neither window: baseline is ship-N through ship-1, and compare is ship+1 through ship+N. Run a day-7 read on ship day + 8 so the last day is complete. If either window includes today UTC, the verdict is extend with reason incomplete_current_day, and that reason overrides every other verdict. goal_event is required and is counted as unique converters (count_mode unique_users): a user who fires the goal more than once counts once. denominator_event defaults to page_view and is counted as unique users. rate = goal_converters / denominator_unique_users. Optional filters use the query filter shape and apply as they do today. A filter on event is rejected. Optional denominator_filters use the same {field, op, value} shape and operators and apply only to denominator events when computing denominator_unique_users. goal_converters still counts only goal users inside that filtered denominator. Omit denominator_filters or pass [] for today's behavior. Max 10 entries. To exclude one-hit 404 page views from the denominator: denominator_filters [{"field":"properties.title","op":"neq","value":"Page not found | grokbotpages.com"}]. rule thresholds are relative fractions (0.15 means +15%). The absolute value of keep_threshold and revert_threshold must be at most 5. Omitted rule fields use the documented day-7 examples (keep_threshold 0.15, revert_threshold -0.1, min_denominator 200, min_goal_events 20 unique converters across both windows). Those examples are not product policy. Verdict order: extend incomplete_current_day; extend below_min_sample; extend zero_denominator; extend zero_baseline when lift is null; revert revert_threshold_met only when lift is at or below revert_threshold and the 90% interval lies entirely below zero; extend inconclusive when the drop is within noise; keep keep_threshold_met when lift is at or above keep_threshold and interval.low is above 0; extend interval_includes_zero; extend no_evidence_of_gain. A drop by itself is not a revert. Each window reports date_from, date_to, day_count, denominator_unique_users, goal_unique_users, goal_converters, goal_users_outside_denominator, count_mode, and rate. The response also includes count_mode, reason_detail, lift, echoed denominator_filters, and a 90% interval (level, method newcombe_wilson_90, estimate rate_difference, low, high, excludes_zero, note). Optional metric compares a numeric property. metric is sum(<property>), avg(<property>), p50(<property>), p75(<property>), or p95(<property>), for example sum(revenue) or p75(cwv_lcp). The property uses the query property allowlist ^[A-Za-z0-9_]+$ with a maximum of 128 characters. Example: metric p75(cwv_lcp), metric_event page_view, better lower, while goal_event stays signup. On hosted, cwv_* vitals are properties on page_view. Prefer the web_vitals tool for the p75 headline, ratings, and shares. metric_event is the event whose property is measured and defaults to goal_event. Set it when the measured event is not the goal. better is higher (default) or lower and is not inferred from the property name. Use better=lower for cwv_lcp and the other Web Vitals. Shared filters apply to the metric event. denominator_filters still apply only to the denominator. sum() compares the sum divided by unique denominator users (per_user true). avg and percentiles compare the aggregate itself (per_user false). Percentiles are nearest-rank, so percentile_method is nearest_rank. With metric set, interval is null and interval_method is none. There is no bootstrap interval in v1. lift is (compare - baseline) / baseline, negated when better is lower, so the existing thresholds keep their meaning. raw_lift
| Parameter | Type | Description |
|---|---|---|
| rule | object | Decision rule. Omitted fields use the documented day-7 examples, not product policy. Threshold absolute values above 5 are rejected |
| better | string | Which direction is an improvement. Defaults to higher and is not inferred from the property name. Use better=lower for cwv_lcp and the other Web Vitals |
| metric | string | Numeric property metric, for example p75(cwv_lcp) or sum(revenue). One of sum, avg, p50, p75, p95. Omit to keep the conversion-rate compare |
| compare | object | Explicit compare window. Pass with baseline, and omit ship_date and window_days |
| filters | array | Optional filters, same shape as query. Do not filter on event |
| project * | string | Project name or ID |
| baseline | object | Explicit baseline window. Pass with compare, and omit ship_date and window_days |
| ship_date | string | Ship date (YYYY-MM-DD, UTC). The ship day is in neither window |
| goal_event * | string | Goal event counted as unique converters (count_mode unique_users). A user who fires it more than once counts once |
| window_days | integer | Days in each ship_date window. Integer from 1 to 90 and a multiple of 7. Defaults to 7. Omit when passing baseline and compare |
| metric_event |
{
"name": "compare",
"description": "Compare a shipped change and return a keep, revert, or extend verdict. Compare is a free read. Each successful call counts as one metered read. Pass ship_date plus window_days, or explicit baseline and compare windows. window_days is an integer from 1 to 90 and a multiple of 7 (default 7, so the largest ship window is 84). The ship day is in neither window: baseline is ship-N through ship-1, and compare is ship+1 through ship+N. Run a day-7 read on ship day + 8 so the last day is complete. If either window includes today UTC, the verdict is extend with reason incomplete_current_day, and that reason overrides every other verdict. goal_event is required and is counted as unique converters (count_mode unique_users): a user who fires the goal more than once counts once. denominator_event defaults to page_view and is counted as unique users. rate = goal_converters / denominator_unique_users. Optional filters use the query filter shape and apply as they do today. A filter on event is rejected. Optional denominator_filters use the same {field, op, value} shape and operators and apply only to denominator events when computing denominator_unique_users. goal_converters still counts only goal users inside that filtered denominator. Omit denominator_filters or pass [] for today's behavior. Max 10 entries. To exclude one-hit 404 page views from the denominator: denominator_filters [{\"field\":\"properties.title\",\"op\":\"neq\",\"value\":\"Page not found | grokbotpages.com\"}]. rule thresholds are relative fractions (0.15 means +15%). The absolute value of keep_threshold and revert_threshold must be at most 5. Omitted rule fields use the documented day-7 examples (keep_threshold 0.15, revert_threshold -0.1, min_denominator 200, min_goal_events 20 unique converters across both windows). Those examples are not product policy. Verdict order: extend incomplete_current_day; extend below_min_sample; extend zero_denominator; extend zero_baseline when lift is null; revert revert_threshold_met only when lift is at or below revert_threshold and the 90% interval lies entirely below zero; extend inconclusive when the drop is within noise; keep keep_threshold_met when lift is at or above keep_threshold and interval.low is above 0; extend interval_includes_zero; extend no_evidence_of_gain. A drop by itself is not a revert. Each window reports date_from, date_to, day_count, denominator_unique_users, goal_unique_users, goal_converters, goal_users_outside_denominator, count_mode, and rate. The response also includes count_mode, reason_detail, lift, echoed denominator_filters, and a 90% interval (level, method newcombe_wilson_90, estimate rate_difference, low, high, excludes_zero, note). Optional metric compares a numeric property. metric is sum(<property>), avg(<property>), p50(<property>), p75(<property>), or p95(<property>), for example sum(revenue) or p75(cwv_lcp). The property uses the query property allowlist ^[A-Za-z0-9_]+$ with a maximum of 128 characters. Example: metric p75(cwv_lcp), metric_event page_view, better lower, while goal_event stays signup. On hosted, cwv_* vitals are properties on page_view. Prefer the web_vitals tool for the p75 headline, ratings, and shares. metric_event is the event whose property is measured and defaults to goal_event. Set it when the measured event is not the goal. better is higher (default) or lower and is not inferred from the property name. Use better=lower for cwv_lcp and the other Web Vitals. Shared filters apply to the metric event. denominator_filters still apply only to the denominator. sum() compares the sum divided by unique denominator users (per_user true). avg and percentiles compare the aggregate itself (per_user false). Percentiles are nearest-rank, so percentile_method is nearest_rank. With metric set, interval is null and interval_method is none. There is no bootstrap interval in v1. lift is (compare - baseline) / baseline, negated when better is lower, so the existing thresholds keep their meaning. raw_lift ",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project",
"goal_event"
],
"properties": {
"rule": {
"type": "object",
"properties": {
"keep_threshold": {
"type": "number",
"maximum": 5,
"minimum": -5,
"description": "Relative lift fraction required to keep, and only when interval.low is above 0. 0.15 means +15%. Absolute value must be at most 5"
},
"min_denominator": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Minimum denominator unique users in each window"
},
"min_goal_events": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Minimum unique goal converters across both windows when metric is omitted. When metric is set, numeric values (n) on metric_event across both windows. The field name stays min_goal_events"
},
"revert_threshold": {
"type": "number",
"maximum": 5,
"minimum": -5,
"description": "Relative lift fraction. Revert only when lift is at or below this value and the 90% interval lies entirely below zero. -0.1 means -10%. A drop by itself is not a revert. Absolute value must be at most 5"
}
},
"description": "Decision rule. Omitted fields use the documented day-7 examples, not product policy. Threshold absolute values above 5 are rejected"
},
"better": {
"enum": [
"higher",
"lower"
],
"type": "string",
"description": "Which direction is an improvement. Defaults to higher and is not inferred from the property name. Use better=lower for cwv_lcp and the other Web Vitals"
},
"metric": {
"type": "string",
"pattern": "^(sum|avg|p50|p75|p95)\\([A-Za-z0-9_]{1,128}\\)$",
"description": "Numeric property metric, for example p75(cwv_lcp) or sum(revenue). One of sum, avg, p50, p75, p95. Omit to keep the conversion-rate compare"
},
"compare": {
"type": "object",
"required": [
"date_from",
"date_to"
],
"properties": {
"date_to": {
"type": "string",
"description": "Inclusive end date (YYYY-MM-DD)"
},
"date_from": {
"type": "string",
"description": "Inclusive start date (YYYY-MM-DD)"
}
},
"description": "Explicit compare window. Pass with baseline, and omit ship_date and window_days"
},
"filters": {
"type": "array",
"items": {
"type": "object",
"required": [
"field",
"op",
"value"
],
"properties": {
"op": {
"enum": [
"eq",
"neq",
"gt",
"lt",
"gte",
"lte",
"contains"
],
"type": "string",
"description": "Filter operator"
},
"field": {
"type": "string",
"description": "Field to filter on (user_id, date, country, session_id, timestamp, or properties.*). event is rejected"
},
"value": {
"type": [
"string",
"number"
],
"description": "Value to compare against"
}
}
},
"description": "Optional filters, same shape as query. Do not filter on event"
},
"project": {
"type": "string",
"description": "Project name or ID"
},
"baseline": {
"type": "object",
"required": [
"date_from",
"date_to"
],
"properties": {
"date_to": {
"type": "string",
"description": "Inclusive end date (YYYY-MM-DD)"
},
"date_from": {
"type": "string",
"description": "Inclusive start date (YYYY-MM-DD)"
}
},
"description": "Explicit baseline window. Pass with compare, and omit ship_date and window_days"
},
"ship_date": {
"type": "string",
"description": "Ship date (YYYY-MM-DD, UTC). The ship day is in neither window"
},
"goal_event": {
"type": "string",
"maxLength": 256,
"description": "Goal event counted as unique converters (count_mode unique_users). A user who fires it more than once counts once"
},
"window_days": {
"type": "integer",
"maximum": 90,
"minimum": 1,
"multipleOf": 7,
"description": "Days in each ship_date window. Integer from 1 to 90 and a multiple of 7. Defaults to 7. Omit when passing baseline and compare"
},
"metric_event": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "Event whose property is measured. Defaults to goal_event. For hosted Web Vitals such as p75(cwv_lcp), set this to page_view"
},
"denominator_event": {
"type": "string",
"maxLength": 256,
"description": "Denominator event counted as unique users. Defaults to page_view. rate = goal_converters / denominator_unique_users"
},
"denominator_filters": {
"type": "array",
"items": {
"type": "object",
"required": [
"field",
"op",
"value"
],
"properties": {
"op": {
"enum": [
"eq",
"neq",
"gt",
"lt",
"gte",
"lte",
"contains"
],
"type": "string",
"description": "Filter operator"
},
"field": {
"type": "string",
"description": "Field to filter on (user_id, date, country, session_id, timestamp, or properties.*). event is rejected"
},
"value": {
"type": [
"string",
"number"
],
"description": "Value to compare against"
}
}
},
"maxItems": 10,
"description": "Filters applied only to denominator events when counting denominator_unique_users. Same shape and operators as filters. Max 10. Omit or pass [] for today's behavior. Example: {\"field\":\"properties.title\",\"op\":\"neq\",\"value\":\"Page not found | grokbotpages.com\"}"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Read grouped $error events for a project (GET /errors). Errors is a Pro read. A free account gets 403 PRO_REQUIRED, the same status and error code as POST /query, and that rejection is not metered. Each successful call counts as one metered read. Errors is the post-ship guardrail next to compare: after a ship, read errors for the same window before you keep the change. The group key is a SHA-256 fingerprint of the normalized message (URL query strings and hashes removed, then UUIDs, hex hashes, and numbers replaced), the source filename without query or hash, and the numeric line. There is no stack, and col is not part of the key. Each group includes fingerprint, a sample message, source, line, count, users, sessions, first_seen, last_seen, and up to 3 top_paths. count, users, sessions, and top_paths use the since/until window. first_seen and last_seen use every stored $error for that fingerprint. Groups with no event in the window are omitted. since defaults to 7 days and accepts 7d or YYYY-MM-DD. until defaults to today UTC. limit defaults to 20 and maxes at 100. new_since is a YYYY-MM-DD or an annotation title. A date is used directly. Any other string matches project annotations by exact title, then case-insensitive title, then note, then substring. Zero matches is 400. More than one match is 400 with matches listing occurred_at and title. The group new_since boolean is present only when this param is set, and is true when first_seen is on or after the resolved date. new_since_annotation is returned only when new_since matched an annotation. Every response includes approximate, a boolean. When approximate is true, caps is an array of the scan caps that were hit: distinct_triples and window_rows. There is no singular cap field. A large project stays 200. The response also includes truncated.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Max groups. Defaults to 20 and maxes at 100 |
| since | string | Lookback window: 7d or YYYY-MM-DD. Defaults to 7 days |
| until | string | Inclusive end date YYYY-MM-DD. Defaults to today UTC |
| project * | string | Project name or ID |
| new_since | string | YYYY-MM-DD or an annotation title. Zero matches is 400. More than one match is 400 with matches of occurred_at and title |
{
"name": "errors",
"description": "Read grouped $error events for a project (GET /errors). Errors is a Pro read. A free account gets 403 PRO_REQUIRED, the same status and error code as POST /query, and that rejection is not metered. Each successful call counts as one metered read. Errors is the post-ship guardrail next to compare: after a ship, read errors for the same window before you keep the change. The group key is a SHA-256 fingerprint of the normalized message (URL query strings and hashes removed, then UUIDs, hex hashes, and numbers replaced), the source filename without query or hash, and the numeric line. There is no stack, and col is not part of the key. Each group includes fingerprint, a sample message, source, line, count, users, sessions, first_seen, last_seen, and up to 3 top_paths. count, users, sessions, and top_paths use the since/until window. first_seen and last_seen use every stored $error for that fingerprint. Groups with no event in the window are omitted. since defaults to 7 days and accepts 7d or YYYY-MM-DD. until defaults to today UTC. limit defaults to 20 and maxes at 100. new_since is a YYYY-MM-DD or an annotation title. A date is used directly. Any other string matches project annotations by exact title, then case-insensitive title, then note, then substring. Zero matches is 400. More than one match is 400 with matches listing occurred_at and title. The group new_since boolean is present only when this param is set, and is true when first_seen is on or after the resolved date. new_since_annotation is returned only when new_since matched an annotation. Every response includes approximate, a boolean. When approximate is true, caps is an array of the scan caps that were hit: distinct_triples and window_rows. There is no singular cap field. A large project stays 200. The response also includes truncated.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Max groups. Defaults to 20 and maxes at 100"
},
"since": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "Lookback window: 7d or YYYY-MM-DD. Defaults to 7 days"
},
"until": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "Inclusive end date YYYY-MM-DD. Defaults to today UTC"
},
"project": {
"type": "string",
"description": "Project name or ID"
},
"new_since": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "YYYY-MM-DD or an annotation title. Zero matches is 400. More than one match is 400 with matches of occurred_at and title"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Read Core Web Vitals for a project (POST /vitals). p75 is the headline: each metric is assessed at the 75th percentile of page loads, using nearest-rank. Web Vitals is a Pro read. A free account gets 403 PRO_REQUIRED, the same status and error code as POST /query, and that rejection is not metered. Each successful call counts as one metered read. The event is fixed to page_view. On hosted, vitals are cwv_lcp, cwv_inp, cwv_cls, cwv_fcp, and cwv_ttfb properties on page_view. Collect them by installing the project snippet with data-track-vitals="true". Thresholds follow web.dev (https://web.dev/articles/vitals) and PageSpeed Insights. LCP: good at or below 2500 ms, poor above 4000 ms. INP: good at or below 200 ms, poor above 500 ms. CLS: good at or below 0.1, poor above 0.25 (unitless). FCP: good at or below 1800 ms, poor above 3000 ms. TTFB: good at or below 800 ms, poor above 1800 ms. A value at or below good_max is good. A value above poor_min is poor. Any value in between is needs-improvement. The same rule rates every page load for the good, needs-improvement, and poor share, and rates the p75. cwv_pass is true only when the LCP, INP, and CLS p75 ratings are all good. If INP n is 0, the decision uses LCP and CLS only. cwv_pass is null when LCP n is 0 or CLS n is 0. FCP and TTFB do not affect cwv_pass. group_by is optional. device returns mobile, tablet, and desktop. path returns the top limit paths by sample size, sorted by worst LCP p75. Omit group_by for one site-wide row (group null). limit defaults to 10 and maxes at 20. days, date_from, and date_to select the window. Each metric row includes p75 with its unit, rating, n, skipped, the good/needs-improvement/poor share, and up to 5 top poor targets. FCP and TTFB targets are empty. skipped counts page views that did not report that vital. When the scan hits the 200,000 event cap, approximate is true.
| Parameter | Type | Description |
|---|---|---|
| days | integer | Lookback in days. Omit when date_from and date_to are set |
| limit | integer | Maximum rows. Defaults to 10 and maxes at 20 |
| date_to | string | Inclusive end date (YYYY-MM-DD). Optional |
| project * | string | Project name or ID |
| group_by | string | Split rows by device (mobile, tablet, desktop) or path. Omit for one site-wide row |
| date_from | string | Inclusive start date (YYYY-MM-DD). Optional |
{
"name": "web_vitals",
"description": "Read Core Web Vitals for a project (POST /vitals). p75 is the headline: each metric is assessed at the 75th percentile of page loads, using nearest-rank. Web Vitals is a Pro read. A free account gets 403 PRO_REQUIRED, the same status and error code as POST /query, and that rejection is not metered. Each successful call counts as one metered read.\n\nThe event is fixed to page_view. On hosted, vitals are cwv_lcp, cwv_inp, cwv_cls, cwv_fcp, and cwv_ttfb properties on page_view. Collect them by installing the project snippet with data-track-vitals=\"true\".\n\nThresholds follow web.dev (https://web.dev/articles/vitals) and PageSpeed Insights. LCP: good at or below 2500 ms, poor above 4000 ms. INP: good at or below 200 ms, poor above 500 ms. CLS: good at or below 0.1, poor above 0.25 (unitless). FCP: good at or below 1800 ms, poor above 3000 ms. TTFB: good at or below 800 ms, poor above 1800 ms. A value at or below good_max is good. A value above poor_min is poor. Any value in between is needs-improvement. The same rule rates every page load for the good, needs-improvement, and poor share, and rates the p75.\n\ncwv_pass is true only when the LCP, INP, and CLS p75 ratings are all good. If INP n is 0, the decision uses LCP and CLS only. cwv_pass is null when LCP n is 0 or CLS n is 0. FCP and TTFB do not affect cwv_pass.\n\ngroup_by is optional. device returns mobile, tablet, and desktop. path returns the top limit paths by sample size, sorted by worst LCP p75. Omit group_by for one site-wide row (group null). limit defaults to 10 and maxes at 20. days, date_from, and date_to select the window. Each metric row includes p75 with its unit, rating, n, skipped, the good/needs-improvement/poor share, and up to 5 top poor targets. FCP and TTFB targets are empty. skipped counts page views that did not report that vital. When the scan hits the 200,000 event cap, approximate is true.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"days": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1,
"description": "Lookback in days. Omit when date_from and date_to are set"
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 20,
"minimum": 1,
"description": "Maximum rows. Defaults to 10 and maxes at 20"
},
"date_to": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "Inclusive end date (YYYY-MM-DD). Optional"
},
"project": {
"type": "string",
"description": "Project name or ID"
},
"group_by": {
"enum": [
"device",
"path"
],
"type": "string",
"description": "Split rows by device (mobile, tablet, desktop) or path. Omit for one site-wide row"
},
"date_from": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "Inclusive start date (YYYY-MM-DD). Optional"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Funnel analysis: track where users drop off across a sequence of events (e.g. page_view → signup → purchase). Returns per-step user counts, conversion rates, and average time between steps. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| since | string | Lookback period (e.g. '30d', '90d', or ISO date) |
| steps * | array | Funnel steps (2-8), each with an event name and optional filters |
| project * | string | Project name |
| count_by | string | Count by users or sessions |
| breakdown | string | Property key to segment by (e.g. 'variant', 'country'). Extracted from step 1 events. |
| breakdown_limit | number | Max breakdown groups (default 10, max 50) |
| conversion_window_hours | number | Max hours from step 1 to last step (default: 168 = 7 days) |
{
"name": "analytics_funnel",
"description": "Funnel analysis: track where users drop off across a sequence of events (e.g. page_view → signup → purchase). Returns per-step user counts, conversion rates, and average time between steps. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project",
"steps"
],
"properties": {
"since": {
"type": "string",
"default": "30d",
"description": "Lookback period (e.g. '30d', '90d', or ISO date)"
},
"steps": {
"type": "array",
"items": {
"type": "object",
"required": [
"event"
],
"properties": {
"event": {
"type": "string",
"description": "Event name for this step"
},
"filters": {
"type": "array",
"items": {
"type": "object",
"required": [
"property",
"op",
"value"
],
"properties": {
"op": {
"enum": [
"eq",
"neq",
"contains"
],
"type": "string",
"description": "Filter operator"
},
"value": {
"type": "string",
"description": "Filter value"
},
"property": {
"type": "string",
"description": "Property key to filter on"
}
}
},
"description": "Optional property filters for this step"
}
}
},
"maxItems": 8,
"minItems": 2,
"description": "Funnel steps (2-8), each with an event name and optional filters"
},
"project": {
"type": "string",
"description": "Project name"
},
"count_by": {
"enum": [
"user_id",
"session_id"
],
"type": "string",
"default": "user_id",
"description": "Count by users or sessions"
},
"breakdown": {
"type": "string",
"description": "Property key to segment by (e.g. 'variant', 'country'). Extracted from step 1 events."
},
"breakdown_limit": {
"type": "number",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "Max breakdown groups (default 10, max 50)"
},
"conversion_window_hours": {
"type": "number",
"default": 168,
"maximum": 8760,
"minimum": 1,
"description": "Max hours from step 1 to last step (default: 168 = 7 days)"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Cohort retention analysis — track what % of users return over time. By default uses session-based retention (any return visit counts). Pass 'event' to switch to event-based retention. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| event | string | First-seen event filter (e.g. signup). Switches to event-based retention. |
| period | string | Cohort grouping period |
| cohorts | number | Number of cohort periods (max: day=30, week=12, month=12) |
| project * | string | Project name |
| returning_event | string | What counts as 'returned' (defaults to same as event) |
{
"name": "analytics_retention",
"description": "Cohort retention analysis — track what % of users return over time. By default uses session-based retention (any return visit counts). Pass 'event' to switch to event-based retention. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"event": {
"type": "string",
"description": "First-seen event filter (e.g. signup). Switches to event-based retention."
},
"period": {
"enum": [
"day",
"week",
"month"
],
"type": "string",
"default": "week",
"description": "Cohort grouping period"
},
"cohorts": {
"type": "number",
"default": 8,
"maximum": 30,
"minimum": 1,
"description": "Number of cohort periods (max: day=30, week=12, month=12)"
},
"project": {
"type": "string",
"description": "Project name"
},
"returning_event": {
"type": "string",
"description": "What counts as 'returned' (defaults to same as event)"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Get time series chart, KPIs (events, users), and country breakdown (events, unique users) for a project over N days Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| days | number | Lookback window in days |
| project * | string | Project name |
{
"name": "analytics_overview",
"description": "Get time series chart, KPIs (events, users), and country breakdown (events, unique users) for a project over N days Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"days": {
"type": "number",
"default": 7,
"maximum": 365,
"minimum": 1,
"description": "Lookback window in days"
},
"project": {
"type": "string",
"description": "Project name"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Period-over-period comparison with trend (events, users, bounce rate, session duration) Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| period | string | Comparison period |
| project * | string | Project name |
{
"name": "analytics_insights",
"description": "Period-over-period comparison with trend (events, users, bounce rate, session duration) Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"period": {
"enum": [
"1d",
"7d",
"14d",
"30d",
"90d"
],
"type": "string",
"default": "7d",
"description": "Comparison period"
},
"project": {
"type": "string",
"description": "Project name"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Top property values ranked by count (pages, referrers, UTM sources, etc.) Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| days | number | Lookback window in days |
| event | string | Filter by event name (e.g. page_view) |
| limit | number | Max results |
| project * | string | Project name |
| property | string | Property key to group by (e.g. path, referrer, utm_source) |
{
"name": "analytics_breakdown",
"description": "Top property values ranked by count (pages, referrers, UTM sources, etc.) Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"days": {
"type": "number",
"default": 7,
"maximum": 365,
"minimum": 1,
"description": "Lookback window in days"
},
"event": {
"type": "string",
"description": "Filter by event name (e.g. page_view)"
},
"limit": {
"type": "number",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Max results"
},
"project": {
"type": "string",
"description": "Project name"
},
"property": {
"type": "string",
"default": "path",
"description": "Property key to group by (e.g. path, referrer, utm_source)"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Entry/exit page stats with bounce rate, avg duration, events per session Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| type | string | Page type |
| limit | number | Max results |
| project * | string | Project name |
{
"name": "analytics_pages",
"description": "Entry/exit page stats with bounce rate, avg duration, events per session Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"type": {
"enum": [
"entry",
"exit",
"both"
],
"type": "string",
"default": "entry",
"description": "Page type"
},
"limit": {
"type": "number",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Max results"
},
"project": {
"type": "string",
"description": "Project name"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Bounded session path analysis from entry pages to goal, drop-off, or truncation. Useful for connecting page behavior to funnels, retention, and experiments. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| since | string | Lookback period |
| project * | string | Project name |
| max_steps | integer | Max mixed page/event steps before truncation |
| goal_event * | string | Goal event to attribute within the same session |
| path_limit | integer | Max children kept per node |
| entry_limit | integer | Max entry pages to include |
| candidate_session_cap | integer | Bound on candidate sessions scanned |
{
"name": "analytics_paths",
"description": "Bounded session path analysis from entry pages to goal, drop-off, or truncation. Useful for connecting page behavior to funnels, retention, and experiments. Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project",
"goal_event"
],
"properties": {
"since": {
"enum": [
"7d",
"14d",
"30d",
"90d"
],
"type": "string",
"default": "30d",
"description": "Lookback period"
},
"project": {
"type": "string",
"description": "Project name"
},
"max_steps": {
"type": "integer",
"default": 5,
"maximum": 5,
"minimum": 1,
"description": "Max mixed page/event steps before truncation"
},
"goal_event": {
"type": "string",
"description": "Goal event to attribute within the same session"
},
"path_limit": {
"type": "integer",
"default": 5,
"maximum": 10,
"minimum": 1,
"description": "Max children kept per node"
},
"entry_limit": {
"type": "integer",
"default": 10,
"maximum": 20,
"minimum": 1,
"description": "Max entry pages to include"
},
"candidate_session_cap": {
"type": "integer",
"default": 5000,
"maximum": 10000,
"minimum": 100,
"description": "Bound on candidate sessions scanned"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Session duration histogram with engaged percentage and median bucket Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| project * | string | Project name |
{
"name": "analytics_sessions",
"description": "Session duration histogram with engaged percentage and median bucket Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"project": {
"type": "string",
"description": "Project name"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Day-of-week × hour traffic grid with peak detection (times in UTC) Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.
| Parameter | Type | Description |
|---|---|---|
| project * | string | Project name |
{
"name": "analytics_heatmap",
"description": "Day-of-week × hour traffic grid with peak detection (times in UTC) Anonymous preview is limited to agentanalytics-demo synthetic read-only data; sign in for your own projects.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"project"
],
"properties": {
"project": {
"type": "string",
"description": "Project name"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Names, descriptions and schemas were written by the server and are shown as data.
| count_mode |
| string |
| How event_count is aggregated. Default for event_count: session_then_user. Session-backed rows count by session, no-session rows fall back to user only when that user has no session-backed row in the same group, and fully anonymous rows fall back to event id. Ignored for queries without event_count.… |
| string |
| Event whose property is measured. Defaults to goal_event. For hosted Web Vitals such as p75(cwv_lcp), set this to page_view |
| denominator_event | string | Denominator event counted as unique users. Defaults to page_view. rate = goal_converters / denominator_unique_users |
| denominator_filters | array | Filters applied only to denominator events when counting denominator_unique_users. Same shape and operators as filters. Max 10. Omit or pass [] for today's behavior. Example: {"field":"properties.title","op":"neq","value":"Page not found | grokbotpages.com"} |