query_sql
Execute read-only SQL queries against PostgreSQL, MySQL, or SQL Server. Automatically adapts syntax to the target dialect. Returns results with connection and dialect metadata. Default limit 100 rows.
Instructions
Execute a read-only SQL query against the target connection. ONLY SELECT / WITH / EXPLAIN permitted. Write dialect-appropriate SQL for the connection's engine — PostgreSQL syntax for postgres, T-SQL for mssql, MySQL for mysql. Response meta includes connection + dialect so you know which syntax worked. Default LIMIT 100 unless the user asks for all rows.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "query_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||