mcp-server

v0.7.19
@flusterduck/mcp-server Checked 6 hours ago Published 1 month ago

MCP 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.

ParameterTypeDescription
site_idstringSite 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.

ParameterTypeDescription
site_idstringSite 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.

ParameterTypeDescription
page *stringPage path as tracked by Flusterduck, e.g. "/checkout" or "/pricing". Get valid paths from get_scores.
site_idstringSite 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.

ParameterTypeDescription
pagestringOptional page path, e.g. "/checkout". Omit for a site-wide element ranking.
site_idstringSite 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).

ParameterTypeDescription
limitintegerMax issues to return. Default 50, max 200.
offsetintegerRows to skip, for paging. Default 0. The response echoes total/offset/limit.
site_idstringSite UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites.
statusstringFilter 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.

ParameterTypeDescription
issue_id *stringIssue UUID from get_issues or get_site_context.
site_idstringSite 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.

ParameterTypeDescription
limitintegerMax alerts to return. Default 50, max 200.
offsetintegerRows to skip, for paging. Default 0.
site_idstringSite UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites.
statusstringFilter 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.

ParameterTypeDescription
site_idstringSite 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.

ParameterTypeDescription
session_id *stringSession id string (16-128 chars), as returned by explore, get_issue, or query_raw_rows. Not a UUID.
site_idstringSite 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.

ParameterTypeDescription
limitintegerMax flow edges to return, busiest first. Default 25, max 100.
site_idstringSite 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…

ParameterTypeDescription
daysintegerWindow in days, 1-90. Default 7.
site_idstringSite 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.

ParameterTypeDescription
site_idstringSite 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.

ParameterTypeDescription
a *stringFirst page path, e.g. "/checkout".
b *stringSecond page path, e.g. "/pricing".
site_idstringSite 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.

ParameterTypeDescription
site_idstringSite 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.

ParameterTypeDescription
site_idstringSite 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.

ParameterTypeDescription
site_idstringSite 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.

ParameterTypeDescription
journey_idstringOptional journey UUID to scope to one recorded journey.
limitintegerMax edges to return. Default 250, max 1000.
min_friction_weightintegerMinimum friction weight for an edge to count. Default 1.
signal_typestringOptional friction signal type, e.g. "rage_click" or "dead_click". get_heuristics lists every type.
site_idstringSite 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.

ParameterTypeDescription
table *stringWhich table to read: events, signals, sessions, page_scores, score_history, ux_issues, alerts, or deploys.
event_typestringevents table only: filter by event type, e.g. "click", "pageview", "error".
limitintegerMax rows to return. Default 100, max 1000. Keep it small.
pagestringExact page path filter, e.g. "/checkout".
session_idstringevents, signals, or sessions tables: scope to one session id.
signal_typestringsignals table only: filter by friction signal type, e.g. "rage_click".
sincestringOnly rows at or after this ISO 8601 timestamp, e.g. "2026-07-01T00:00:00Z".
site_idstringSite UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites.
sort_bystringSort 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_dirstringSort direction: asc or desc. Default desc.
statusstringux_issues or alerts tables only: filter by status. Issues: open, triaged, in_progress, verified, resolved, ignored, regressed. Alerts: fired, acknowledged, investigating, resolved.
untilstringOnly 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…

ParameterTypeDescription
output *Exactly one output mode: {mode:"list"} for example sessions or {mode:"measure"} for a metric.
filtersarrayUp to 12 AND-ed filters. Omit to match every session in the window.
site_idstringSite UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites.
window_daysintegerWindow 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.

ParameterTypeDescription
event_typestringFilter by event type, e.g. "click", "pageview", "error".
limitintegerRows per call. Default 100, max 1000.
offsetintegerRows to skip. Pass next_offset from the previous call to get the next page. Default 0.
pagestringExact page path filter, e.g. "/checkout".
session_idstringScope the export to one session id.
sincestringOnly events at or after this ISO 8601 timestamp.
site_idstringSite UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites.
sort_bystringSort column for the events table (occurred_at, received_at, page, event_type). Default occurred_at.
sort_dirstringSort direction: asc or desc. Default desc.
untilstringOnly 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.

ParameterTypeDescription
limitintegerMax 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.

ParameterTypeDescription
limitintegerMax 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.

ParameterTypeDescription
issue_id *stringIssue UUID from get_issues.
assigned_toAssignee name or handle (free text, max 256 chars). Pass null to unassign.
noteTriage note (max 1000 chars). Pass null to clear the existing note.
statusstringNew 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.

ParameterTypeDescription
kind *string"suggestion" for a missing capability or confusing output, "bug" for misbehavior.
message *stringThe 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.

ParameterTypeDescription
alert_id *stringAlert UUID from get_alerts.
status *stringNew status. Alerts start as "fired"; you cannot set an alert back to fired.
resolved_reasonstringWhy 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.

ParameterTypeDescription
message *stringThe annotation text (max 1000 chars). It appears on the site timeline for the whole team.
site_idstringSite 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.

ParameterTypeDescription
name *stringHuman-readable rule name, e.g. "Checkout rage click spike".
trigger_type *stringWhat condition fires the alert.
channelsarrayDelivery channels. Default ["email"].
cooldown_minutesintegerMinutes to wait before the rule can fire again, 1-1440. Default 30.
enabledbooleanWhether the rule is active. Default true.
page_patternOptional page path pattern to scope the rule, e.g. "/checkout*". Null or omitted = all pages.
site_idstringSite UUID. Omit for a site-scoped key; for an org-scoped key, an id from list_sites.
thresholdnumberTrigger-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.

ParameterTypeDescription
rule_id *stringRule UUID from list_alert_rules.
channelsarrayReplacement channel list.
cooldown_minutesintegerMinutes between firings, 1-1440.
enabledbooleanfalse silences the rule without deleting it.
namestringNew rule name.
page_patternNew page path pattern, or null to match all pages.
thresholdnumberNew threshold in the trigger's units (see create_alert_rule for units and defaults per trigger).
trigger_typestringNew 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.

ParameterTypeDescription
rule_id *stringRule 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.

ParameterTypeDescription
query *stringKeyword 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.

ParameterTypeDescription
slug *stringDoc slug, e.g. "alerts", "scoring", "mcp". list_docs shows every slug.