run_sql
Execute read-only SQL queries with safety validation and pagination (100 rows per page). Returns columns, rows, row count, and execution time.
Instructions
Execute a read-only SQL query. The query is validated for safety before execution. Supports pagination (100 rows per page). Returns columns, rows, row count, and execution time.
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": {
"query": "<query>"
},
"name": "run_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination (100 rows per page) | |
| query | Yes | SQL SELECT query to execute |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |