|
55 | 55 | - **database_id** (string, required): DMS database ID (obtained via getDatabase). |
56 | 56 | - **script** (string, required): SQL script content to execute. |
57 | 57 |
|
| 58 | +#### createDataChangeOrder: Create a data change ticket in DMS. |
| 59 | + |
| 60 | +- **database_id** (string, required): DMS database ID (obtained via getDatabase). |
| 61 | +- **script** (string, required): SQL script content to execute. |
| 62 | + |
| 63 | +#### getOrderInfo: Retrieve DMS ticket details. |
| 64 | + |
| 65 | +- **order_id** (string, required):The ticket ID in DMS. |
| 66 | + |
| 67 | +#### submitOrderApproval: Submit a DMS ticket for approval. |
| 68 | + |
| 69 | +- **order_id** (string, required):The ticket ID in DMS. |
| 70 | + |
58 | 71 | --- |
59 | 72 |
|
60 | 73 | ### NL2SQL Related |
|
64 | 77 | - **question** (string, required): Natural language question to convert into SQL. |
65 | 78 | - **database_id** (integer, required): DMS database ID (obtained via getDatabase). |
66 | 79 | - **knowledge** (string, optional): Additional context or database knowledge to assist SQL generation. |
| 80 | +- **model** (string, optional): The specified large language model type; currently supports Qwen series models. |
| 81 | + |
67 | 82 |
|
68 | | -#### askDatabase: Retrieve database execution results directly using natural language questions |
| 83 | +#### askDatabase: Retrieve database execution results directly using natural language questions. |
69 | 84 | - **question** (string, required): The natural language question to be converted into SQL. |
70 | 85 | - **knowledge** (string, optional): Additional context or database knowledge used to assist in SQL generation. |
| 86 | +- **model** (string, optional): The specified large language model type; currently supports Qwen series models. |
71 | 87 |
|
72 | 88 | --- |
73 | | -### Data Migration Related |
74 | | - |
75 | | -#### configureDtsJob: Configure a DTS data migration task that migrates data from one RDS-MySQL instance to another RDS-MySQL instance. |
76 | | -- **region_id** (string, required): The region where the instance is located (e.g., Hangzhou `"cn-hangzhou"`, Beijing `"cn-beijing"`). |
77 | | -- **job_type** (string, required): The type of DTS job (e.g., synchronization job `"SYNC"`, migration job `"MIGRATION"`). |
78 | | -- **source_endpoint_region** (string, required): The region where the source database is located (e.g., Hangzhou `"cn-hangzhou"`, Beijing `"cn-beijing"`). |
79 | | -- **source_endpoint_instance_type** (string, required): The type of source database instance (e.g., `"RDS"`). |
80 | | -- **source_endpoint_engine_name** (string, required): The engine type of the source database (e.g., `"MySQL"`). |
81 | | -- **source_endpoint_instance_id** (string, required): The ID of the source database instance (e.g., `"rm-xxx"`). |
82 | | -- **source_endpoint_user_name** (string, required): The username for connecting to the source database. |
83 | | -- **source_endpoint_password** (string, required): The password for connecting to the source database. |
84 | | -- **destination_endpoint_region** (string, required): The region where the destination database is located (e.g., Hangzhou `"cn-hangzhou"`, Beijing `"cn-beijing"`). |
85 | | -- **destination_endpoint_instance_type** (string, required): The type of destination database instance (e.g., `"RDS"`). |
86 | | -- **destination_endpoint_engine_name** (string, required): The engine type of the destination database (e.g., `"MySQL"`). |
87 | | -- **destination_endpoint_instance_id** (string, required): The ID of the destination database instance (e.g., `"rm-xxx"`). |
88 | | -- **destination_endpoint_user_name** (string, required): The username for connecting to the destination database. |
89 | | -- **destination_endpoint_password** (string, required): The password for connecting to the destination database. |
90 | | -- **db_list** (string, required): The migration object in JSON string format: |
91 | | - Example 1: Migrate the `dtstest` database, and set `db_list` to `{"dtstest":{"name":"dtstest","all":true}}`; |
92 | | - Example 2: Migrate the `task01` table under the `dtstest` database, and set `db_list` to `{"dtstest":{"name":"dtstest","all":false,"Table":{"task01":{"name":"task01","all":true}}}}`; |
93 | | - Example 3: Migrate the `task01` and `task02` tables under the `dtstest` database, and set `db_list` to `{"dtstest":{"name":"dtstest","all":false,"Table":{"task01":{"name":"task01","all":true},"task02":{"name":"task02","all":true}}}}`. |
94 | | - |
95 | | -#### startDtsJob: Start a DTS migration task. |
96 | | -- **region_id** (string, required): The region where the instance is located (e.g., Hangzhou `"cn-hangzhou"`, Beijing `"cn-beijing"`). |
97 | | -- **dts_job_id** (string, required): The DTS job ID. |
98 | | - |
99 | | -#### getDtsJob: Get detailed information about a DTS migration task. |
100 | | -- **region_id** (string, required): The region where the instance is located (e.g., Hangzhou `"cn-hangzhou"`, Beijing `"cn-beijing"`). |
101 | | -- **dts_job_id** (string, required): The DTS job ID. |
| 89 | + |
| 90 | +### SQL Assistant Related |
| 91 | + |
| 92 | +#### fixSql:SQL Repair. |
| 93 | + |
| 94 | +- **database_id** (integer, required): DMS database ID (obtained via getDatabase). |
| 95 | +- **sql** (string, required): The SQL statement to be repaired. |
| 96 | +- **error** (string, required): The error message associated with the SQL. |
| 97 | +- **question** (string, optional): Supplementary descriptive information. |
| 98 | +- **model** (string, optional): The specified large language model type; currently supports Qwen series models. |
| 99 | + |
| 100 | + |
| 101 | +#### answerSqlSyntax:SQL Syntax Response. |
| 102 | + |
| 103 | +- **database_id** (integer, required): DMS database ID (obtained via getDatabase). |
| 104 | +- **question** (string, required): The question. |
| 105 | +- **model** (string, optional): The specified large language model type; currently supports Qwen series models. |
| 106 | + |
| 107 | +#### optimizeSql:SQL Optimization. |
| 108 | + |
| 109 | +- **database_id** (integer, required): DMS database ID, which can be obtained via the getDatabase tool. |
| 110 | +- **sql** (string, required): The SQL statement to be optimized. |
| 111 | +- **question** question (string, optional): Supplementary descriptive information. |
| 112 | +- **model** (string, optional): The specified large language model type; currently supports Qwen series models. |
0 commit comments