Skip to main content
Glama
arpeio-mcp

arpeio-mcp

Official
by arpe-io

lakexpress_preview_command

Read-onlyIdempotent

Build and preview a LakeXpress CLI command without executing it, showing the exact command that will run so you can review it before passing it to execution.

Instructions

Build and preview a LakeXpress CLI command WITHOUT executing it. Call this after lakexpress_info with action='workflow' to build each command in the recommended sequence. Shows the exact command that will be run. Does NOT execute the command or validate connections. After reviewing, pass the command to lakexpress_execute_command.

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": {
      "command": "<command>"
    },
    "name": "lakexpress_preview_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
runNoRun a multi-step pipeline from a YAML config file.
syncNoRun a full sync (export + publish). Exports data and publishes if configured.
statusNoShow sync run status and history.
cleanupNoClean up old or failed sync runs.
commandYesThe LakeXpress command to run. logdb_init/lxdb_init: initialize databases. config_create: set up sync configuration. sync/sync_export/sync_publish: execute pipeline steps. run: full pipeline execution. status: check pipeline status. cleanup: remove completed data.
os_typeNoTarget operating system for command formattinglinux
lxdb_dropNoDrop the log database schema (0.3.0+ replacement for logdb_drop). WARNING: permanently deletes all sync history.
lxdb_initNoInitialize the log database schema (0.3.0+ replacement for logdb_init).
logdb_dropNoDrop the log database schema. WARNING: permanently deletes all sync history and configuration.
logdb_initNoInitialize the log database schema. Creates required tables for sync management.
lxdb_locksNoShow currently locked tables in the log database (0.3.0+ replacement for logdb_locks).
config_listNoList all sync configurations.
logdb_locksNoShow currently locked tables in the log database.
sync_exportNoRun export-only sync (no publish). Exports data to local or cloud storage.
sync_publishNoRun publish-only sync. Publishes previously exported data to the configured target.
config_createNoCreate a new sync configuration. Requires source DB credentials and either output_dir (local) or target_storage_id (cloud). Add publish_target for data lake publishing.
config_deleteNoDelete a sync configuration.
lxdb_truncateNoClear all data from the log database while keeping the schema (0.3.0+ replacement for logdb_truncate).
logdb_truncateNoClear all data from the log database while keeping the schema.
lxdb_release_locksNoRelease stale or stuck table locks (0.3.0+ replacement for logdb_release_locks).
logdb_release_locksNoRelease stale or stuck table locks in the log database.

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, ready to hand to the execute tool.
warningsNoVersion-compatibility warnings.
explanationNoHuman-readable summary of what the command does.
command_typeNoWhich LakeXpress sub-command was built.
preview_onlyNoTrue when no binary is configured (execution unavailable).
command_stringNoThe argv joined into one command string.
command_displayNoThe command formatted for display, safe to show the user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changedv0.3.13
    • changedInput schema / properties / config_create / properties / license / description
      Previous value: -"Path to license file (0.3.0+)"New value: +"License text, passed with --license (0.3.0+). For a license file, use license_file"
    • addedInput schema / properties / config_create / properties / license_file
      Added value: +{
      +  "description": "Path to the license file, passed with --license_file. LakeXpress 0.6.0+ needs a license; without license or license_file it looks in LAKEXPRESS_LICENSE, ~/.lakexpress/license.lic, %APPDATA%\\LakeXpress\\license.lic and ./license.lic",
      +  "type": "string"
      +}
    • addedInput schema / properties / config_create / properties / unbounded_number_type
      Added value: +{
      +  "description": "Oracle source published to Snowflake (0.6.5+): type of a NUMBER declared without precision. decimal (default): NUMBER(38,18), digits beyond the 18th decimal place are rounded. varchar: VARCHAR, every digit kept (exact with \"use_adbc\": true on the source). decimal_strict: NUMBER(38,18), the export fails on a value that does not fit; needs \"use_adbc\": true. varchar and decimal_strict need a Snowflake publish_target",
      +  "enum": [
      +    "decimal",
      +    "varchar",
      +    "decimal_strict"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / lxdb_drop / properties / license / description
      Previous value: -"Path to license file (0.3.0+)"New value: +"License text, passed with --license (0.3.0+). For a license file, use license_file"
    • addedInput schema / properties / lxdb_drop / properties / license_file
      Added value: +{
      +  "description": "Path to the license file, passed with --license_file. LakeXpress 0.6.0+ needs a license; without license or license_file it looks in LAKEXPRESS_LICENSE, ~/.lakexpress/license.lic, %APPDATA%\\LakeXpress\\license.lic and ./license.lic",
      +  "type": "string"
      +}
    • changedInput schema / properties / lxdb_init / properties / license / description
      Previous value: -"Path to license file (0.3.0+)"New value: +"License text, passed with --license (0.3.0+). For a license file, use license_file"
    • addedInput schema / properties / lxdb_init / properties / license_file
      Added value: +{
      +  "description": "Path to the license file, passed with --license_file. LakeXpress 0.6.0+ needs a license; without license or license_file it looks in LAKEXPRESS_LICENSE, ~/.lakexpress/license.lic, %APPDATA%\\LakeXpress\\license.lic and ./license.lic",
      +  "type": "string"
      +}
    • changedInput schema / properties / lxdb_locks / properties / license / description
      Previous value: -"Path to license file (0.3.0+)"New value: +"License text, passed with --license (0.3.0+). For a license file, use license_file"
    • addedInput schema / properties / lxdb_locks / properties / license_file
      Added value: +{
      +  "description": "Path to the license file, passed with --license_file. LakeXpress 0.6.0+ needs a license; without license or license_file it looks in LAKEXPRESS_LICENSE, ~/.lakexpress/license.lic, %APPDATA%\\LakeXpress\\license.lic and ./license.lic",
      +  "type": "string"
      +}
    • changedInput schema / properties / lxdb_release_locks / properties / license / description
      Previous value: -"Path to license file (0.3.0+)"New value: +"License text, passed with --license (0.3.0+). For a license file, use license_file"
    • addedInput schema / properties / lxdb_release_locks / properties / license_file
      Added value: +{
      +  "description": "Path to the license file, passed with --license_file. LakeXpress 0.6.0+ needs a license; without license or license_file it looks in LAKEXPRESS_LICENSE, ~/.lakexpress/license.lic, %APPDATA%\\LakeXpress\\license.lic and ./license.lic",
      +  "type": "string"
      +}
    • changedInput schema / properties / lxdb_truncate / properties / license / description
      Previous value: -"Path to license file (0.3.0+)"New value: +"License text, passed with --license (0.3.0+). For a license file, use license_file"
    • addedInput schema / properties / lxdb_truncate / properties / license_file
      Added value: +{
      +  "description": "Path to the license file, passed with --license_file. LakeXpress 0.6.0+ needs a license; without license or license_file it looks in LAKEXPRESS_LICENSE, ~/.lakexpress/license.lic, %APPDATA%\\LakeXpress\\license.lic and ./license.lic",
      +  "type": "string"
      +}
    • changedInput schema / properties / run / properties / license / description
      Previous value: -"Path to license file (0.3.0+)"New value: +"License text, passed with --license (0.3.0+). For a license file, use license_file"
    • addedInput schema / properties / run / properties / license_file
      Added value: +{
      +  "description": "Path to the license file, passed with --license_file. LakeXpress 0.6.0+ needs a license; without license or license_file it looks in LAKEXPRESS_LICENSE, ~/.lakexpress/license.lic, %APPDATA%\\LakeXpress\\license.lic and ./license.lic",
      +  "type": "string"
      +}
    • changedInput schema / properties / sync / properties / license / description
      Previous value: -"Path to license file (0.3.0+)"New value: +"License text, passed with --license (0.3.0+). For a license file, use license_file"
    • addedInput schema / properties / sync / properties / license_file
      Added value: +{
      +  "description": "Path to the license file, passed with --license_file. LakeXpress 0.6.0+ needs a license; without license or license_file it looks in LAKEXPRESS_LICENSE, ~/.lakexpress/license.lic, %APPDATA%\\LakeXpress\\license.lic and ./license.lic",
      +  "type": "string"
      +}
    • changedInput schema / properties / sync_export / properties / license / description
      Previous value: -"Path to license file (0.3.0+)"New value: +"License text, passed with --license (0.3.0+). For a license file, use license_file"
    • addedInput schema / properties / sync_export / properties / license_file
      Added value: +{
      +  "description": "Path to the license file, passed with --license_file. LakeXpress 0.6.0+ needs a license; without license or license_file it looks in LAKEXPRESS_LICENSE, ~/.lakexpress/license.lic, %APPDATA%\\LakeXpress\\license.lic and ./license.lic",
      +  "type": "string"
      +}
    • changedInput schema / properties / sync_publish / properties / license / description
      Previous value: -"Path to license file (0.3.0+)"New value: +"License text, passed with --license (0.3.0+). For a license file, use license_file"
    • addedInput schema / properties / sync_publish / properties / license_file
      Added value: +{
      +  "description": "Path to the license file, passed with --license_file. LakeXpress 0.6.0+ needs a license; without license or license_file it looks in LAKEXPRESS_LICENSE, ~/.lakexpress/license.lic, %APPDATA%\\LakeXpress\\license.lic and ./license.lic",
      +  "type": "string"
      +}
  2. Changed3 schema fields changedv0.3.2
    • changedInput schema / properties / config_create / properties / error_action / description
      Previous value: -"Action on table export error: fail (stop), continue (skip and continue), skip"New value: +"Action on table export error: fail (stop on first error) or continue (log errors and continue)"
    • changedInput schema / properties / config_create / properties / error_action / enum
      Previous value: -[
      -  "fail",
      -  "continue",
      -  "skip"
      -]New value: +[
      +  "fail",
      +  "continue"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "command": {
      +      "description": "Full CLI argv, ready to hand to the execute tool.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "command_display": {
      +      "description": "The command formatted for display, safe to show the user.",
      +      "type": "string"
      +    },
      +    "command_string": {
      +      "description": "The argv joined into one command string.",
      +      "type": "string"
      +    },
      +    "command_type": {
      +      "description": "Which LakeXpress sub-command was built.",
      +      "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"
      +}
  3. First observedv0.3.1

TDQS

A4.4/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, and the description is consistent with them. It adds real context beyond the annotations: the tool surfaces the exact command string and performs no connection validation, so an agent knows a preview success does not imply the command will run successfully.

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 short sentences, front-loaded with the non-execution guarantee and followed by sequencing and hand-off. Minor redundancy between 'WITHOUT executing it' and 'Does NOT execute the command,' but nothing is wasted overall.

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

Completeness5/5

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

For a large nested schema with full coverage and an output schema already present, the description covers everything the agent needs: what it does, when to call it, what it does not do, and where the result goes next. Return values need not be explained because an output schema exists.

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 21 parameters including the nested per-command objects, so the schema carries the semantics. The description adds no parameter-level meaning (e.g., how the nested command object maps to CLI flags, or why os_type affects output), so the baseline 3 applies.

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-resource pair: build and preview a LakeXpress CLI command, with the scope-defining qualifier 'WITHOUT executing it.' The contrast with lakexpress_execute_command is explicit, so an agent can pick between them 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?

Gives an explicit precondition ('Call this after lakexpress_info with action=workflow') and an explicit next step ('pass the command to lakexpress_execute_command'). It also bounds the use case by noting it does not validate connections, which tells the agent not to rely on it for validation.

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