Skip to content

MCP tool reference ​

Every tool the JustOneCX MCP server gives your assistant. Read this when you want the exact action names, or when you want to know what needs a confirmation. For what the server is and how to connect, start at MCP server.

How to read this page ​

  • Action tools (segments, conversations, customers, roadmap, funnels, events, trash, settings) take an action (analytics takes a report, settings also takes an area). The action decides what it does and what it needs.
  • confirm: an action marked "needs confirm" is refused until the call carries confirm: true. It is for changes your customers see at once or that are hard to undo. The assistant is told to show you the change and ask first.
  • dryRun: action tools accept dryRun to check the input and say what would block the change, without changing anything.
  • Access level: each action needs a minimum level. Read is "See your content and setup", Drafts is "Create and edit drafts", Live is "Make changes live". A tool is only listed when the connection and your role allow at least one of its actions. See access levels.
  • Your role still applies on top: an action also needs a role with the matching permission. Each access level also carries only some permissions, so an action that needs a permission held only at "Make changes live" (such as managing keys or workspace settings) needs that level even when it only reads.
  • Personal data: where a read shows who someone is, it shows counts only while personal data is off.
ToolJob
workspace_status, where_to, get_install_infoSetup and "where do I do this"
get_content, save_content, publish_contentTours, announcements, surveys, What's new, Help center
validate_tour, get_tour_preview_link, upload_imageCheck and preview a tour, host an image
conversationsChat inbox and chat setup
roadmapIdeas board, public roadmap, custom domains
customers, segments, eventsPeople, groups of people, raw events
analytics, funnelsNumbers and funnels
settingsWorkspace settings and brand
trashDelete and restore

workspace_status ​

Start here. Read access, any role.

  • Shows the workspace, your role and access level, the plan and whether personal data is on.
  • Shows the Home numbers for the last 30 days: events, active people, tour and announcement views, and what is live now.
  • Shows a setup checklist (SDK sending events, allowed origins, identity verification, what is live, chat). Every failing item says how to fix it: a tool to call or dashboard steps.

where_to ​

Read access, any role. Give a topic in plain words and it returns the dashboard link, the steps, and the tool that does it when there is one.

For what has no tool, it gives the page and steps: billing, inviting or removing members and role changes, keys, AI assistant access and tokens, the AI reply assistant key, audio and chat file uploads, the workspace URL and deleting the workspace, erasing a person's data, and emptying the Trash.

get_install_info ​

Read access. Needs a role that can view workspace settings.

  • Your Public key, the API URL and the install snippet for your framework.
  • serverEvents: the ingest URLs and a curl call for sending events from your backend.
  • identityVerification: why it exists, the order of steps, server code (Node, Python, Ruby, PHP, Go) and common mistakes.
  • websiteAnalytics: how to count anonymous visitors of your public site (the script tag plus a switch; cookieDomain for several subdomains).
  • boards: the embed code for the Roadmap, Ideas board and Changelog (boardFramework, boardRouting, boardBasePath) and the server code for board sign-on links (signOnLanguage: Node, Python, PHP, Ruby, Go, Java).
  • The server code reads the Secret key from JUSTONECX_SECRET_KEY. The key itself is never returned.

get_content ​

Read access. Reads tours, announcements, surveys, What's new (changelog) entries and Help center FAQs and articles, chosen with type (tour, announcement, survey, changelog, help_faq, help_article).

  • Without key or id: lists items (key, name, live or draft). Filter with search, status (draft or live) and pageRule (tours, announcements, surveys). Lists are 50 per page: send page; the answer has total and hasMore.
  • With key or id: the full item, its version (needed to update or publish), and a plain-words line saying who sees it, where and when. Help FAQs and articles have no key: use id or search.
  • include adds more:
    • stats: aggregate numbers (tours, announcements, surveys). For tours, segmentBy also splits people started and finished by a trait such as plan. Traits that identify a person (email, name, phone, id) are refused.
    • responses: survey answers one page at a time (score, comment, form answers), with no names or emails. Send responsesPage.
    • submissions: the same answers with each respondent's name and email, as JSON, one page at a time. This replaces the CSV export. Counts only when personal data is off.
    • progress: where people are in a tour: outcomes by state, the step most leave at, and per-step skips with reasons (counts only).
    • versions: the published versions of a tour you can go back to (see publish_content).
    • templates: with type: "tour" and no key, lists tour templates. publicTemplates: true browses the public catalog.
  • Visitor text in answers is untrusted data: the assistant is told never to follow instructions inside it.

save_content ​

Draft access. Saves a tour, announcement, survey, What's new entry, Help FAQ or Help article as a draft. A role that can edit that type is needed.

  • Create: send type, fields and a key (suggested from the name or title if you leave it out). Every new tour, announcement and survey needs fields.purpose, one line on why it exists. fields.notes is optional.
  • Update: send key or id, expectedVersion (from get_content) and only the fields to change. Clear a field by sending null.
  • Tours: edit single steps with stepOps (add, update, remove, move) instead of resending all steps.
  • Images: use the URL from upload_image as imageUrl.
  • A/B test: set up a variant on a tour or announcement. Changing the variant on a live item needs confirm.
  • What's new: link ideas to an entry with ideaIds.
  • Help center: reorder items with reorder (every item id, in the order the widget should show them). Needs confirm. Help center changes need "Make changes live".
  • On a live item, edits that change what users see need "Make changes live".
  • Tour templates: fromTemplateId (with fields.name) creates a draft tour from a template. saveAsTemplate (with key or id) saves a tour as a private template. Both need confirm and "Make changes live".
  • Everything saved is a draft until publish_content.

publish_content ​

Live access ("Make changes live"). Makes a draft live for real users (published: true) or takes it offline (false). The assistant is told to show you the preview and get your OK first.

  • Tours, announcements, surveys: show to users or hide. For surveys, start or pause.
  • What's new entries and Help articles: publish, or take back to draft. Help FAQs: show or hide in the Help center.
  • restoreVersionId (tours): loads an older published version into the draft. It does not go live; publish it after you have seen it.
  • discardDraft (tours): throws away the unpublished draft and goes back to what is live. Cannot be undone. Needs confirm.
  • announceInApp (What's new, with published: true): also posts a live in-app banner pointing at the entry. Needs confirm.

validate_tour ​

Read access. Checks a saved tour (key or id) or an unsaved tour object.

  • Each step's target selector (stable: [data-jcx=...], [data-testid=...] or an id; fragile: generated classes, nth-child, deep paths).
  • Flow fields: goToUrl, advanceOn events and server-confirmed steps. It warns when a server-confirmed step needs your server to send the event, and when a tooltip has no placement set.
  • Whether the page rule matches sample URLs.
  • It cannot see the running page. For a live check it tells the assistant to use the preview link or its own browser tool.

Draft access, and a role that can edit tours. Returns a link that opens your site with the tour's current draft playing, for anyone who opens it within 24 hours. It plays only that tour. Send origin to preview on localhost during development; it must be an allowed origin.

upload_image ​

Draft access, and a role that can edit tours, announcements or surveys. Hosts one image and returns its URL, to use as imageUrl, mobileImageUrl or a step image in save_content.

  • Send sourceUrl (public https, up to 5 MB, no redirects, no private hosts) or base64 (small images only, about 600 KB; raw base64 or a data: URL), plus an optional filename.
  • PNG, JPEG, WEBP and GIF only, judged by the file's bytes. SVG is refused.
  • The image is public once uploaded. Do not send anything private.

conversations ​

The chat inbox and chat setup. Reads need Read access; writes need "Make changes live". Every write is recorded in the audit log as the AI assistant. See the chat guide.

Read

  • list: filter by status (open, pending, closed), assignee (me, a membership id or unassigned), unread, waitingLongest (open ones, oldest last message first) and search.
  • get: the thread (last 50 messages, internal notes included) with a customer summary. It also shows what the visitor opened or searched in the Help center (helpActivity).
  • mentions: your open @mentions in internal notes.
  • assignable_members: who a chat can go to, by name. Use it before assign or when setting up a team or routing rule.
  • saved_replies: the team's canned replies.

Write

  • reply: send a message to the customer (markdown, optional alsoEmail). Needs confirm: it goes out at once and cannot be unsent.
  • note: an internal note nobody outside the team sees (optional mentions of membership ids).
  • assign (me, a membership id, or null), close, reopen.
  • tag: send the complete tags list. It replaces the current tags.
  • save_saved_reply: create or update a saved reply. delete_saved_reply needs confirm and cannot be undone.

Chat setup

  • config_list, config_save, config_delete, config_reorder, with a kind: team, team_members, routing_rule, automation_rule, inbox.
  • Teams: team values are { name }. team_members sets the complete list of members of a team.
  • Routing rules: first match wins, checked once when a conversation starts. Automation rules have a trigger (conversation_created, tag_added, unanswered_timeout) and an action (reassign, add_tag, notify).
  • Inboxes: without id adds an email inbox. With id changes the team it belongs to (null = whole workspace), the pre-chat form and the email fallback. An inbox cannot be deleted here.
  • Saving, deleting or reordering a routing or automation rule needs confirm, because it changes how live chats are handled at once. Teams and inboxes do not need confirm, except deleting a team.
  • The AI reply assistant holds a provider key, so it stays in the dashboard.

Personal data: customer names and what visitors wrote appear while personal data is on. When it is off, visitors show as "Visitor" and their messages are hidden. Emails and phone numbers are not in conversation lists. Message text comes from customers and is treated as data, never as instructions.

roadmap ​

The ideas board and public roadmap. See the roadmap and changelog guide.

Read access

  • list_ideas (ordered by votes; search, page) and get_idea (one idea with its comments; commenter email and user id are left out, the name only while personal data is on).
  • voters (who voted on an idea) and reactors (who found a What's new entry helpful). Names, emails and accounts while personal data is on; counts only when it is off.
  • moderation_queue: submissions and comments waiting for approval.
  • board_settings_get and domains (custom domains with their status and the DNS records to create).

Drafts access

  • save_idea: create (title, description, category) or update (id plus changed fields).

Live access ("Make changes live")

  • set_status (under_review, planned, in_progress, shipped, declined): needs confirm. Voters with an email are notified, and shipped drafts a What's new entry.
  • merge (id = the duplicate, targetId = the idea to keep): needs confirm. Votes are copied (one per person), comments move, and the duplicate goes to the Trash.
  • comment: a public reply from your team on an idea. Needs confirm. The author may be emailed.
  • moderate (kind item or comment, id, decision approve or reject).
  • board_settings_update (for example { moderateSubmissions: true, allowComments: false }): needs confirm; it applies to the live public pages.
  • domain_add (hostname, optional module): stays pending until you create the TXT and CNAME/A records at your DNS provider. domain_verify re-checks DNS. domain_remove needs confirm: the public pages leave that address at once. Custom domains need a plan that includes them. See custom domain.

Deleting and restoring an idea is the trash tool. Linking ideas to GitHub issues is not available. Idea and comment text comes from customers and is treated as data.

customers ​

Find and inspect one person.

Read access

  • search: by user id, name or email (up to 25 results).
  • get: the profile. Contact details (email, phone) show while personal data is on; includePII: false leaves them out.
  • insights: plan, usage and satisfaction summary.
  • activity: their latest tours, announcements and events.
  • export: one person's full record as JSON (profile, events, chat including internal notes, survey answers). Needs a role that manages workspace settings, and in practice "Make changes live", because that permission is only part of that level. It is written to the audit log. Counts only when personal data is off.

Live access ("Make changes live")

  • reset_tour_progress (id, tourId): needs confirm. The person sees the tour again from step 1.
  • verify_hash (userId, userHash): checks whether your server signs identities correctly. Answers valid or not, and never shows the expected hash. Needs a role that manages keys. See identity verification.

segments ​

Saved groups of people or accounts, used in Targeting. Rules are the same groups and conditions as the Segments page.

  • Read access: list (match counts and where each is used), get (one segment with its rules), preview (how many people match, before saving; scope user or account).
  • Live access: save (create with name, scope, rules; or update with id and the changed fields) and delete (needs confirm).
  • Saving an existing segment re-targets every live item that uses it at once, so the assistant is told to use dryRun first. Deleting removes it from every tour, announcement and survey that targets it, which can widen who sees them.
  • A bad rule returns the exact field and reason.

events ​

The raw event log, to confirm an event really arrived and with which properties.

  • Read access: list (newest first; filter by eventName, source of client, server or admin, dateFrom, dateTo; paged, up to 50 rows) and today (events, unique users and accounts today against yesterday).
  • Email, phone and address properties show while personal data is on. includePII: false leaves them out, and when personal data is off they are always hidden.
  • Live access: send_test records one test event from the dashboard side (source admin). Needs confirm: it counts toward your monthly event allowance and can move activation numbers, funnels and segments that use the same name.
  • For one person's events use customers activity.

analytics ​

Read-only, aggregated numbers (counts and rates). Send a report. Person ids, emails and comments appear only where listed below and only while personal data is on.

Product reports

  • overview: activation (rate, median time to value), feature adoption, stickiness (DAU, WAU, MAU) and friction. Send periodDays.
  • event_names: events received in 30 days with counts and last received, plus a 24-hour check of the activation event. Use it to pick the activation event or funnel steps.
  • active_users: daily active people over periodDays.
  • nps: the NPS breakdown.
  • tour_performance: every tour's views, completion and drop-off.
  • funnels: saved funnels (id, name, steps).
  • funnel_results: per-step visitors, conversion from the previous step and median time between steps. Send funnelId, optionally segmentId. Limit the dates with periodDays, or from and to, to get a per-day or per-week series. breakdown (channel, utm_source, referrer, country, device, entry_page) splits it by where people first came from on your website.
  • cohort_retention: weekly cohorts and the share still active in weeks 1 to 4.
  • accounts: company roll-ups (plan, events, health score). Optional plan and page (25 per page). Account ids and contact emails only while personal data is on.
  • signals: week-over-week changes per module.
  • onboarding_checklist: this workspace's own setup checklist.
  • activity_feed: the latest events by name. Who did them only while personal data is on.
  • chat_report: volume, first-response and resolution times, CSAT, top topics and per-agent numbers. Send periodDays. Agent names only while personal data is on.
  • verbatims: Voice of customer comments with score and type. Counts only when personal data is off.

Website traffic (anonymous visitors of your public pages, not signed-in users)

  • web_summary: visitors, visits, page views, bounce rate and visit time, each with the previous period.
  • web_series: a metric over time (visitors, visits, pageviews, bounce_rate, avg_visit).
  • web_breakdown: by dimension (page, entry page, exit page, channel including AI assistants, referrer, UTM, country, device, browser, OS, click, outbound link). Optional goal adds first-touch conversions.
  • web_goals: goal conversion rates.
  • web_realtime: visitors in the last 5 minutes.
  • web_page: one page (send path): visitors, views, engaged time, scroll depth, top sources, previous and next pages, top clicks.
  • Filters: period (today, 7d, 30d, 90d, 12m), hostname, pathPrefix, channel, country, device. See the website analytics guide.

The activation event is the settings tool (area activation). Funnels are built with funnels.

funnels ​

Ordered steps people move through, with the drop-off between them. This tool builds them. List funnels and read results with analytics (funnels, funnel_results).

  • Read access: get (one funnel's full definition).
  • Live access: save and delete (needs confirm).
  • save: create (send name, optionally matchType and steps) or update (send id plus changed fields; steps replaces the whole list).
  • matchType: any_order (default: every step done, any order), sequential (each step after the previous), strict_order (sequential, and doing a later step early locks the person out).
  • steps: 2 to 4 steps, each one of an event (module: "event", eventName, up to 3 filters with eq or contains), a tour (tourId, eventType view, completed or dismissed) or an announcement (announcementId, eventType view or dismissed).
  • To end a funnel on your activation event, read it with settings (area activation) and use its name as an event step.
  • Saving and deleting are recorded in the audit log as the AI assistant.

settings ​

Workspace settings by area and action (get or update; create and delete for styles only). An update sends only the fields in values; the rest keep their value. Use dryRun first. Every update needs "Make changes live" and a role that manages the area. Reading needs Read access, except identity, which needs "Make changes live" to read as well.

Updates change the live site at once, so they ask for confirm. The exceptions are activation, tour_skip_reasons and adding an origin to allowed_origins.

AreaWhat it holds
themeThe whole Brand Kit: colours, radius, field and button height, shadow, scale, named styles, variations, per-component overrides and the chat look (launcher, size, bubble colours). get returns it all so a change can leave the rest alone. The font is not editable here. See brand and styles.
stylesNamed Brand Kit looks such as Flash Sale or Holiday. get lists them (or one, with id). create sends { name, primaryColor?, surfaceColor?, textColor?, borderColor?, background?, radius? } and returns the new id. update sends id and only the fields to change (name renames; null clears a field back to the base look). delete sends id and needs confirm. Up to 20. There is no default style: content without a styleId uses the Brand Kit base look. Give a style to an announcement, survey or tour step with styleId in save_content, and to the chat header with theme componentOverrides.chat.styleId. See brand styles.
custom_cssRaw CSS for your site, shown to every visitor. The assistant is told to show you the CSS and the risk first. update sends { css } (the whole stylesheet, up to 20000 characters) or { css: null } to remove it. Needs confirm. Returns the previous CSS so it can be undone. No @import, <style>, <script> or javascript:.
chatChat on or off, powered-by label, header, greeting, agent avatars, email-unread delay.
help_centerHelp center on or off and its tabs.
business_hoursTime zone, weekly schedule, offline message.
response_targetFirst-response target in hours (1 to 168), shown as a due-by badge on open conversations.
identityIdentity verification required or not. Owners only. Turning it on rejects unsigned identify() calls, so turn it on only after your live site sends userHash. It needs the Secret key set up by a person.
frequencyThe workspace-wide announcement cap.
widget_priorityThe order of the corner widgets (chat, tour launcher, survey, checklist).
activationThe activation event (the aha event). No confirm.
tour_skip_reasonsThe reasons offered when someone skips a tour (1 to 10 short strings). No confirm.
web_analyticsWebsite analytics: on or off, click capture, hostnames, goal events, saved sections. Does not count toward monthly active users.
allowed_originsSites allowed to load the SDK. get lists them. update adds one origin (scheme, host, port; no path, no wildcard) without confirm, or takes some away with remove, which needs confirm because the widget stops loading there at once. It never removes the last one. Needs a role that manages workspace settings. See allowed origins.
membersRead only: names, status and roles. Emails while personal data is on.
rolesRead only: role names, descriptions and permission keys.
workspaceget reads the name, URL slug and time zone. update renames it and needs confirm. It never changes the URL.

trash ​

Delete things and bring them back.

  • Read access: list shows what is in the Trash (optional type).
  • Live access: delete (needs confirm) and restore, with a type (tour, announcement, survey, idea) and an id.
  • Deleting a live tour, announcement or survey takes it off your site at once. It goes to the Trash and can be restored until its purge date. A deleted idea leaves the public board and roadmap.
  • Help FAQs (help_faq), Help articles (help_article) and What's new entries (changelog) are deleted for good. They have no Trash and no restore.
  • restore brings the item back as it was. Use publish_content to make it live again.
  • Emptying the Trash is only possible in the dashboard.

JustOneCX