Alibaba Cloud DMS MCP Server

Official
by aliyun

executeScript

Run SQL scripts on databases managed by Alibaba Cloud DMS to retrieve structured query results, including column names, row counts, and data mappings.

Instructions

Execute SQL script against a database in DMS and return structured results. Parameters: database_id (int): Required DMS databaseId. Obtained via getDatabase tool. script (str): SQL script to execute. Returns: Dict[str, Any] containing: - RequestId (str): Unique request identifier - Results (List[Dict]): List of result sets from executed script: Each result set contains: - ColumnNames (List[str]): Ordered list of column names - RowCount (int): Number of rows returned - Rows (List[Dict[str, str]]): List of rows with column name -> value mapping - Success (bool): Whether this result set was successfully retrieved - Success (bool): Overall operation success status

Input Schema

NameRequiredDescriptionDefault
database_idYes
logicNo
scriptYes

Input Schema (JSON Schema)

{ "properties": { "database_id": { "title": "Database Id", "type": "string" }, "logic": { "default": false, "title": "Logic", "type": "boolean" }, "script": { "title": "Script", "type": "string" } }, "required": [ "database_id", "script" ], "title": "executeScriptArguments", "type": "object" }

You must be authenticated.

Other Tools from Alibaba Cloud DMS MCP Server

Related Tools

ID: hyhi1ys72b