db_exe
Execute SQL queries against MySQL and return results as JSON, with an optional row limit to avoid timeouts.
Instructions
执行 SQL 并返回 JSON 字符串结果。
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": "db_exe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL 语句 | |
| max_rows | No | 查询最大返回行数,防止结果过大导致 MCP 超时 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |