This page covers installation and server-side configuration for built-in database tools.
Use this together with:
Built-in database tools include:
database_query_v1/v1/tools/database-queryChoose the smallest extra that matches your database:
If you only want the database tool itself, tool-database is the simplest entry point. If you want a narrower install, use the driver-specific extra directly.
The database-db2 extra is only published for non-aarch64 platforms in the current package metadata.
Examples:
database_query_v1 will also work when you install broader bundles that include database support, such as private-gpt[database], private-gpt[tool-database], private-gpt[tools], or private-gpt[core].
Database query does not have a global enabled flag in settings.yaml. Instead, the server uses runtime limits from database_query, and each request provides the target database through a sql_database artifact.
The database connection is not configured globally in settings.yaml. Pass it in the request as a sql_database artifact.
See Tools for Messages API and standalone tool endpoint examples.