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 anaction(analyticstakes areport,settingsalso takes anarea). The action decides what it does and what it needs. confirm: an action marked "needsconfirm" is refused until the call carriesconfirm: 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 acceptdryRunto 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.
| Tool | Job |
|---|---|
workspace_status, where_to, get_install_info | Setup and "where do I do this" |
get_content, save_content, publish_content | Tours, announcements, surveys, What's new, Help center |
validate_tour, get_tour_preview_link, upload_image | Check and preview a tour, host an image |
conversations | Chat inbox and chat setup |
roadmap | Ideas board, public roadmap, custom domains |
customers, segments, events | People, groups of people, raw events |
analytics, funnels | Numbers and funnels |
settings | Workspace settings and brand |
trash | Delete 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;cookieDomainfor 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
keyorid: lists items (key, name, live or draft). Filter withsearch,status(draftorlive) andpageRule(tours, announcements, surveys). Lists are 50 per page: sendpage; the answer hastotalandhasMore. - With
keyorid: 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: useidorsearch. includeadds more:stats: aggregate numbers (tours, announcements, surveys). For tours,segmentByalso splits people started and finished by a trait such asplan. 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. SendresponsesPage.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 (seepublish_content).templates: withtype: "tour"and no key, lists tour templates.publicTemplates: truebrowses 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,fieldsand akey(suggested from the name or title if you leave it out). Every new tour, announcement and survey needsfields.purpose, one line on why it exists.fields.notesis optional. - Update: send
keyorid,expectedVersion(fromget_content) and only the fields to change. Clear a field by sendingnull. - Tours: edit single steps with
stepOps(add,update,remove,move) instead of resending all steps. - Images: use the URL from
upload_imageasimageUrl. - A/B test: set up a
varianton a tour or announcement. Changing the variant on a live item needsconfirm. - 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). Needsconfirm. Help center changes need "Make changes live". - On a live item, edits that change what users see need "Make changes live".
- Tour templates:
fromTemplateId(withfields.name) creates a draft tour from a template.saveAsTemplate(withkeyorid) saves a tour as a private template. Both needconfirmand "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. Needsconfirm.announceInApp(What's new, withpublished: true): also posts a live in-app banner pointing at the entry. Needsconfirm.
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,advanceOnevents 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.
get_tour_preview_link
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) orbase64(small images only, about 600 KB; raw base64 or adata:URL), plus an optionalfilename. - 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 bystatus(open,pending,closed),assignee(me, a membership id orunassigned),unread,waitingLongest(open ones, oldest last message first) andsearch.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 beforeassignor when setting up a team or routing rule.saved_replies: the team's canned replies.
Write
reply: send a message to the customer (markdown, optionalalsoEmail). Needsconfirm: it goes out at once and cannot be unsent.note: an internal note nobody outside the team sees (optionalmentionsof membership ids).assign(me, a membership id, ornull),close,reopen.tag: send the complete tags list. It replaces the current tags.save_saved_reply: create or update a saved reply.delete_saved_replyneedsconfirmand cannot be undone.
Chat setup
config_list,config_save,config_delete,config_reorder, with akind:team,team_members,routing_rule,automation_rule,inbox.- Teams:
teamvalues are{ name }.team_memberssets 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
idadds an email inbox. Withidchanges 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 needconfirm, 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) andget_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) andreactors(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_getanddomains(custom domains with their status and the DNS records to create).
Drafts access
save_idea: create (title, description, category) or update (idplus changed fields).
Live access ("Make changes live")
set_status(under_review,planned,in_progress,shipped,declined): needsconfirm. Voters with an email are notified, andshippeddrafts a What's new entry.merge(id= the duplicate,targetId= the idea to keep): needsconfirm. 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. Needsconfirm. The author may be emailed.moderate(kinditemorcomment,id,decisionapproveorreject).board_settings_update(for example{ moderateSubmissions: true, allowComments: false }): needsconfirm; it applies to the live public pages.domain_add(hostname, optionalmodule): stays pending until you create the TXT and CNAME/A records at your DNS provider.domain_verifyre-checks DNS.domain_removeneedsconfirm: 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: falseleaves 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): needsconfirm. 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;scopeuseroraccount). - Live access:
save(create withname,scope,rules; or update withidand the changed fields) anddelete(needsconfirm). - Saving an existing segment re-targets every live item that uses it at once, so the assistant is told to use
dryRunfirst. 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 byeventName,sourceofclient,serveroradmin,dateFrom,dateTo; paged, up to 50 rows) andtoday(events, unique users and accounts today against yesterday). - Email, phone and address properties show while personal data is on.
includePII: falseleaves them out, and when personal data is off they are always hidden. - Live access:
send_testrecords one test event from the dashboard side (sourceadmin). Needsconfirm: 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
customersactivity.
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. SendperiodDays.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 overperiodDays.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. SendfunnelId, optionallysegmentId. Limit the dates withperiodDays, orfromandto, 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). Optionalplanandpage(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. SendperiodDays. 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: ametricover time (visitors,visits,pageviews,bounce_rate,avg_visit).web_breakdown: bydimension(page, entry page, exit page, channel including AI assistants, referrer, UTM, country, device, browser, OS, click, outbound link). Optionalgoaladds first-touch conversions.web_goals: goal conversion rates.web_realtime: visitors in the last 5 minutes.web_page: one page (sendpath): 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:
saveanddelete(needsconfirm). save: create (sendname, optionallymatchTypeandsteps) or update (sendidplus changed fields;stepsreplaces 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 3filterswitheqorcontains), a tour (tourId,eventTypeview,completedordismissed) or an announcement (announcementId,eventTypeviewordismissed).- To end a funnel on your activation event, read it with
settings(areaactivation) 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.
| Area | What it holds |
|---|---|
theme | The 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. |
styles | Named 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_css | Raw 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:. |
chat | Chat on or off, powered-by label, header, greeting, agent avatars, email-unread delay. |
help_center | Help center on or off and its tabs. |
business_hours | Time zone, weekly schedule, offline message. |
response_target | First-response target in hours (1 to 168), shown as a due-by badge on open conversations. |
identity | Identity 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. |
frequency | The workspace-wide announcement cap. |
widget_priority | The order of the corner widgets (chat, tour launcher, survey, checklist). |
activation | The activation event (the aha event). No confirm. |
tour_skip_reasons | The reasons offered when someone skips a tour (1 to 10 short strings). No confirm. |
web_analytics | Website analytics: on or off, click capture, hostnames, goal events, saved sections. Does not count toward monthly active users. |
allowed_origins | Sites 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. |
members | Read only: names, status and roles. Emails while personal data is on. |
roles | Read only: role names, descriptions and permission keys. |
workspace | get 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:
listshows what is in the Trash (optionaltype). - Live access:
delete(needsconfirm) andrestore, with atype(tour,announcement,survey,idea) and anid. - 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 norestore. restorebrings the item back as it was. Usepublish_contentto make it live again.- Emptying the Trash is only possible in the dashboard.