Query
queryRun read-only SQL queries (SELECT, SHOW, DESCRIBE, EXPLAIN) on MySQL or MariaDB databases to retrieve data without altering records.
Instructions
执行SQL查询(只读,仅支持SELECT/SHOW/DESCRIBE/EXPLAIN)
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": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL查询语句 | |
| database | No | 可选,指定数据库。如未指定则使用默认数据库 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |