mysql_query
Execute SQL queries against MySQL environments and return results; use WHERE/LIMIT to narrow output and COUNT(*) to get totals when rows are truncated.
Instructions
执行 MySQL 查询,返回查询结果。可用环境: default(默认: default)。结果行数上限: default ≤ 1000 行,超出会被截断并在返回中标记 truncated;请用 WHERE/LIMIT 收窄范围或先执行 COUNT(*) 取总数
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": {
"sql": "<sql>"
},
"name": "mysql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | 要执行的 SQL 查询语句 | |
| environment | No | 目标环境名。可用环境: default(默认: default)。未传时使用默认环境 |