Gluesync AI Hub · Query Studio AI · gluesync.ai

Ask in plain language. Get SQL you can read, and rows you can trust.

SQL AI is Gluesync's answer path for everyone who already works in SQL. Inside the Control Plane, Query Studio AI drafts and completes statements from the schema it already knows. From any JDBC client, the gluesync.ai virtual table turns a question into one result row with the answer, a reviewable SQL proposal, and a conversation you can continue. Your models, your keys, the caller's permissions, read-only by default.

  1. 01 Ask in Query Studio or SELECT FROM gluesync.ai
  2. 02 Review the proposed SQL; nothing executes on its own
  3. 03 Run it as yourself, read-only, with PII masked

Two surfaces, one contract

Where you work decides how you ask.

Inside the Control Plane

Query Studio AI

A chat that already knows your schema and a Tab autocomplete that finishes the statement you started. The draft lands in the editor; you review it, then run it under Query Studio permissions.

  • Schema-grounded chat, no agent setup required
  • Suffix-only ghost text: it proposes what comes next, never rewrites what you typed
  • PII-tagged columns are masked before anything reaches the model
  • Same bring-your-own vault, keys, and providers as AI Studio
See it in Query Studio →

From any JDBC client

gluesync.ai through Query Forge

A virtual table Core Hub owns and Query Forge serves like any other. DataGrip, DBeaver, Tableau, or a batch job asks a question in SQL and reads the answer back as a row.

  • One row: answer, proposed_sql, citations, conversation_id
  • Name grounding resolves pipeline, agent, schema, and table from the question
  • spark_agent runs a published AI Studio agent with read-only tools only
  • proposed_sql is a draft for review; Gluesync never executes it
See it in Query Forge →

How it works

Grounded, drafted, reviewed. In that order.

  1. 01

    Ground

    The schema Gluesync already knows

    SQL AI reads the schemas, tables, columns, and keys discovered through the agents Gluesync integrates, plus the Enterprise brain's graph and memory. Name a pipeline, agent, schema, or table in the question and Core Hub resolves the scope; explicit IDs win when you pin them.

  2. 02

    Draft

    SQL you can read before you run

    Query Studio AI drops the draft into the editor and completes the statement you are typing with suffix-only ghost text. gluesync.ai returns proposed_sql in the row. Either way the SQL is visible, explainable, and yours to edit.

  3. 03

    Review and run

    Your identity, your controls

    Execution follows the caller's Core Hub role, the per-user data-access matrix, Query Studio's read-only defaults, and PII masking. There is no AI service account, and no path around the permissions you already set.

The gluesync.ai row

One SELECT, one row, everything you need for the next step.

The shortest valid query is a question. Add spark_agent to put a published agent behind the answer, provider_id to pin a model from the vault, or conversation_id to continue the exchange. Only equality predicates on these columns are accepted; everything else fails with a SQLSTATE your code can handle.

answer
Plain-language result, grounded in the schema the caller can already see
proposed_sql
A SQL draft for review. Never auto-executed
citations
JSON text with the schema and documentation the answer leaned on
conversation_id
Pass it back in the next WHERE clause to ask a follow-up
pipeline_id · agent_id
The scope Core Hub resolved from names in the question, or NULL
provider_id · spark_agent
The vault provider and published agent used, when you chose one
Query Forge · any JDBC client
SELECT answer, proposed_sql, conversation_id
FROM gluesync.ai
WHERE question = 'in the crm-sync pipeline, find customers
                  with duplicate emails in dbo.CUSTOMERS'
  AND spark_agent = 'Ops helper';
answer Found 42 CUSTOMERS rows sharing an email in the crm-sync source. The proposal below groups by EMAIL and has not been executed.
proposed_sql SELECT EMAIL, COUNT(*) FROM dbo.CUSTOMERS GROUP BY EMAIL HAVING COUNT(*) > 1;
conversation_id b5acd3d2-7c9d-4100-8296-25b10132ebe0

Capabilities

Everything SQL AI does in Gluesync 2.3

Two surfaces, one contract: the question is grounded in the schema the caller can see, the SQL is a proposal until a person or a governed job runs it, and the answer never carries more than the caller could read.

Query Studio AI

Schema-grounded chat

Open the helper from the Query Studio launcher and ask for the data you need. The draft uses the database, schema, and editor context already visible in your workspace.

  • No agent or allow-list setup required
  • Works with any chat model in the vault
  • Conversations stay in your Core Hub
Query Studio →

Query Studio AI

Tab autocomplete

Press Tab while you write. The helper proposes what comes next as ghost text and never rewrites what you already typed.

  • Suffix-only completions
  • Accepts the editor's current dialect and schema
  • Same provider, same permissions as chat

gluesync.ai

A virtual table any client can read

Query Forge serves gluesync.ai like a regular table. SELECT with a question predicate, read one row back. Prepared parameters are accepted, so applications bind the question instead of concatenating it.

  • answer, proposed_sql, citations, conversation_id
  • Works in DataGrip, DBeaver, Tableau, and batch jobs
  • SQLSTATE errors you can handle in code
Query Forge →

gluesync.ai

Name grounding

Mention a pipeline, agent, schema, or table in the question and Core Hub grounds the answer on the strongest unique match, returning the resolved pipeline_id and agent_id in the row.

  • Whole names, case-insensitive, punctuation as separator
  • Agent beats pipeline, table beats schema
  • Ties fail loudly; nothing resolved runs with empty grounding

gluesync.ai

Spark agents from SQL

spark_agent names a published AI Studio agent by id or unique name. Query Forge applies its instructions and the intersection of its allow-list with the read-only catalog.

  • The agent's assigned provider, or provider_id to override
  • Write tools never run on this path
  • The agent's reply is the answer column
AI Studio →

gluesync.ai

Conversations in SQL

Pass the conversation_id from the previous row in the next WHERE clause and the follow-up keeps the context: limit that query to active customers, add the region, explain the join.

  • Stateful follow-ups from a stateless client
  • The row always returns the id for the next turn
  • Owner-private conversations stored in the Enterprise brain

Safety

PII masked, read-only, no auto-exec

Columns classified as personal data are tagged in Query Studio, masked in the grid, copies, and exports, and never sent to the model in clear. SQL AI only uses read-only tools and never runs its own proposal.

  • classify_table and classify_schema return labels only
  • Per-user, per-connection data-access matrix, deny wins
  • Managers can unmask a column for one session
Security →

Scheduling

From draft to nightly job

Save the reviewed SQL as a Query Studio query. Chronos runs saved queries or custom SQL on a schedule, from a platform event, from a webhook, or as a step in a chained event, and Spark can reopen the same library.

  • Chronos query_studio action with read-only or write acknowledgement
  • list_saved_queries and get_saved_query for Spark and MCP clients
  • 120-second execution window per run
AI Workflows →

Reach

16 dialect engines and MongoDB

Query Studio speaks the dialect of each connected engine, and MongoDB connections accept JSON, mongosh, or SQL. SQL AI drafts in the dialect of the agent you selected.

  • PostgreSQL, Oracle, SQL Server, Db2, MySQL, and more
  • IBM i and midrange estates through Gluesync agents
  • Federated reads across isolated agents with Query Forge
Integrations →

What enterprises do with it

New answer paths for teams that never left SQL.

SQL AI does not ask the business to adopt a new tool. It gives the tools they already trust a way to ask, and gives IT a contract it can govern.

BI and reporting

The dashboard asks the question

A Tableau or DataGrip user runs a gluesync.ai query from the connection they already have. No HTTP client, no API key handling, no copy-paste between tools. The answer and its SQL draft arrive as columns.

Analyst onboarding

Day one on an unfamiliar schema

A new analyst opens Query Studio on a 900-table ERP replica, asks which tables carry the customer identifier, and gets a grounded draft instead of a week of guessing. Tab completion turns intent into joins they can read.

Legacy estates

IBM i, Db2, and Oracle in plain language

Gluesync already replicates from the systems no AI vendor connects to. SQL AI reasons over the schema Gluesync discovers and queries the replica read-only, so the mainframe ledger answers a business question without a new agent on the host.

Data quality

Duplicate, orphan, and drift checks on demand

Ask for duplicate customer emails, orders without a customer, or rows that drifted between source and target. Review the proposed SQL, save it as a Query Studio query, and let Chronos run it every night.

Compliance

Find PII without reading PII

classify_table and classify_schema return labels only. Tagged columns are masked in the grid, copies, exports, and model prompts, and a per-user data-access matrix decides who may unmask a column for one session.

Applications

An assistant behind a prepared statement

Bind the user's question as a JDBC parameter, read answer and proposed_sql from the result set, keep conversation_id for the follow-up. Your application gains an AI answer path with the database driver it already ships.

Operations

Ask the ops agent from the SQL console

spark_agent = 'Ops helper' puts a published Spark agent behind the row. Summarize replication lag, explain a stuck entity, or list yesterday's dead letters without leaving the SQL client that is already open.

Federated questions

One question across isolated agents

Query Forge already joins data across isolated Gluesync agents. SQL AI grounds the question on every schema visible to the caller's token, so a cross-system answer does not need a warehouse load first.

FAQ

SQL AI: questions we hear

Does SQL AI ever execute the SQL it proposes?

No. Query Studio AI places the draft in the editor and gluesync.ai returns it in the proposed_sql column. A person, a saved query, or a Chronos Query Studio action runs it, under the caller's permissions and Query Studio's read-only defaults.

Which model answers, and where do my credentials live?

Both surfaces use the bring-your-own LLM vault configured in AI Studio: OpenAI, OpenAI-compatible endpoints, Anthropic, Azure OpenAI, or a local Ollama model that never leaves your network. Credentials stay encrypted in Core Hub. gluesync.ai accepts provider_id to pin a provider per query.

Can a gluesync.ai query change data?

No. The virtual table only offers the read-only MCP tools the caller's token may already use, never elevates permissions, and never runs proposed_sql. The worst a question can do is cost tokens.

What does the model see from my tables?

Schema names, column names and types, the question, and tool results the caller could read anyway. Columns classified as PII are masked before they reach the model, and Query Studio data-access rules decide which schemas and tables take part in grounding.

What happens when a question names two things that match equally?

gluesync.ai fails with SQLSTATE 22023 and lists the candidates rather than picking one. Rephrase so one name wins, or pin the scope with pipeline_id and agent_id together. When nothing in the question resolves, the query runs with empty grounding instead of failing.

Do I need to set up a Spark agent first?

No. Query Studio AI and the generic gluesync.ai helper work with a configured provider alone. spark_agent is optional: name a published AI Studio agent by id or unique name when you want its instructions and allow-listed read-only tools behind the answer.

Gluesync AI Hub

Your SQL tools already speak the language. Now they can ask.

Bring your own model, keep your own keys, and give every SQL client in the company an answer path that stays inside your permissions. Query Studio AI and gluesync.ai are included in Gluesync 2.3.