Update server.py
Browse files
server.py
CHANGED
@@ -26,24 +26,18 @@ query_checker_tool = QuerySQLCheckerTool(db=credit_card_db, llm=llm)
|
|
26 |
@mcp.custom_route("/", methods=["GET"])
|
27 |
async def home(request: Request) -> PlainTextResponse:
|
28 |
return PlainTextResponse(
|
29 |
-
"
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
"
|
41 |
-
"sql_db_query_checker\n" \
|
42 |
-
|
43 |
-
"This tool can be used to check if a query is valid.\n"
|
44 |
-
"---\n"
|
45 |
-
"sql_db_query\n" \
|
46 |
-
"This tool can be used to execute a query.\n"
|
47 |
)
|
48 |
|
49 |
|
|
|
26 |
@mcp.custom_route("/", methods=["GET"])
|
27 |
async def home(request: Request) -> PlainTextResponse:
|
28 |
return PlainTextResponse(
|
29 |
+
"""
|
30 |
+
Credit Card Database Server
|
31 |
+
\n----\n
|
32 |
+
This server gives you access to the following tools:
|
33 |
+
|
34 |
+
1. sql_db_list_tables: This tool can be used to list the tables in the database.
|
35 |
+
---
|
36 |
+
2. sql_db_schema: This tool can be used to get the schema of a table.
|
37 |
+
---
|
38 |
+
3. sql_db_query_checker: This tool can be used to check if a query is valid.
|
39 |
+
4. sql_db_query: This tool can be used to execute a query.
|
40 |
+
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
)
|
42 |
|
43 |
|