Skip to content

Commit 81d43d4

Browse files
author
依诺
committed
Add listInstance tool and update parameters
1 parent 7903599 commit 81d43d4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/alibabacloud_dms_mcp_server/server.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -628,11 +628,11 @@ def _register_full_toolset(self):
628628
annotations={"title": "获取DMS数据库详情", "readOnlyHint": True})(get_database)
629629
self.mcp.tool(name="listTables",
630630
description="Search for tables by databaseId and (optional) table name. "
631-
"If you don't know the databaseId, first use get_database or search_database to retrieve it."
632-
"(1)If you have the exact host, port, and database name, use get_database."
633-
"(2)If you only know the database name, use search_database."
631+
"If you don't know the databaseId, first use getDatabase or searchDatabase to retrieve it."
632+
"(1)If you have the exact host, port, and database name, use getDatabase."
633+
"(2)If you only know the database name, use searchDatabase."
634634
"(3)If you don't know any information, ask the user to provide the necessary details."
635-
"Note: search_database may return multiple databases. In this case, let the user choose which one to use.",
635+
"Note: searchDatabase may return multiple databases. In this case, let the user choose which one to use.",
636636
annotations={"title": "列出DMS表", "readOnlyHint": True})(list_tables)
637637
self.mcp.tool(name="getTableDetailInfo",
638638
description="Retrieve detailed metadata information about a specific database table including "
@@ -641,11 +641,11 @@ def _register_full_toolset(self):
641641

642642
@self.mcp.tool(name="executeScript",
643643
description="Execute SQL script against a database in DMS and return structured results."
644-
"If you don't know the databaseId, first use get_database or search_database to retrieve it."
645-
"(1)If you have the exact host, port, and database name, use get_database."
646-
"(2)If you only know the database name, use search_database."
644+
"If you don't know the databaseId, first use getDatabase or searchDatabase to retrieve it."
645+
"(1)If you have the exact host, port, and database name, use getDatabase."
646+
"(2)If you only know the database name, use searchDatabase."
647647
"(3)If you don't know any information, ask the user to provide the necessary details."
648-
"Note: search_database may return multiple databases. In this case, let the user choose which one to use.",
648+
"Note: searchDatabase may return multiple databases. In this case, let the user choose which one to use.",
649649
annotations={"title": "在DMS中执行SQL脚本", "readOnlyHint": False, "destructiveHint": True})
650650
async def execute_script_full_wrapper(
651651
database_id: str = Field(description="Required DMS databaseId. Obtained via getDatabase tool"),

0 commit comments

Comments
 (0)