Skip to main content
Glama
arpeio-mcp

arpeio-mcp

Official
by arpe-io

migratorxpress_preview_command

Read-onlyIdempotent

Preview the exact MigratorXpress migration CLI command, with passwords masked, before running it. Build and review the command safely without executing the migration or validating connectivity.

Instructions

Build and preview a MigratorXpress migration command WITHOUT executing it. Shows the exact CLI command with passwords masked. Does NOT execute the migration or validate database connectivity. After reviewing, pass the command to migratorxpress_execute_command. Set upgrade_migdb=true (0.7.0+) to build the metadata-DB upgrade command instead (needs only auth_file and migration_db_auth_id).

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": {
      "auth_file": "<auth_file>",
      "migration_db_auth_id": "<migration_db_auth_id>"
    },
    "name": "migratorxpress_preview_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoForce overwrite of existing migration data
n_jobsNoNumber of concurrent table transfers
resumeNoResume a previous run by RUN_ID
fk_modeNoHow to handle foreign key constraints. trusted: create as trusted. untrusted: create and verify. disabled: skip FK creation.
licenseNoLicense key (will be masked in display)
log_dirNoDirectory for log files
os_typeNoTarget operating system for command formattinglinux
p_queryNoParallelism degree for profiling queries
projectNoProject tag attached to this run, stored on the tracking tables for later filtering (0.6.30+)
max_rowsNoMaximum row count filter -- only migrate tables with at most this many rows
min_rowsNoMinimum row count filter -- only migrate tables with at least this many rows
quiet_ftNoSuppress FastTransfer console output during data transfer
with_xidNoIncremental transfer (0.8.0+): skip an Oracle or Netezza table whose max ROWID / CREATEXID is unchanged since the last run and whose target table holds rows. Off by default from 0.8.0. Ignored with drop_tables_if_exists=true, no effect for a PostgreSQL or SQL Server source
auth_fileYesPath to authentication/credentials JSON file
load_modeNoHow to load data into target tables. truncate: clear target before loading. append: add to existing data.
log_levelNoLogging verbosity level
no_bannerNoSuppress the startup banner
task_listNoTasks to run (e.g., ['translate', 'create', 'transfer'] for full migration, or ['diff'] for validation). Call `migratorxpress_info` with action='workflow' to get the recommended task sequence.
basic_diffNoUse basic diff mode (row counts only, no checksum)
no_progressNoDisable progress bar display
without_xidNoBefore 0.8.0: transfer every Oracle / Netezza table, also those unchanged since the last run. Deprecated and ignored from 0.8.0, where this is the default (see with_xid)
license_fileNoPath to the license file, passed with --license_file. MigratorXpress 0.8.0+ needs a license, also for the free 30-day trial (exit code 13 without one); without license or license_file it looks in MIGRATORXPRESS_LICENSE, ~/.migratorxpress/license.lic, %APPDATA%\MigratorXpress\license.lic and ./license.lic
aci_thresholdNoRow count threshold for auto-created indexes on target
cci_thresholdNoRow count threshold for clustered columnstore index creation on target
upgrade_migdbNoUpgrade the migration (tracking) DB metadata in place to the run_id schema introduced in 0.7.0, then exit (0.7.0+). Only auth_file and migration_db_auth_id are needed; cannot be combined with task_list or resume. Pre-0.7.0 tracking DBs are also auto-upgraded on the first regular 0.7.0+ run.
compute_nbrowsNoCompute row counts for source tables before transfer
exclude_tablesNoTable exclude patterns, comma-separated. Supports wildcards
fasttransfer_pNoFastTransfer parallel degree (number of threads per table transfer)
include_tablesNoTable include patterns, comma-separated. Supports wildcards
source_db_nameNoSource database name to migrate from. Required before 0.7.2; deprecated and ignored from 0.7.2 (the source auth entry's database is used)
target_db_nameNoTarget database name to migrate to. Required before 0.7.2; optional from 0.7.2, where it defaults to the target auth entry's database and must match it
ft_large_table_thNoRow count threshold above which FastTransfer parallelism is used
migration_db_modeNoHow to handle existing target database objects. preserve: keep existing objects. truncate: empty tables before loading. drop: drop and recreate objects.
source_db_auth_idNoSource database credential ID from the auth file
target_db_auth_idNoTarget database credential ID from the auth file
source_schema_nameNoSource schema name. If omitted, all schemas are migrated
target_schema_nameNoTarget schema name. Defaults to source schema name if omitted
profiling_sample_pcNoPercentage of rows to sample for data profiling (0-100)
migration_db_auth_idYesMigration tracking database credential ID from the auth file
drop_tables_if_existsNoDrop target tables before creating them. Before 0.7.2 any value, including 'false', is read as true: omit it instead of passing 'false'
fasttransfer_dir_pathNoPath to FastTransfer binary directory for parallel data transfer. The 0.8.0+ package bundles FastTransfer in engine/, where it is found automatically
min_sample_pc_profileNoMinimum sample percentage for profiling small tables
forced_int_id_prefixesNoColumn name prefixes to force integer identity mapping
forced_int_id_suffixesNoColumn name suffixes to force integer identity mapping

Output Schema

NameRequiredDescriptionDefault
tipsNoSuggested next tool calls to resolve errors.
errorsNoField-level validation errors (status='error').
statusYes'ok' when the call succeeded; 'error' when the parameters failed validation or execution failed.
commandNoFull CLI argv with real credentials, ready to hand to the execute tool.
warningsNoVersion-compatibility warnings.
explanationNoHuman-readable summary of what the command does.
preview_onlyNoTrue when no binary is configured (execution unavailable).
command_stringNoThe argv joined into one command string (real credentials).
command_displayNoThe command with the license key masked, safe to show the user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.3.13
    • changedInput schema / properties / fasttransfer_dir_path / description
      Previous value: -"Path to FastTransfer binary directory for parallel data transfer"New value: +"Path to FastTransfer binary directory for parallel data transfer. The 0.8.0+ package bundles FastTransfer in engine/, where it is found automatically"
    • changedInput schema / properties / license_file / description
      Previous value: -"Path to license key file"New value: +"Path to the license file, passed with --license_file. MigratorXpress 0.8.0+ needs a license, also for the free 30-day trial (exit code 13 without one); without license or license_file it looks in MIGRATORXPRESS_LICENSE, ~/.migratorxpress/license.lic, %APPDATA%\\MigratorXpress\\license.lic and ./license.lic"
    • addedInput schema / properties / with_xid
      Added value: +{
      +  "default": false,
      +  "description": "Incremental transfer (0.8.0+): skip an Oracle or Netezza table whose max ROWID / CREATEXID is unchanged since the last run and whose target table holds rows. Off by default from 0.8.0. Ignored with drop_tables_if_exists=true, no effect for a PostgreSQL or SQL Server source",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / without_xid / description
      Previous value: -"Disable transaction ID tracking during transfer"New value: +"Before 0.8.0: transfer every Oracle / Netezza table, also those unchanged since the last run. Deprecated and ignored from 0.8.0, where this is the default (see with_xid)"
  2. Changed3 schema fields changedv0.3.6
    • changedInput schema / properties / drop_tables_if_exists / description
      Previous value: -"Drop target tables before creating them"New value: +"Drop target tables before creating them. Before 0.7.2 any value, including 'false', is read as true: omit it instead of passing 'false'"
    • changedInput schema / properties / source_db_name / description
      Previous value: -"Source database name to migrate from"New value: +"Source database name to migrate from. Required before 0.7.2; deprecated and ignored from 0.7.2 (the source auth entry's database is used)"
    • changedInput schema / properties / target_db_name / description
      Previous value: -"Target database name to migrate to"New value: +"Target database name to migrate to. Required before 0.7.2; optional from 0.7.2, where it defaults to the target auth entry's database and must match it"
  3. Changed3 schema fields changedv0.3.5
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Project tag attached to this run, stored on the tracking tables for later filtering (0.6.30+)",
      +  "pattern": "^[A-Za-z0-9_-]{1,64}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / upgrade_migdb
      Added value: +{
      +  "default": false,
      +  "description": "Upgrade the migration (tracking) DB metadata in place to the run_id schema introduced in 0.7.0, then exit (0.7.0+). Only auth_file and migration_db_auth_id are needed; cannot be combined with task_list or resume. Pre-0.7.0 tracking DBs are also auto-upgraded on the first regular 0.7.0+ run.",
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "auth_file",
      -  "source_db_auth_id",
      -  "source_db_name",
      -  "target_db_auth_id",
      -  "target_db_name",
      -  "migration_db_auth_id"
      -]New value: +[
      +  "auth_file",
      +  "migration_db_auth_id"
      +]
  4. Changed2 schema fields changedv0.3.2
    • changedInput schema / properties / task_list / description
      Previous value: -"Tasks to run (e.g., ['translate', 'create', 'transfer'] for full migration, or ['diff'] for validation). Call migratorxpress_suggest_workflow to get the recommended task sequence."New value: +"Tasks to run (e.g., ['translate', 'create', 'transfer'] for full migration, or ['diff'] for validation). Call `migratorxpress_info` with action='workflow' to get the recommended task sequence."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "command": {
      +      "description": "Full CLI argv with real credentials, ready to hand to the execute tool.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "command_display": {
      +      "description": "The command with the license key masked, safe to show the user.",
      +      "type": "string"
      +    },
      +    "command_string": {
      +      "description": "The argv joined into one command string (real credentials).",
      +      "type": "string"
      +    },
      +    "errors": {
      +      "description": "Field-level validation errors (status='error').",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "explanation": {
      +      "description": "Human-readable summary of what the command does.",
      +      "type": "string"
      +    },
      +    "preview_only": {
      +      "description": "True when no binary is configured (execution unavailable).",
      +      "type": "boolean"
      +    },
      +    "status": {
      +      "description": "'ok' when the call succeeded; 'error' when the parameters failed validation or execution failed.",
      +      "enum": [
      +        "ok",
      +        "error"
      +      ],
      +      "type": "string"
      +    },
      +    "tips": {
      +      "description": "Suggested next tool calls to resolve errors.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "warnings": {
      +      "description": "Version-compatibility warnings.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "status"
      +  ],
      +  "type": "object"
      +}
  5. First observedv0.3.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered structurally. The description adds genuine context beyond that: passwords are masked in the displayed command, and the tool neither executes the migration nor validates connectivity. It stops short of describing the preview output's shape, but an output schema exists to carry that.

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?

Four sentences, four distinct jobs: what it builds, what it displays, what it explicitly does not do, and where to go next. The no-execution warning is front-loaded before the routing advice, and nothing is padding. Slightly dense but well ordered.

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 44-parameter tool this description correctly avoids restating the schema and instead covers the decisions an agent must make: preview versus execute, and the upgrade_migdb escape hatch. Annotations cover safety and an output schema covers return values, leaving little unaddressed beyond per-parameter interaction details.

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

Parameters3/5

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

Schema description coverage is 100% across 44 parameters, so the schema does the heavy lifting and the baseline is 3. The description does add one cross-parameter constraint the schema cannot express: upgrade_migdb=true requires only auth_file and migration_db_auth_id and builds a different command. That is a meaningful addition but limited in scope against 44 parameters.

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 ('Build and preview a MigratorXpress migration command') plus the crucial scope qualifier 'WITHOUT executing it'. It distinguishes itself from the sibling migratorxpress_execute_command by naming it directly, so an agent can choose between preview and execute without opening either schema.

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

Usage Guidelines5/5

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

Explicitly states what the tool does not do ('Does NOT execute the migration or validate database connectivity') and routes the agent to the correct next step ('pass the command to migratorxpress_execute_command'). It also names an alternative mode and its precondition: setting upgrade_migdb=true builds the metadata-DB upgrade command and then 'needs only auth_file and migration_db_auth_id'.

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