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.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds that the result is 'clean SQL' you copy, implying the query is generated as text rather than executed against a database, but it never states that explicitly, nor does it mention dialect handling, size limits, or validation behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the capability list followed by the output. 'Free, no account' is slightly promotional but does convey that no authentication is needed, so it earns marginal keep.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter tool with no output schema, the definition covers the headline capability but omits how the required `schema` input must be formatted and that output is SQL text rather than executed results. It is adequate to identify the tool but thin for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description's enumeration (tables, columns, joins, filters, ordering, limits) maps loosely onto from/columns/joins/wheres/order_by/limit, adding some orientation. However, schema description coverage is only 58% and the required `schema` parameter (CREATE TABLE statements, 20000 char limit) plus having, offset, dialect, distinct and lowercase_keywords go unmentioned, so the description does not compensate for the gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Build SELECT queries') and enumerates the supported constructs (tables, columns, joins, filters, ordering, limits), which implicitly separates it from the other *_builder siblings such as tool_http_request_builder. It never names a sibling or explicitly contrasts itself, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance: nothing says this is for read-only SELECTs only (no INSERT/UPDATE/DDL) or when a caller should pick a different builder. 'Free, no account' is a marketing/auth note rather than routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.