Skip to main content
Glama
ecp-mcp-server

ecp-mcp-server

by EpicLabs23

ecp_cpanel_import_start

Start a background cPanel website import as PHP apps: copy files and MySQL data, rewrite WordPress database settings, and optionally attach domains. Returns a job_id to poll for status.

Instructions

Import websites from a cPanel server into this account as PHP apps: copies each site's files and its MySQL database (into a new database here), rewrites a WordPress site's wp-config.php to the new database, and optionally attaches the site's domain if this account already has it. Runs in the background - returns a job_id; poll ecp_cpanel_import_status until state isn't 'running'. Nothing on the cPanel server is changed. For a non-WordPress site whose database should come along, pass its cPanel database credentials in database; otherwise only files are copied.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "connection": "<connection>",
      "sites": "<sites>",
      "confirm": "<confirm>"
    },
    "name": "ecp_cpanel_import_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
sitesYes
confirmYes
connectionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses asynchronous background execution, the job_id return, and that the source cPanel server is left unchanged (important non-destructive reassurance for a migration). It does not cover failure/partial-failure behavior, permission requirements on the target account, or what `confirm` acknowledges.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, followed by behavior, then the polling contract, then the database caveat — a sensible order with little waste. It is dense in a single paragraph and could be split for scannability, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex, nested, mutation-style tool with no output schema, the description covers the essentials: what is migrated, where it lands, async lifecycle, source-side safety, and domain/database conditionals. Remaining gaps are failure handling and required preconditions (key upload, prior discovery), which block full marks.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Top-level schema descriptions are effectively absent, so the description must compensate, and it does for the two non-obvious parameters: it explains that `sites` entries carry per-site files plus database, and that `database` credentials are only needed for non-WordPress sites because WordPress credentials come from wp-config.php. `confirm` and the connection/SSH requirements are left to the schema, which is a minor residual gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Import websites from a cPanel server into this account as PHP apps') and enumerates exactly what is copied: files, MySQL database into a new database, wp-config.php rewrite, optional domain attach. This is clearly distinguishable from the sibling read-only discovery tool (ecp_cpanel_discover) and from ecp_apps_create_from_upload.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit follow-up guidance ('returns a job_id; poll ecp_cpanel_import_status until state isn't running') and a conditional rule for when to supply `database` (non-WordPress only). It does not explicitly state prerequisites such as running ecp_cpanel_discover first or uploading the SSH key first, though the schema hints at both.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools