Documentation / Chat
The agent and its tools
The catalogue of tools the agent can call, what each one does and the safeguards around it.
The agent only acts on the database through tools. Every call is shown in the conversation, with its parameters and its result. The tools available depend on the access mode and on your privileges: the agent can never do more than you can.
Explore the schema
| Tool | Purpose |
|---|---|
ListTables |
Lists the tables with their number of columns, primary key and foreign keys. This is the agent's starting point. |
FocusTable |
Details one table: columns, types, default values, indexes, foreign keys, and related tables if needed. |
DatabaseSchema |
Returns the full schema. The agent only uses it as a last resort. |
ShowSchemaDiagram |
Shows an entity-relationship diagram, complete or centred on one table. |
Hidden tables do not appear in any of these tools.
Read and write
| Tool | Purpose | Mode |
|---|---|---|
ReadQuery |
Runs a read and returns the rows to the model | Both |
WriteQuery |
Runs INSERT, UPDATE, DELETE, CREATE, ALTER, TRUNCATE |
Read-write |
CreateRecord |
Offers an insert form generated from the table's structure | Read-write |
ReadQuery returns at most 200 rows by default. You set this limit between 10 and 1,000 in Settings → AI agent. When the result is truncated, the agent knows and tells you.
Queries are parameterized: values are passed separately from the SQL.
Show without exposing
These tools show a result in the conversation without sending the data to the model. See Artifacts.
| Tool | What is shown |
|---|---|
ShowQueryResults |
An interactive, sortable, paginated table |
ShowKpis |
Up to six key-figure cards |
ShowChart |
A bar, line, area or pie chart |
ProfileTable |
The statistical profile of a table |
ShowRecord |
The sheet of one record and its relationships |
ExplainQuery |
The execution plan of a query |
ExportDatabase |
An export card, with its download button |
Memory, files and emails
| Tool | Purpose | Mode |
|---|---|---|
UpdateProjectMemory |
Adds, replaces or removes a fact in the project memory | Both |
| File reading | Lists and reads the files of the working folder | Both |
| File writing | Writes, copies or deletes a file. Deleting requires an approval. | Read-write |
SendMail |
Prepares an email that you review before it is sent | Read-write |
ManageMailRecipients |
Lists, adds or removes an allowed recipient | Read-write |
In the working folder, the agent only sees your personal space. The files of the project's other users cannot be read, listed or changed.
How the agent explores
The agent always follows the same order: ListTables, then FocusTable on the useful tables, and DatabaseSchema only if necessary. This order limits the number of tokens used on large databases.
It is also instructed never to state a result it did not get from a tool, and never to reveal a secret (keys, tokens, passwords).
The number of steps
Each tool call counts as one step. An answer is limited to 15 steps by default, to avoid loops. You set this limit between 3 and 50 in Settings → AI agent.
The assistants of the other tabs
The Tables, SQL editor and ERD schema tabs have their own assistants. Each one only receives what it needs and runs nothing by itself: it suggests a filter, a query, indexes or a draft, and you apply it.