Available Tools
| Tool | Command Name | Description |
|---|---|---|
| Execute SQL | execute_sql or execute_sql_{id} | Execute single or multiple SQL statements (separated by semicolons) |
| Search Objects | search_objects or search_objects_{id} | Search and list database objects (schemas, tables, columns, procedures, indexes) with pattern matching and token-efficient progressive disclosure |
| Custom Tools | User-defined names | Define reusable, parameterized SQL operations in your dbhub.toml configuration file |
Tool Configuration
By default, bothexecute_sql and search_objects are enabled for each database source. You can customize which tools are available using [[tools]] entries in your dbhub.toml:
Default Behavior
If no[[tools]] entries are defined for a source, both execute_sql and search_objects are enabled by default:
Selective Tool Exposure
Control which tools are exposed for each database source:Per-Tool Settings
Configure built-in tools with specific settings likereadonly and max_rows:
readonly and max_rows settings.
Mixed Configuration
Different sources can have different tool configurations:Custom Tools
You can also define custom tools alongside built-in tools:Tool Naming
The tool name varies based on your configuration: Single database without--id:
execute_sql
Single database with --id:
execute_sql_prod
Multiple databases via TOML config:
execute_sql_prod_pg and execute_sql_staging_mysql
Special characters in source IDs (hyphens, dots, etc.) are converted to underscores in tool names. For example,
prod-pg becomes execute_sql_prod_pg.Next Steps
Execute SQL
Execute SQL queries and statements on your database
Search Objects
Search and explore database schemas, tables, and objects
Custom Tools
Create reusable parameterized SQL operations