mcp-server
v0.7.19MCP server for UX friction data.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
whoami Who Am I
Introspect this connection: key type, the org and site it is scoped to (with names), and its granted scopes (mcp:read for reads, manage:write for write tools). Call this once at the start of a session to learn your permission envelope instead of discovering it by failed calls.
list_sites List Sites
List the sites this key can read, with id, name, url, and current overall confusion score. A site-scoped key returns its one site. Pass an id as site_id to any site-level tool to read a different site with an org-scoped key.
get_site_context Get Site Context
Get the Flusterduck snapshot for a site: scores, open issues, active alerts, deploys, and recommendations. Start here for any investigation. score is the baseline-normalized confusion score (0-100, higher = more confusion, dampened for tiny samples); raw_score is the pre-normalization weighted signal total; baseline 0 with deviation 0 means the page has no learned baseline yet.
| Parameter | Type | Description |
|---|---|---|
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
get_scores Get Scores
Get current confusion scores for every tracked page, sorted by friction intensity. score is the baseline-normalized confusion score (0-100, higher = more confusion, dampened for tiny samples); raw_score is the pre-normalization weighted signal total; baseline 0 with deviation 0 means the page has no learned baseline yet.
| Parameter | Type | Description |
|---|---|---|
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
get_page Get Page
Get the context for one page: current score, recent score history, top friction elements, active alerts and issues, recent deploys, annotations, and confusion budgets. Use after get_scores or get_site_context to drill into a specific page. For page-to-page navigation use get_flows.
| Parameter | Type | Description |
|---|---|---|
page * | string | Page path as tracked by Flusterduck, e.g. "/checkout" or "/pricing". Get valid paths from get_scores. |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
get_elements Get Elements
Get element-level friction summaries: which buttons, forms, and links generate the most behavioral signals. Site-wide by default; pass page to scope to one page.
| Parameter | Type | Description |
|---|---|---|
page | string | Optional page path, e.g. "/checkout". Omit for a site-wide element ranking. |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
get_issues Get Issues
Get UX issues for a site, newest activity first. Returns { issues, total, offset, limit } so you can page. Filter by status to focus on what needs attention (status "open" is the active inbox; "regressed" means a previously fixed issue came back).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max issues to return. Default 50, max 200. |
offset | integer | Rows to skip, for paging. Default 0. The response echoes total/offset/limit. |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
status | string | Filter to one lifecycle status. Omit to get every status. |
get_issue Get Issue
Get one UX issue with full evidence, session links, verification history, and deploy correlation. Use after get_issues to drill into a specific issue.
| Parameter | Type | Description |
|---|---|---|
issue_id * | string | Issue UUID from get_issues or get_site_context. |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
get_alerts Get Alerts
Get alerts for a site, newest first. Returns { alerts, total, offset, limit } so you can page. Status "fired" means nobody has looked yet; use it to find alerts needing attention.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max alerts to return. Default 50, max 200. |
offset | integer | Rows to skip, for paging. Default 0. |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
status | string | Filter to one alert status. Omit to get every status. |
list_alert_rules List Alert Rules
List the alert rules configured for a site: trigger types, thresholds, channels, and enabled status. Read-only; works with any key that can read the site. Call this before create_alert_rule, update_alert_rule, or delete_alert_rule to see what already exists.
| Parameter | Type | Description |
|---|---|---|
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
get_session_detail Get Session Detail
Raw data, use sparingly: prefer get_site_context, get_issues, get_page, or explore, and reach for this only for specific row-level evidence. Get the full event timeline for one session: every signal, click, scroll, and page view in order. Get session ids from explore (mode "list"), get_issue evidence, or query_raw_rows on the sessions table.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Session id string (16-128 chars), as returned by explore, get_issue, or query_raw_rows. Not a UUID. |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
get_flows Get Flows
Get the most common page-to-page flow edges ({ from, to, count }) from recent sessions, busiest first, showing where users come from and where they go. Returns 25 edges by default (max 100) plus total_edges and truncated so you know whether more exist.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max flow edges to return, busiest first. Default 25, max 100. |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
get_trends Get Trends
Get confusion score history for a site or one page. Use to spot regressions after deploys.
| Parameter | Type | Description |
|---|---|---|
days | integer | Window in days, 1-90. Default 7. |
page | string | Optional page path, e.g. "/checkout". Omit for the site-wide trend. |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
get_conversion_insights Get Conversion Insights
Get the confused-vs-calm conversion analysis: it splits the site's sessions into a "confused" cohort (produced at least one friction signal) and a "calm" cohort (zero friction), then compares conversion rate, session duration, pages per session, and bounce rate between them. Use it to state plainly how much less confused sessions convert (e.g. "confused sessions convert 12 points lower"), which pages and traffic sources bleed the most conversions to confusion, and the ranked insights. cohorts/deltas are the headline; by_page and by_source break the gap down; insights[] are pre-written findings…
| Parameter | Type | Description |
|---|---|---|
days | integer | Window in days, 1-90. Default 7. |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
get_deploys Get Deploys
Get deploys known to Flusterduck for a site, including confusion_before/after scores for each.
| Parameter | Type | Description |
|---|---|---|
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
compare_pages Compare Pages
Compare confusion score records side-by-side for two page paths.
| Parameter | Type | Description |
|---|---|---|
a * | string | First page path, e.g. "/checkout". |
b * | string | Second page path, e.g. "/pricing". |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
get_recommendations Get Recommendations
Get prioritized fix recommendations ranked by estimated confusion reduction.
| Parameter | Type | Description |
|---|---|---|
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
get_revenue_impact Get Revenue Impact
Get revenue impact estimates for active friction when conversion data is connected.
| Parameter | Type | Description |
|---|---|---|
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
get_heuristics Get Heuristics
Get the Flusterduck friction heuristic catalog: every signal type, its threshold, and its scoring weight.
| Parameter | Type | Description |
|---|---|---|
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
diagnose_journey_friction Diagnose Journey Friction
Find high-friction journey edges from recent sessions. Filter by signal type or minimum friction weight to focus on the worst paths.
| Parameter | Type | Description |
|---|---|---|
journey_id | string | Optional journey UUID to scope to one recorded journey. |
limit | integer | Max edges to return. Default 250, max 1000. |
min_friction_weight | integer | Minimum friction weight for an edge to count. Default 1. |
signal_type | string | Optional friction signal type, e.g. "rage_click" or "dead_click". get_heuristics lists every type. |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
query_raw_rows Query Raw Rows
Raw data, use sparingly: prefer get_site_context, get_issues, get_page, or explore, and reach for this only for specific row-level evidence. Get raw rows from an allowlisted Flusterduck table, scoped to the site. Default 100 rows sorted by the table's time column, newest first. Filters only apply where they make sense: event_type on events, signal_type on signals, status on ux_issues/alerts, session_id on events/signals/sessions.
| Parameter | Type | Description |
|---|---|---|
table * | string | Which table to read: events, signals, sessions, page_scores, score_history, ux_issues, alerts, or deploys. |
event_type | string | events table only: filter by event type, e.g. "click", "pageview", "error". |
limit | integer | Max rows to return. Default 100, max 1000. Keep it small. |
page | string | Exact page path filter, e.g. "/checkout". |
session_id | string | events, signals, or sessions tables: scope to one session id. |
signal_type | string | signals table only: filter by friction signal type, e.g. "rage_click". |
since | string | Only rows at or after this ISO 8601 timestamp, e.g. "2026-07-01T00:00:00Z". |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
sort_by | string | Sort column; must be allowlisted for the table (the API answers 400 listing valid columns if not). Defaults to the table's time column, e.g. occurred_at for events and signals. |
sort_dir | string | Sort direction: asc or desc. Default desc. |
status | string | ux_issues or alerts tables only: filter by status. Issues: open, triaged, in_progress, verified, resolved, ignored, regressed. Alerts: fired, acknowledged, investigating, resolved. |
until | string | Only rows at or before this ISO 8601 timestamp. |
explore Explore
Run a deterministic, typed query against a site's session data. No natural language, no LLM: a closed vocabulary the engine validates before touching a row, built so an agent can compose it directly. Give it a window (window_days, 1-90, default 7) and up to 12 AND-ed filters over a fixed field list: signal (a friction/heuristic type, e.g. "rage_click", "dead_click", "form_abandonment"), page (a page path), source (referrer/utm source), confused (boolean: session produced at least one friction signal), converted (boolean: session reached the site's configured conversion event), event_type (one…
| Parameter | Type | Description |
|---|---|---|
output * | Exactly one output mode: {mode:"list"} for example sessions or {mode:"measure"} for a metric. | |
filters | array | Up to 12 AND-ed filters. Omit to match every session in the window. |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
window_days | integer | Window in days, 1-90. Default 7. |
download_events_csv Download Events CSV
Raw data, use sparingly: prefer get_site_context, get_issues, get_page, or explore, and reach for this only for specific row-level evidence. Return raw event rows as CSV text (save it as a .csv file). Returns 100 rows by default, max 1000 per call. A second text block reports rows, truncated, and next_offset: when truncated is true, call again with offset set to next_offset for the next page. Narrow with page/since/until/event_type first.
| Parameter | Type | Description |
|---|---|---|
event_type | string | Filter by event type, e.g. "click", "pageview", "error". |
limit | integer | Rows per call. Default 100, max 1000. |
offset | integer | Rows to skip. Pass next_offset from the previous call to get the next page. Default 0. |
page | string | Exact page path filter, e.g. "/checkout". |
session_id | string | Scope the export to one session id. |
since | string | Only events at or after this ISO 8601 timestamp. |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
sort_by | string | Sort column for the events table (occurred_at, received_at, page, event_type). Default occurred_at. |
sort_dir | string | Sort direction: asc or desc. Default desc. |
until | string | Only events at or before this ISO 8601 timestamp. |
get_audit_log Get Audit Log
Get organization audit log rows (who changed what, newest first). Uses the key's own org; needs an org-scoped key, so a site-scoped key gets a 403.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max rows to return. Default 100, max 500. |
get_degradation Get Degradation
Get active and recent backend degradation events (operational health for ingest, scoring, and delivery). Works with org-scoped and site-scoped keys. Check this when data looks stale or missing.
get_webhook_deliveries Get Webhook Deliveries
Get outbound webhook delivery attempts and failure details, newest first. Uses the key's own org; needs an org-scoped key, so a site-scoped key gets a 403.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max delivery rows to return. Default 100, max 500. |
update_issue Update Issue
Update a UX issue: change its status (open/triaged/in_progress/verified/resolved/ignored), add a triage note, or set an assignee. Resolving or ignoring removes the issue from active triage views. Requires manage:write scope.
| Parameter | Type | Description |
|---|---|---|
issue_id * | string | Issue UUID from get_issues. |
assigned_to | Assignee name or handle (free text, max 256 chars). Pass null to unassign. | |
note | Triage note (max 1000 chars). Pass null to clear the existing note. | |
status | string | New lifecycle status. "regressed" is set by the engine and cannot be assigned manually. |
send_feedback Send Feedback
Send product feedback about Flusterduck itself to the Flusterduck team. Use kind "suggestion" for a missing capability, confusing tool output, or data you wished you had while working; use kind "bug" when a Flusterduck tool or surface misbehaved. Say which tool you were using, what you expected, and what happened. Requires manage:write scope.
| Parameter | Type | Description |
|---|---|---|
kind * | string | "suggestion" for a missing capability or confusing output, "bug" for misbehavior. |
message * | string | The feedback itself (max 4000 chars). Name the tool, what you expected, and what happened. |
update_alert Update Alert
Acknowledge, mark as investigating, or resolve an alert. Resolving stops all channel delivery including PagerDuty. Optionally include a resolved_reason when closing. Requires manage:write scope.
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | Alert UUID from get_alerts. |
status * | string | New status. Alerts start as "fired"; you cannot set an alert back to fired. |
resolved_reason | string | Why the alert is resolved (max 500 chars). Only used with status "resolved". |
add_annotation Add Annotation
Add a timeline annotation to the site to mark deploys, investigation findings, resolved incidents, or any notable event for the team. Requires manage:write scope.
| Parameter | Type | Description |
|---|---|---|
message * | string | The annotation text (max 1000 chars). It appears on the site timeline for the whole team. |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
create_alert_rule Create Alert Rule
Create a new alert rule. Trigger types: spike (sudden confusion jump), anomaly (statistical deviation from baseline), new_page (a new page starts generating friction), trend (sustained drift), co_occurrence (many users confused at the same time), positive (score drops BELOW the threshold; fires on improvement), budget (confusion budget burn), revenue_threshold (estimated revenue at risk), stalled_signups (signup flow stalls). Omitted threshold and cooldown get per-trigger defaults. Requires manage:write scope.
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable rule name, e.g. "Checkout rage click spike". |
trigger_type * | string | What condition fires the alert. |
channels | array | Delivery channels. Default ["email"]. |
cooldown_minutes | integer | Minutes to wait before the rule can fire again, 1-1440. Default 30. |
enabled | boolean | Whether the rule is active. Default true. |
page_pattern | Optional page path pattern to scope the rule, e.g. "/checkout*". Null or omitted = all pages. | |
site_id | string | Site UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites. |
threshold | number | Trigger-specific units and defaults: spike score 0-1000 (default 60), anomaly 0-1000 (default 20), new_page 0-100 (default 40), trend 0-100 (default 30), co_occurrence concurrent users (default 10), p… |
update_alert_rule Update Alert Rule
Update an existing alert rule: toggle enabled, change threshold, adjust channels, rename, or update page_pattern. Prefer this over delete_alert_rule to silence a rule temporarily. Requires manage:write scope.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | Rule UUID from list_alert_rules. |
channels | array | Replacement channel list. |
cooldown_minutes | integer | Minutes between firings, 1-1440. |
enabled | boolean | false silences the rule without deleting it. |
name | string | New rule name. |
page_pattern | New page path pattern, or null to match all pages. | |
threshold | number | New threshold in the trigger's units (see create_alert_rule for units and defaults per trigger). |
trigger_type | string | New trigger type. Changing it changes the threshold units. |
delete_alert_rule Delete Alert Rule
Permanently delete an alert rule by ID. This cannot be undone; prefer update_alert_rule with enabled false to silence a rule temporarily. Requires manage:write scope.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | Rule UUID from list_alert_rules. |
list_docs List Docs
List every Flusterduck documentation page with its slug, title, and group. Works without a key. Use this to discover what docs are available, then call get_doc with a slug to read one.
search_docs Search Docs
Search the bundled Flusterduck documentation by keyword. Works without a key. Matches against title, description, and full content, and returns a short excerpt for each hit. Use get_doc to read the full page.
| Parameter | Type | Description |
|---|---|---|
query * | string | Keyword or phrase to search for, e.g. "alert thresholds" or "consent". |
get_doc Get Doc
Get the full markdown of one Flusterduck documentation page by slug. Works without a key. Call list_docs or search_docs first to find the slug.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Doc slug, e.g. "alerts", "scoring", "mcp". list_docs shows every slug. |