Connect to databases, run SQL safely, explore metadata, and retrieve detailed table structures across Snowflake, Postgres, MySQL, SQLite, and BigQuery.
_query_database
: Execute SQL on a chosen connection with limits, params, and optional Google Sheets export._add_database_connection
: Create or update a named connection with credentials, description, and access controls._delete_database_connection
: Remove a connection that is no longer required._list_database_connections
: List available connections with metadata for discovery and governance._search_metadata
: Search databases, schemas, tables, and columns to locate relevant objects quickly._data_explorer
: Browse objects by database and schema to refine scope and discover structures._get_full_table_details
: Return detailed schema info for a table including columns, types, and constraints._run_sqlite_cli_commands
: Run SQLite CLI commands for local prototyping and import or export tasks.Execute SQL
Manage Connections
Search Metadata
Table Insights
SQLite Passthrough
_query_database
Name | Definition | Format |
---|---|---|
connection_id | Target connection identifier. | String |
query | SQL text to execute. Optional if using note_id or note_name . | String |
database_name | Database name required by some engines such as Postgres. | String |
max_rows | Maximum rows to return. Default 20. | Integer |
max_rows_override | If true , bypasses default row limit. Use with caution. | Boolean |
params | Named parameters for parameterized queries. | Object |
note_id | Execute a saved query by ID. | String |
note_name | Execute a saved query by name. | String |
export_to_google_sheet | If true , export results to Google Sheets. | Boolean |
export_title | Title to use for the exported Google Sheet. | String |
_add_database_connection
Name | Definition | Format |
---|---|---|
connection_id | Unique name for this connection. | String |
connection_string | SQLAlchemy compliant URI for the database engine. | String |
description | Human readable description of purpose and scope. | String |
allowed_bot_ids | Data agents allowed to use this connection. Use "*" for all or provide explicit IDs. | List |
_delete_database_connection
Name | Definition | Format |
---|---|---|
connection_id | Connection to remove from the registry. | String |
_list_database_connections
_search_metadata
Name | Definition | Format |
---|---|---|
search_string | Keyword or pattern to search in metadata. | String |
connection_id | Restrict search to a specific connection. | String |
database | Filter to a database. | String |
schema | Filter to a schema. | String |
table | Filter to a table name. | String |
top_n | Maximum number of results to return. | Integer |
_data_explorer
Name | Definition | Format |
---|---|---|
search_string | Optional partial match string for quick exploration. | String |
connection_id | Connection context for exploration. | String |
database | Target database name. Not valid for SQLite. | String |
schema | Target schema name. Not valid for SQLite. | String |
table | Exact table name to locate. | String |
top_n | Maximum number of results to return. | Integer |
_get_full_table_details
Name | Definition | Format |
---|---|---|
connection_id | Connection where the table lives. | String |
database | Database containing the table. | String |
schema | Schema containing the table. | String |
table | Table name for which to retrieve details. | String |
_run_sqlite_cli_commands
Name | Definition | Format |
---|---|---|
connection_id | Must reference a SQLite connection. | String |
commands | CLI commands such as .tables or .schema . | List |
_search_metadata
and _data_explorer
to identify the right tables and columns before writing joins._get_full_table_details
for core entities to build a lightweight data dictionary._run_sqlite_cli_commands
before promoting to a warehouse._add_database_connection
or list with _list_database_connections
._search_metadata
or _data_explorer
to locate relevant objects._get_full_table_details
for types, keys, and constraints._query_database
, set max_rows
, and prefer params
for safety. Optionally export to Google Sheets._delete_database_connection
and keep descriptions current.snowflake_tools
for staging and ingestion.harvester_tools
to keep metadata fresh for search.google_drive_tools
and attach outputs via file_manager_tools
.project_manager_tools
.git_action
.allowed_bot_ids
for access control. "*"
grants access to all data agents.database_name
when querying.max_rows
or paginate.