tool_sql_query_builder
Build SELECT queries visually - tables, columns, joins, filters, ordering, limits - and copy clean SQL. Free, no account.
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": {
"schema": "<schema>"
},
"name": "tool_sql_query_builder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Table to select from. Defaults to the first table. | |
| joins | No | Objects: {type:INNER|LEFT|RIGHT|FULL, table:"", on:"a.id = b.a_id"}. An empty on is guessed from the schema. | |
| limit | No | ||
| having | No | Objects: {expr:"COUNT(*)", op:">", val:"5"}. | |
| offset | No | ||
| schema | Yes | CREATE TABLE statements, or lines of "table: col, col". Limit 20000 characters. | |
| wheres | No | Objects: {conj:AND|OR, col:"table.col", op:"=", val:"", val2:""}. | |
| columns | No | Objects: {k:"table.col", agg:"" or COUNT, COUNT DISTINCT, SUM, AVG, MIN, MAX, alias:""}, or {custom:true, k:"COUNT(*)", alias:"total"}. | |
| dialect | No | std | |
| distinct | No | ||
| order_by | No | Objects: {expr:"total", dir:"ASC"|"DESC"}. | |
| lowercase_keywords | No |