# Text-to-SQL, defined with a sourced example

GLOSSARY, read 10 Nov 2026

**The short answer.** A tool that turns a plain-language question into a SQL statement, usually using what it knows about the schema or project. The SQL still has to be checked and run, and who runs it varies by server. Per dbt Labs' README, its text_to_sql tool generates SQL from natural language using project context.

## Definition

A tool that turns a plain-language question into a SQL statement, usually using what it knows about the schema or project. The SQL still has to be checked and run, and who runs it varies by server.

## Example from a real server

**Example.** Per dbt Labs' README, its text_to_sql tool generates SQL from natural language using project context.

## Related terms

- [token](/glossary/token/): The unit in which models count text, roughly a word fragment.
- [tool](/glossary/tool/): A named function an MCP server offers to the model.
- [Streamable HTTP](/glossary/streamable-http/): The MCP transport for servers reached over a network.

## Where to read more

- [The directory](/)
- [All glossary terms](/glossary/)

## Sources

- raw.githubusercontent.com/dbt-labs/dbt-mcp/main/README.md: https://raw.githubusercontent.com/dbt-labs/dbt-mcp/main/README.md (read 10 Nov 2026)

Last reviewed 10 Nov 2026. Canonical: https://datamcpservers.com/glossary/text-to-sql/
