Browse the docs
Overview
Start here
Websites
CMS
Forms and integrations
Analytics
Experiments
Proactive improvements
SEO and AI search
Team and account
Migrating
For agents and developers
Troubleshooting

DocsFor agents and developers

MCP reference

Look up every tool the Sherpa MCP server gives an agent, with what it does and what it takes.

Everything a person can do on a Sherpa website is a tool an agent can call. This page lists every one, grouped by job, with whether it reads or writes and what it takes.

The server is at https://www.withsherpa.ai/mcp. New to it? Read How the Sherpa MCP works first.

Kind is Read when a tool never changes anything and Write when it does. Every tool also takes an optional rationale.

Find and read

ToolKindWhat it doesTakes
list_websitesReadLists the workspaces the person belongs to, their role, and each website's id, name, address and dashboard linksNothing
list_filesReadLists a website's files with their sizes, from the published website or a change, optionally under one directorywebsite_id, change_id, directory, ref
read_fileReadReads a file. Text comes back up to 2,000 lines at a time. PNG, JPEG, GIF and WebP come back as imageswebsite_id, path, change_id, ref, start_line, end_line
search_filesReadSearches text files for a word, phrase or regular expression and returns matching lines with paths and line numberswebsite_id, query, change_id, regex, case_sensitive, directory, extension, max_results
get_file_historyReadLists the commits that changed a file, newest firstchange_id, path, limit
screenshot_pageReadCaptures a page of the live website or of a ready preview and returns the imagewebsite_id, path, deployment_id, device, full_page

Changes

ToolKindWhat it doesTakes
start_changeWriteStarts a change, a separate branch copied from the live site. Returns the change id and the website's guide, skills and knowledge. Pass from_preview to build on someone's previewwebsite_id, title, from_preview
list_changesReadLists changes in progress, newest first, including teammates'website_id, include_finished
get_changeReadA change's status. Its latest commit, whether the live site has moved on, the files it changes, its latest preview and its reviewchange_id
edit_filesWriteApplies edits in order as one commit. Replace exact text, write a whole file, delete or move. Files under .github/ cannot be changedchange_id, message, edits
get_change_diffReadShows what a change does compared with the live site, per filechange_id, path
import_fileWriteAdds any file up to 25 MB at a path. Image paths are converted to that format and scaled down. Takes one source, a url, a file or an upload_idchange_id, path, url or file or upload_id, max_width
create_uploadWriteFor an attached file the client cannot pass to a tool, such as in Claude. Returns a one-time upload URL and the command that sends the file from the agent's sandboxwebsite_id
install_packagesWriteAdds, upgrades or removes npm packages and commits the lockfile. Install scripts never runchange_id, add, remove, dev
revert_filesWritePuts some of a change's files back to how they are on the live site, or at an earlier commit of the changechange_id, paths, to
sync_changeWriteMerges the live site into the change when it has moved on. Returns conflicting files if both changed the same oneschange_id
resolve_conflictsWriteFinishes that merge. For every conflicting file, pass the merged content or keep one sidechange_id, main_commit, files
discard_changeWriteWithdraws a change's review and archives it, only when the person asks. A published change cannot be discardedchange_id
restore_changeWriteBrings back a discarded change. Its old review is not reopenedchange_id

Preview and publish

ToolKindWhat it doesTakes
preview_changeWriteBuilds a shareable preview link. Each build adds a numbered version. Waits about 45 seconds. A failed build returns the end of its logchange_id, link (new or update), note
get_preview_statusReadChecks a preview build. Ready with its link, still building, or failed with the end of its logdeployment_id
list_preview_linksReadLists a website's preview links, newest first, with each link's versions and noteswebsite_id, offset
read_preview_commentsReadReads reviewers' comment threads on a preview link, across all its versions, with the page and element each points atpreview_id, status, thread_id, offset
read_comment_imageReadReturns an image attached to a preview commentpreview_id and the image's id
submit_changeWriteSubmits the change for review and returns the review link, only when the person asks to publish. They open it and press Publish. Refuses while CMS content would block publishingchange_id

CMS

ToolKindWhat it doesTakes
get_cms_schemaReadDescribes the CMS files. Each collection's _collection.json, each entry's file, field types and the rich text formatNothing
validate_cmsReadChecks a change's cms/ files the way publishing does. Run it after editing content and fix every issuechange_id
import_cms_imageWriteAdds an image to the CMS image library and returns its asset id, which image fields storewebsite_id, filename, url or file or upload_id

Forms

ToolKindWhat it doesTakes
manage_formsWriteLists, reads, creates and updates a website's forms, and lists their submissions. A form must exist in Sherpa before the website can submit to itwebsite_id, operation, input

Analytics and funnels

ToolKindWhat it doesTakes
get_analytics_schemaReadDescribes the tables, columns and query rules for one analytics source. Read it before writing a querysource
query_analyticsReadRuns one read-only query. SQL for sherpa, HogQL for posthog, a report request for ga4. Filter by time and add a limitwebsite_id, source, query
list_funnelsReadLists a website's saved funnels with their keys and stepswebsite_id
get_funnelReadReads one saved funnel's full definitionwebsite_id, key
create_funnelWriteSaves a funnel. Each step is one condition on a single event. Saving test-runs each step over the last 7 days and warns when one matches nothingwebsite_id, definition
update_funnelWriteReplaces a saved funnel's definition, keeping its keywebsite_id, key, definition
delete_funnelWriteDeletes a saved funnel, only when the person askswebsite_id, key

Experiments

ToolKindWhat it doesTakes
validate_experimentsReadChecks the experiment definitions in a change. Experiments are authored in sherpa.experiments.json and rendered in the pagechange_id
list_experimentsReadLists current experiment runs and the 50 most recent ended ones, with status, versions and trafficwebsite_id
get_experiment_resultsReadMeasures one run. Visitors per version and conversion through a funnel, with statistics that stay valid however often you lookwebsite_id, experiment_id, funnel, refresh
set_experiment_stateWriteLaunches, pauses, resumes or ends a published run, only when the person asks. Ending is permanentwebsite_id, experiment_id, action
set_experiment_allocationsWriteSets the share of visitors each version gets, only when the person asks. Changing a running split moves some visitors to another versionwebsite_id, experiment_id, allocations

Domains

ToolKindWhat it doesTakes
list_domainsReadLists custom domains, whether each is connected and the DNS records still neededwebsite_id
add_domainWriteConnects a domain the person owns and returns the DNS records to create. Adding the bare domain or www connects the other toowebsite_id, hostname
check_domainWriteChecks a domain's DNS records and certificate nowwebsite_id, hostname
set_primary_domainWriteMakes one connected domain the main address. The others then redirect to itwebsite_id, hostname
remove_domainWriteDisconnects a domain, only when the person askswebsite_id, hostname

Domain tools are for workspace admins.

Team and workspaces

ToolKindWhat it doesTakes
list_membersReadLists who can work on a workspace's websites, with roles and pending invitesworkspace_id
invite_memberWriteEmails an invitation. Only when the person asks in their own message, with the email and role they gaveworkspace_id, email, role, client
cancel_inviteWriteCancels a pending invite so its link stops working. Admins onlyworkspace_id, email
change_member_roleWriteMakes a member an admin or a member. Admins only. A workspace keeps at least one adminworkspace_id, email, role
remove_memberWriteRemoves someone from the workspace. Admins only. Confirm with the person firstworkspace_id, email
create_workspaceWriteCreates a workspace. Agency accounts onlyname
create_websiteWriteCreates a website in a workspace and starts its first deploymentworkspace_id, name, subdomain

Feedback

ToolKindWhat it doesTakes
send_feedbackWriteSends the Sherpa team one message when something about Sherpa made the work hardermessage, website_id

Common questions

Which tools change something?

Each tool is marked Read or Write in the Kind column. Read tools never change anything.

How does an agent get a change published?

It calls submit_change, which sends the change for review. A person presses Publish.

What is the rationale argument?

An optional note every tool takes, saying why the agent is calling it.

Example prompts

Each one works as written in Claude or ChatGPT once Sherpa is connected. Swap in your own pages and dates.

List every Sherpa tool you have and group them by what they do.

Your agent's own view of this page.

Which of your Sherpa tools can change my website, and which only read?

The same Read and Write split, from the agent's side.

List my websites, then list the files under src/pages for the first one.

Two read-only calls that show the tools working.

Next

See your own site on Sherpa.

  1. TodayPick a timePick a time
  2. Before the callWe copy your site over, freeWe copy it, free
  3. On the callYou take it for a spinTry it live
You'll talk to Ethan, Sherpa's founder.

Loading times…

Open the booking page in a new tab ↗