---
title: "MCP Tools Reference"
description: "Complete reference for all 88 tools exposed by the Hosted EZ MCP Server (mcp.hostedez.com), grouped by category with required parameters, optional parameters, and OAuth scopes."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.hostedez.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Tools Reference

The Hosted EZ MCP Server (`https://mcp.hostedez.com/mcp`) exposes **88 tools** across 13 categories. Every tool enforces live OAuth 2.1 scope verification (`account:read`, `sites:read`, or `sites:write`) on every request.

> **Site & resource identifiers**
>
> Site tools accept either a site UUID or its prefixed `sit_` slug as `siteId`. Databases use `db_` IDs, backups use `bkp_` IDs, email domains use `emd_` IDs, mailboxes use `mbx_` IDs, aliases use `mal_` IDs, and filter rules use `flt_` IDs.

## Account & Sites (7)

| Tool | Required Params | Optional Params | Scope | Description |
| --- | --- | --- | --- | --- |
| `get_account` | — | — | `account:read` | Get your Hosted EZ account identity and current resource usage (sites, storage, mailboxes). |
| `list_sites` | — | `limit` | `sites:read` | List non-deleted Hosted EZ sites owned by your account (1–100, default 50). |
| `get_site` | `siteId` | — | `sites:read` | Fetch full details for one Hosted EZ site by UUID or `sit_` slug. |
| `create_site` | `name`, `app` | `adminUser`, `adminEmail`, `includeDatabase`, `staticConfig` | `sites:write` | Create a new WordPress, Nextcloud, Laravel, Drupal, PHP, or Static site and queue provisioning. |
| `start_migration` | `address`, `currentHost` | `includesEmail` | `sites:write` | Start migrating an existing website from another hosting provider to Hosted EZ. |
| `confirm_dns` | `siteId` | — | `sites:write` | Confirm that DNS records have been updated for a site's custom domain and trigger verification. |
| `delete_site` | `siteId` | — | `sites:write` | Queue permanent deletion of one of your Hosted EZ sites. |

## Application Catalog & Staging (5)

| Tool | Required Params | Optional Params | Scope | Description |
| --- | --- | --- | --- | --- |
| `list_apps` | — | — | `sites:read` | List supported application templates (WordPress, Nextcloud, Laravel, Drupal, Custom PHP) with PHP version and database requirements. |
| `get_staging_site` | `siteId` | — | `sites:read` | Get staging clone details and last sync timestamp for a live Hosted EZ site. |
| `create_staging_site` | `siteId` | — | `sites:write` | Create an isolated 1-click staging clone of a live site (copies files and clones MariaDB database if present). |
| `push_staging_to_live` | `siteId` | `includeFiles`, `includeDatabase` | `sites:write` | Push staging files (preserving live `wp-config.php`) and/or MariaDB database to live and purge live caches. |
| `delete_staging_site` | `siteId` | — | `sites:write` | Permanently delete the staging clone, its staging MariaDB database, and preview DNS for a live site. |

## Static Delivery & Deployments (4)

| Tool | Required Params | Optional Params | Scope | Description |
| --- | --- | --- | --- | --- |
| `get_site_static_config` | `siteId` | — | `sites:read` | Get static site delivery settings (SPA fallback, clean URLs, custom 404 page, custom headers, allowed headers, ETag). |
| `update_site_static_config` | `siteId`, `spaFallback`, `cleanUrls` | `notFoundPage`, `customHeaders`, `ifMatch` | `sites:write` | Update static site delivery settings (SPA fallback, clean URLs, custom 404 page, and allowlisted response headers). |
| `list_site_deployments` | `siteId` | `limit` | `sites:read` | List versioned archive deployments and rollback eligibility for a Hosted EZ static website. |
| `rollback_site_deployment` | `siteId`, `deploymentId` | `note` | `sites:write` | Atomically roll back a Hosted EZ static site to a retained prior deployment snapshot and purge CDN cache if active. |

## Site Files (6)

| Tool | Required Params | Optional Params | Scope | Description |
| --- | --- | --- | --- | --- |
| `list_site_files` | `siteId` | `path` | `sites:read` | List files and directories inside one of your Hosted EZ sites. |
| `read_site_file` | `siteId`, `path` | — | `sites:read` | Read a file inside a Hosted EZ site (up to 2 MiB; UTF-8 text or base64 for binary files). |
| `write_site_file` | `siteId`, `path`, `content` | `encoding`, `createParents` | `sites:write` | Atomically create or overwrite a file inside a Hosted EZ site (UTF-8 or base64, up to 10 MiB). |
| `create_site_directory` | `siteId`, `path` | — | `sites:write` | Create a new directory inside one of your Hosted EZ sites. |
| `rename_site_file` | `siteId`, `from`, `to` | — | `sites:write` | Move or rename a file or directory inside one of your Hosted EZ sites. |
| `delete_site_file` | `siteId`, `path` | `recursive` | `sites:write` | Delete a file or directory inside a Hosted EZ site (the site root cannot be deleted). |

## SFTP & SSH Keys (4)

| Tool | Required Params | Optional Params | Scope | Description |
| --- | --- | --- | --- | --- |
| `get_site_sftp` | `siteId` | — | `sites:read` | Get SFTP connection details (`sftp.hostedez.com:22`, username, password status) and authorized SSH public keys. |
| `add_site_sftp_key` | `siteId`, `label`, `publicKey` | — | `sites:write` | Authorize an OpenSSH public key for SFTP access to one of your Hosted EZ sites. |
| `delete_site_sftp_key` | `siteId`, `keyId` | — | `sites:write` | Revoke an authorized SFTP SSH public key from one of your Hosted EZ sites. |
| `rotate_site_sftp_password` | `siteId` | — | `sites:write` | Generate and set a new SFTP password for a site (returned once in plaintext, never stored or logged). |

## Terminal & CLI Commands (3)

| Tool | Required Params | Optional Params | Scope | Description |
| --- | --- | --- | --- | --- |
| `run_site_command` | `siteId`, `command` | `cwd`, `timeoutSeconds` | `sites:write` | Run a non-interactive WP-CLI, Composer, PHP, Artisan, Drush, or shell command inside a site's sandbox (5–300s timeout). |
| `list_site_terminal_history` | `siteId` | — | `sites:read` | List recent interactive browser terminal sessions and non-interactive CLI command runs (including outputs) for a site. |
| `cancel_site_command` | `siteId`, `targetId` | — | `sites:write` | Cancel a running non-interactive command (`trm_...`) or active browser terminal session (`trs_...`) on a site. |

## WordPress & Managed App Admin (2)

| Tool | Required Params | Optional Params | Scope | Description |
| --- | --- | --- | --- | --- |
| `get_site_wordpress` | `siteId` | — | `sites:read` | Get WordPress installation status, `wp-admin` URL, admin username/email, linked database ID, and credential readiness. |
| `get_site_admin` | `siteId` | — | `sites:read` | Get auto-installation status, login URL, admin username/email, and linked database ID for WordPress, Nextcloud, or Drupal sites. |

## Custom Domains & Domain Search (5)

| Tool | Required Params | Optional Params | Scope | Description |
| --- | --- | --- | --- | --- |
| `connect_domain` | `siteId`, `domain` | `mode`, `includeEmail` | `sites:write` | Attach a custom domain hostname to a site (`auto` or manual DNS routing mode) and return DNS onboarding instructions. |
| `list_site_domains` | `siteId` | — | `sites:read` | List all custom domains attached to a site, including routing mode, nameservers, verification tokens, and required DNS records. |
| `verify_site_domain` | `siteId`, `domainId` | — | `sites:write` | Trigger immediate DNS and nameserver verification for a custom domain attached to a site. |
| `remove_site_domain` | `siteId`, `domainId` | — | `sites:write` | Detach and remove a custom domain from one of your Hosted EZ sites. |
| `search_domains` | `query` | — | `sites:read` | Check live domain availability and registration/renewal pricing across all supported TLDs. |

## Caching & Global Edge CDN (5)

| Tool | Required Params | Optional Params | Scope | Description |
| --- | --- | --- | --- | --- |
| `get_site_performance` | `siteId` | — | `sites:read` | Get page/object caching status, live cached page metrics, and Global Edge CDN status for a site. |
| `update_site_cache` | `siteId` | `pageCacheEnabled`, `objectCacheEnabled` | `sites:write` | Enable or disable static full-page caching and/or APCu object caching on a site. |
| `purge_site_cache` | `siteId` | — | `sites:write` | Purge cached static HTML pages and instantly invalidate APCu object cache for a site. |
| `enable_site_cdn` | `siteId` | — | `sites:write` | Enable Hosted EZ Global Edge CDN for a site (requires Pro plan or Global Edge CDN add-on). |
| `disable_site_cdn` | `siteId` | — | `sites:write` | Disable Hosted EZ Global Edge CDN and remove the backing CDN distribution for a site. |

## Offsite Backups (4)

| Tool | Required Params | Optional Params | Scope | Description |
| --- | --- | --- | --- | --- |
| `list_site_backups` | `siteId` | — | `sites:read` | List offsite `.tar.zst` backups for a site (newest first) alongside backup schedule and retention policy. |
| `create_site_backup` | `siteId` | `label`, `includeFiles`, `includeDatabase` | `sites:write` | Start an asynchronous on-demand offsite backup of a site's files and/or database. |
| `restore_site_backup` | `siteId`, `backupId`, `confirm` | `restoreFiles`, `restoreDatabase` | `sites:write` | Restore a ready backup onto its site (`confirm: true` required); takes a pre-restore safety snapshot first. |
| `delete_site_backup` | `siteId`, `backupId` | — | `sites:write` | Permanently delete a site backup and its offsite archive (refused while creating or restoring). |

## Managed MariaDB Databases (11)

| Tool | Required Params | Optional Params | Scope | Description |
| --- | --- | --- | --- | --- |
| `list_databases` | — | — | `sites:read` | List MariaDB databases owned by your account alongside plan database and storage quotas. |
| `get_database` | `databaseId` | — | `sites:read` | Fetch metadata and connection host details for one MariaDB database by `db_` ID. |
| `create_database` | `name` | `siteId` | `sites:write` | Provision a new isolated MariaDB database, optionally linked to one of your sites. |
| `get_database_usage` | `databaseId` | `refresh` | `sites:read` | Inspect live storage usage, table breakdown, and plan storage quota for a MariaDB database. |
| `list_database_tables` | `databaseId` | — | `sites:read` | List tables, storage engines, row estimates, and byte sizes inside a MariaDB database. |
| `browse_database_table` | `databaseId`, `table` | `limit`, `offset` | `sites:read` | Inspect column definitions and paginated rows (1–200, default 50) from a MariaDB table. |
| `run_database_query` | `databaseId`, `sql` | — | `sites:write` | Execute a SQL statement against an isolated MariaDB database and return structured results. |
| `export_database_sql` | `databaseId` | `tables`, `schemaOnly`, `includeDropTable`, `gzipBase64` | `sites:read` | Export schema and rows (or DDL only) as a portable `.sql` or base64 `.sql.gz` dump (up to 2 MiB inline). |
| `import_database_sql` | `databaseId` | `sql`, `contentBase64`, `ignoreDatabaseStatements`, `disableForeignKeyChecks` | `sites:write` | Execute a `.sql` or base64 `.sql.gz` dump against a MariaDB database (up to 4 MiB inline). |
| `rotate_database_password` | `databaseId` | — | `sites:write` | Queue password rotation for the isolated MariaDB user of a database. |
| `delete_database` | `databaseId` | — | `sites:write` | Permanently delete a MariaDB database and its isolated user. |

## Email Domains, Mailboxes & Aliases (12)

| Tool | Required Params | Optional Params | Scope | Description |
| --- | --- | --- | --- | --- |
| `list_email_domains` | — | — | `sites:read` | List email domains with MX/SPF/DKIM/DMARC verification status, required DNS records, and IMAP/SMTP settings. |
| `enable_email_domain` | `domain` | `siteId`, `dmarcPolicy`, `catchAllTarget` | `sites:write` | Enable Hosted EZ Email for a domain, generate an RSA-2048 DKIM key, and auto-provision Hosted EZ DNS records. |
| `verify_email_domain_dns` | `domainId` | — | `sites:write` | Run live DNS verification checks for MX, SPF, DKIM, and DMARC records on an email domain. |
| `delete_email_domain` | `domainId` | — | `sites:write` | Permanently delete an email domain along with all of its mailboxes, aliases, and stored messages. |
| `list_mailboxes` | — | `domainId` | `sites:read` | List Hosted EZ Email mailboxes (optionally filtered by `domainId`) alongside IMAP/SMTP settings. |
| `create_mailbox` | `domainId`, `localPart` | `displayName`, `password`, `quotaMb` | `sites:write` | Create a new mailbox on an enabled email domain and return its one-time initial password. |
| `update_mailbox` | `mailboxId` | `displayName`, `quotaMb`, `status` | `sites:write` | Update a mailbox's display name, storage quota (MB), or status (`active` / `suspended`). |
| `reset_mailbox_password` | `mailboxId` | `password` | `sites:write` | Reset a mailbox password (auto-generating a strong password if omitted) and return the new one-time password. |
| `delete_mailbox` | `mailboxId` | — | `sites:write` | Permanently delete an email mailbox and all of its stored folders and messages. |
| `list_email_aliases` | — | `domainId` | `sites:read` | List email aliases and forwarders owned by your account, optionally filtered by `domainId`. |
| `create_email_alias` | `domainId`, `sourceLocalPart`, `destinations` | — | `sites:write` | Create an email alias/forwarder routing to one or more local or external email addresses (up to 20). |
| `delete_email_alias` | `aliasId` | — | `sites:write` | Delete an email alias by its `mal_` ID. |

## Email Branding, Autoresponders, Filters & Mail Queue (20)

| Tool | Required Params | Optional Params | Scope | Description |
| --- | --- | --- | --- | --- |
| `get_email_branding` | `domainId` | — | `sites:read` | Get white-label webmail branding settings (custom hostname, CNAME record, colors, theme, assets, footer). |
| `update_email_branding` | `domainId` | `webmailHostname`, `brandName`, `accentColor`, `surfaceTint`, `defaultTheme`, `footerText`, `hidePoweredBy` | `sites:write` | Update white-label webmail branding configuration for an email domain. |
| `verify_webmail_hostname` | `domainId` | — | `sites:write` | Verify live DNS CNAME routing for an email domain's custom webmail hostname and activate it. |
| `delete_email_branding_asset` | `domainId`, `kind` | — | `sites:write` | Delete an uploaded white-label webmail branding asset (`logo`, `logo_dark`, `favicon`, or `login_bg`). |
| `list_email_autoresponders` | — | `domainId` | `sites:read` | List mailbox vacation/out-of-office autoresponders owned by your account, optionally filtered by `domainId`. |
| `get_email_autoresponder` | `mailboxId` | — | `sites:read` | Get vacation/out-of-office autoresponder configuration and reply statistics for a mailbox. |
| `set_email_autoresponder` | `mailboxId`, `enabled` | `subject`, `bodyText`, `startsAt`, `endsAt`, `intervalHours`, `resetHistory` | `sites:write` | Configure or update a mailbox autoresponder, schedule window, and per-sender reply cooldown. |
| `delete_email_autoresponder` | `mailboxId` | — | `sites:write` | Delete a mailbox autoresponder configuration and clear its per-sender cooldown history. |
| `list_email_filter_rules` | — | `mailboxId`, `domainId` | `sites:read` | List visual inbound email filter rules, optionally filtered by `mailboxId` or `domainId`. |
| `create_email_filter_rule` | `mailboxId`, `name`, `conditions`, `actions` | `enabled`, `priority`, `matchMode`, `stopProcessing` | `sites:write` | Create a visual inbound email filter rule (compiled to Sieve) on a mailbox. |
| `update_email_filter_rule` | `ruleId` | `name`, `enabled`, `priority`, `matchMode`, `conditions`, `actions`, `stopProcessing` | `sites:write` | Update an existing visual email filter rule's name, state, priority, conditions, actions, or stop flag. |
| `delete_email_filter_rule` | `ruleId` | — | `sites:write` | Delete a visual email filter rule by its `flt_` ID. |
| `reorder_email_filter_rules` | `mailboxId`, `ruleIds` | — | `sites:write` | Atomically reorder all visual email filter rules on a mailbox by providing the full ordered `ruleIds` list. |
| `get_email_sieve_script` | `mailboxId` | — | `sites:read` | Get a mailbox's custom RFC 5228 Sieve script, supported capabilities, and compiled visual-rules preview. |
| `set_email_sieve_script` | `mailboxId`, `enabled` | `script` | `sites:write` | Validate and save a custom RFC 5228 Sieve script for a mailbox. |
| `test_email_filters` | `mailboxId` | `from`, `to`, `subject`, `body`, `sizeBytes`, `rawHeaders`, `script` | `sites:read` | Run a read-only dry-run evaluation of a mailbox's visual filter rules and custom/draft Sieve script. |
| `list_mail_queue` | — | `domainId`, `mailboxId`, `status`, `search`, `limit`, `cursor` | `sites:read` | List outbound mail queue entries with summary counts, filters, and cursor pagination. |
| `retry_mail_queue_item` | `queueId` | — | `sites:write` | Schedule a queued, deferred, or failed outbound mail queue message for immediate retry. |
| `retry_deferred_mail_queue` | — | `domainId` | `sites:write` | Schedule all deferred outbound mail queue messages (optionally scoped by `domainId`) for immediate retry. |
| `cancel_mail_queue_item` | `queueId` | — | `sites:write` | Cancel and remove a pending queued or deferred outbound mail queue message before delivery. |

Source: https://docs.hostedez.com/automation/mcp-tools-reference/index.mdx
