Skip to Content
ToolsDatabaseSetup & Configuration

Setup & Configuration

Create, configure, and connect database connections in Chocolate Factory.

For background on what database connectors are and when to use them, see the Overview.

Manage Database Connections

In Chocolate Factory, database connections are managed from the Database & Tools page in the Databases tab. From here you can view all connections, open a connection’s detail page, and see how many agents use each one.

Database connections list

Supported Databases

Chocolate Factory supports the following database engines:

DatabaseAuth methods
PostgresConnection string
MySQLConnection string
Aurora PostgresConnection string, IAM
Aurora MySQLConnection string, IAM
Microsoft SQL ServerConnection string
MariaDBConnection string
OracleConnection string
IBM Db2Connection string
MongoDBConnection string

Create a Database Connection

To register a new database connection:

  1. Navigate to Database & Tools and open the Databases tab.
  2. Click Add Database.
  3. Fill in the connection details:
    • Name → a descriptive name shown in the Tools list and agent configuration.
    • Description → optional context about what the database is used for.
    • Type → select the database engine. See Supported Databases.
    • Connection String or IAM Authentication → provide credentials based on the database type. See Authentication in the overview for supported auth methods.
    • Read Only → optionally restrict the connection to read-only queries.
  4. Click Create Database.

Create database connection

Configure a Database Connection

After a connection is created, open it from the Databases tab to review its status and update settings.

  1. Open the connection from Database & ToolsDatabases tab.
  2. On the Basic Information tab, click Edit.
  3. Update the Name or Description, then click Save Changes.

Edit database connection

The Connection String (or IAM connection details), Type, and Read Only setting are configured at creation time and cannot be changed from this page.

Health Check

To verify the database is reachable. Status is shown as healthy, unreachable, or unknown.

Topology

The Topology tab lets you discover and document your database structure so agents understand what data is available.

Database topology

On first visit, click Sync Schema to read all tables and columns from your database. Once synced, you can:

  • Browse tables and columns → expand each table to view its fields, data types, and primary keys.
  • Add descriptions → click any table or column description to document what it contains. These descriptions are included when agents call list_tables.
  • Include or exclude tables → use the toggle on each table to control whether it appears in the agent’s AI context. Excluded tables are not visible to agents.
  • Bulk actions → exclude or include multiple tables at once, or filter by schema.
  • Export or import CSV → export descriptions to CSV for offline editing, then import them back in bulk.

Re-run Sync Schema whenever your database structure changes. Chocolate Factory updates the topology and cleans up stale descriptions for removed tables or columns.

Connecting Databases to Agents

A database connection must be attached to an agent before that agent can use its tools:

  1. Navigate to Agent from the main menu → open the agent from Agents Management.
  2. In the Tools tab, then scroll to the Databases section and click Add Database.
  3. Click Add on the database connection you want to connect.
  4. Expand Included Tables on the connected database to review which tables the agent can access.
  5. Save the agent configuration.

Connect database to agent

When attached, the agent receives list_tables and execute_sql tools for that connection. Only tables included in the topology (not excluded) are available to the agent. If Read Only is enabled on the connection, the agent cannot run write queries.

See Setup & Configuration for the full agent configuration guide.

Last updated on