execute_select
Run read-only SQL queries such as SELECT, SHOW, DESCRIBE, and EXPLAIN on a MySQL database, with support for parameter binding and a customizable result limit.
Instructions
执行只读 SELECT/SHOW/DESCRIBE/EXPLAIN(即使 ALLOW_DDL/READ_ONLY 配置有误也只允许读)。
Parameters: sql: SELECT 语句 database: 数据库 params: 参数列表 limit: 自定义结果行数限制(≤1000)
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": "execute_select"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| limit | No | ||
| params | No | ||
| database | No |