Skip to main content
Glama

Translate SQL between dialects

transpile_sql
Read-onlyIdempotent

Convert a SQL statement from one dialect to another — mysql, postgres, sqlite, tsql, oracle, snowflake, bigquery, redshift, spark, hive, presto, trino, duckdb, clickhouse, databricks, doris, starrocks and more. Deterministic parser (sqlglot), not an LLM: the same input always produces the same output, and syntax errors come back with the exact line and column. Use it when migrating queries between databases or debugging dialect-specific syntax.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesThe SQL statement (or several, separated by semicolons).
readNoSource dialect, e.g. "mysql". Omit to auto-detect from generic SQL.
writeYesTarget dialect, e.g. "postgres", "bigquery", "doris".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint, idempotentHint, destructiveHint), the description adds a significant behavioral trait: it is a deterministic parser (sqlglot), not an LLM, ensuring identical output for identical input and precise syntax error reporting with line/column. This enriches the agent's understanding of the tool's behavior and reliability.

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

Conciseness5/5

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

The description is two sentences long, front-loaded with the core purpose, and every clause earns its place—covering dialects, determinism, error handling, and use cases without redundancy or fluff.

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

Completeness5/5

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

Given the tool's complexity (many dialects), the description is complete: it states what it does, when to use it, and its deterministic/error behavior. An output schema exists, so return values are covered by that structured field. No critical information is missing for an agent to select and invoke this tool correctly.

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?

Schema description coverage is 100%, so the baseline is 3. The description does not add parameter-specific semantics but does provide a broad list of dialects for the 'write' parameter, which slightly augments the schema examples. This is helpful but not a major addition since the schema already documents each parameter.

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

Purpose5/5

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

The description clearly states the tool converts SQL between dialects and enumerates a comprehensive list of supported dialects. The verb 'Convert' with the resource 'SQL statement' and the scope 'from one dialect to another' unambiguously identifies the tool's function, and it distinguishes itself from sibling tools by its specific SQL focus.

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

Usage Guidelines4/5

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

The description explicitly says 'Use it when migrating queries between databases or debugging dialect-specific syntax,' which provides clear context for when to use the tool. However, it does not mention alternatives or exclusions, though no sibling tool appears to compete with this functionality.

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.

TDQS

A3.6/5.0
Disambiguation3/5

Many tools are clearly distinct, but there are several overlapping groups: PDF extraction (extract_invoices, extract_statement, extract_tables, pdf_to_markdown), table comparison (diff_tables vs reconcile_ledger), and model pricing (list_models vs model_costs). Descriptions help clarify boundaries, but an agent could misselect without careful reading.

Naming Consistency3/5

All names use lowercase snake_case, but the verb-noun pattern is inconsistent. Most tools are verb-first (build_app, clean_table, fetch_page), but several are noun-first (jwt_decode, regex_test, web_search), noun-only (ai_visibility, model_costs), bare verbs (recall, remember), or a full phrase (what_can_you_do). This mixed convention is still readable but not predictable.

Tool Count2/5

With 34 tools, this server exceeds the 25-tool threshold for 'too many'. While the breadth covers many utility domains, the count is heavy and some tools could be consolidated or removed. A more focused set would reduce cognitive load and misselection risk.

Completeness3/5

The utility set covers web, PDF, CSV, model, task, and dev tooling well, but there are notable gaps in resource lifecycles. Apps have build/list/get but no update/delete, and memories support remember/recall but no forget. These missing operations could create dead ends for agents.