query_mysql
Execute read-only MySQL database queries to retrieve data securely. Connect using host, port, credentials, and database name to run SELECT statements.
Instructions
执行MySQL数据库查询(只读模式)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"host": "<host>",
"port": "<port>",
"user": "<user>",
"pwd": "<pwd>",
"db": "<db>",
"querySql": "<querySql>"
},
"name": "query_mysql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | 数据库主机地址 | |
| port | Yes | 数据库端口 | |
| user | Yes | 数据库用户名 | |
| pwd | Yes | 数据库密码 | |
| db | Yes | 数据库名称 | |
| querySql | Yes | 要执行的SQL查询语句(仅支持SELECT等只读操作) |