Skip to main content
Glama

Hiringsai — Free AI Tools

tool_sql_query_builder

Read-only

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

NameRequiredDescriptionDefault
fromNoTable to select from. Defaults to the first table.
joinsNoObjects: {type:INNER|LEFT|RIGHT|FULL, table:"", on:"a.id = b.a_id"}. An empty on is guessed from the schema.
limitNo
havingNoObjects: {expr:"COUNT(*)", op:">", val:"5"}.
offsetNo
schemaYesCREATE TABLE statements, or lines of "table: col, col". Limit 20000 characters.
wheresNoObjects: {conj:AND|OR, col:"table.col", op:"=", val:"", val2:""}.
columnsNoObjects: {k:"table.col", agg:"" or COUNT, COUNT DISTINCT, SUM, AVG, MIN, MAX, alias:""}, or {custom:true, k:"COUNT(*)", alias:"total"}.
dialectNostd
distinctNo
order_byNoObjects: {expr:"total", dir:"ASC"|"DESC"}.
lowercase_keywordsNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.