@@ -27,6 +27,70 @@ Key features via MCP include:
27
27
- ** Data Retrieval** : Automatically route SQL to accurate data sources for business support
28
28
- ** Security** : Fine-grained access control and auditability
29
29
30
+ ---
31
+ ## Tool List
32
+
33
+ ### Metadata Related
34
+
35
+ #### addInstance: Add an instance to DMS. If the instance already exists, return the existing instance information.
36
+
37
+ - ** db_user** (string, required): Username for connecting to the database.
38
+ - ** db_password** (string, required): Password for connecting to the database.
39
+ - ** instance_resource_id** (string, optional): Resource ID of the instance, typically assigned by the cloud service provider.
40
+ - ** host** (string, optional): Connection address of the instance.
41
+ - ** port** (string, optional): Connection port number of the instance.
42
+ - ** region** (string, optional): Region where the instance is located (e.g., "cn-hangzhou").
43
+
44
+ #### getInstance: Retrieve instance details from DMS based on host and port information.
45
+
46
+ - ** host** (string, required): Connection address of the instance.
47
+ - ** port** (string, required): Connection port number of the instance.
48
+ - ** sid** (string, optional): Required for Oracle-like databases, defaults to None.
49
+
50
+ #### searchDatabase: Search for databases in DMS based on schemaName.
51
+
52
+ - ** search_key** (string, required): schemaName.
53
+ - ** page_number** (integer, optional): Page number to retrieve (starting from 1), default is 1.
54
+ - ** page_size** (integer, optional): Number of results per page (maximum 1000), default is 200.
55
+
56
+ #### getDatabase: Retrieve detailed information about a specific database from DMS.
57
+
58
+ - ** host** (string, required): Connection address of the instance.
59
+ - ** port** (string, required): Connection port number of the instance.
60
+ - ** schema_name** (string, required): Database name.
61
+ - ** sid** (string, optional): Required for Oracle-like databases, defaults to None.
62
+
63
+ #### listTable: Search for data tables in DMS based on databaseId and tableName.
64
+
65
+ - ** database_id** (string, required): Database ID to limit the search scope (obtained via getDatabase).
66
+ - ** search_name** (string, required): Non-empty string as a search keyword to match table names.
67
+ - ** page_number** (integer, optional): Pagination page number (default: 1).
68
+ - ** page_size** (integer, optional): Number of results per page (default: 200, maximum: 200).
69
+
70
+ #### getTableDetailInfo: Retrieve detailed metadata information for a specific data table, including field and index details.
71
+
72
+ - ** table_guid** (string, required): Unique identifier for the table (format: dmsTableId.schemaName.tableName), obtained via searchTable or listTable.
73
+
74
+ ---
75
+
76
+ ### SQL Execution Related
77
+
78
+ #### executeScript: Execute an SQL script through DMS and return the results.
79
+
80
+ - ** database_id** (string, required): DMS database ID (obtained via getDatabase).
81
+ - ** script** (string, required): SQL script content to execute.
82
+
83
+ ---
84
+
85
+ ### NL2SQL Related
86
+
87
+ #### nl2sql: Convert natural language questions into executable SQL queries.
88
+
89
+ - ** question** (string, required): Natural language question to convert into SQL.
90
+ - ** database_id** (integer, required): DMS database ID (obtained via getDatabase).
91
+ - ** knowledge** (string, optional): Additional context or database knowledge to assist SQL generation.
92
+
93
+
30
94
31
95
---
32
96
0 commit comments