MCP tools: overview

The AI assistant works on your sites through 24 Sajto tools. You do not need to know them or call them by hand: the assistant chooses them itself, depending on what you ask for. This part of the handbook describes each of them so that you know what is happening and can verify it.

Tools by group

GroupToolsWhat they are for
Sitessite_create, site_list, site_get, site_update_settings, site_publish, site_validate, site_history, site_diff, site_rollbackCreating a site, settings, validation, publishing, history, rollback
Filesfile_list, file_read, file_write, file_patch, file_delete, file_moveReading and editing the files of the working copy
Imagesasset_upload, asset_fetch, asset_placeholder, asset_faviconImages, placeholder images and the site icon
Referencesreference_analyzeAnalysing a site you take inspiration from
Domainsdomain_add, domain_list, domain_verify, domain_removeConnecting custom domains

Besides the tools, Sajto provides the new_site and review_site commands and helper materials for the assistant. They are described in the chapter Templates and resources.

A typical workflow

  1. A new site: site_create (optionally with a template and the addresses of reference sites).
  2. Plan and inspiration: reference_analyze for sites you like.
  3. Building: file_write for new files, file_patch for small changes, asset_* for images.
  4. Checking: site_validate and fixing all errors, then the warnings that matter.
  5. Reviewing changes: site_diff shows exactly what will be published.
  6. Publishing: site_publish returns the address and the version number.
  7. Later changes: site_get at the start of work on an existing site, and in case of trouble site_history and site_rollback.

Working copy and public site

The tools from the Files and Images groups change only the working copy. Visitors see changes only after site_publish (or after a few seconds if you turn on automatic publishing in site_update_settings). More in the chapter Versions and publishing.

Read-only tools

Some tools change nothing and can be called safely: site_list, site_get, site_validate, site_history, site_diff, file_list, file_read and domain_list. In the descriptions they are marked “read-only”.

Call limits

An account can make up to 120 tool calls per minute. When the limit is exceeded, the assistant gets a message with the waiting time and should wait a moment instead of retrying in a loop. All limits are collected in the chapter Limits and plans.

Was this page helpful?