Tools Overview
DB-GPT ships with a small set of built-in tools that power the Agentic Data API. These tools are the default execution surface for data analysis, skill-driven workflows, SQL exploration, shell access, and HTML report delivery.
The current source of truth lives in:
packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/agentic_data_api.py
Built-in tools
The core built-in tools are:
load_skillcode_interpretershell_interpretersql_queryhtml_interpreter
They are exposed as agent tools and used by the Agentic Data workflow to move from reasoning → execution → presentation.
Tool selection guide
| Tool | Use it for | Do not use it for |
|---|---|---|
load_skill | Load a skill's instructions and workflow | Running code or shell commands |
code_interpreter | Python analysis, charts, dataframe logic, calculations | Shell commands or final HTML rendering |
shell_interpreter | Bash / CLI commands such as ls, grep, curl, git, pip | Python analysis or skill-specific script execution when a skill says otherwise |
sql_query | Read-only SQL against the selected datasource | Any write/update/delete schema changes |
html_interpreter | Final HTML page / report rendering | General Python computation or shell execution |
Typical execution flow
For most agentic data tasks, the pattern is:
- Use
load_skillwhen the task matches a reusable skill. - Use
sql_queryto inspect structured data. - Use
code_interpreterfor Python analysis, chart generation, and data shaping. - Use
shell_interpreteronly for true shell / CLI work. - Use
html_interpreteras the final presentation step for reports or web pages.