read_sql
Execute read-only SQL queries like SELECT, SHOW, or PRAGMA on a specified database connection. Returns results as a JSON array of rows.
Instructions
执行只读 SQL 查询(例如 SELECT/SHOW/PRAGMA)。 Returns: JSON array of rows.
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": {
"connection_name": "<connection_name>",
"query": "<query>"
},
"name": "read_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_name | Yes | Connection name (matches config.yaml connections[].name) | |
| query | Yes | SQL to execute (read-only) |