Built-in tools
DB-GPT provides a small set of built-in tools in the Agentic Data API.
These tools are the core execution layer for:
- loading reusable skills
- running Python analysis
- executing shell commands
- querying structured data
- rendering HTML reports
Source of truth:
packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/agentic_data_api.py
Built-in tools
Recommended execution order
Skill-driven workflow
load_skillsql_queryorcode_interpreterhtml_interpreterfor final delivery
Structured data workflow
sql_querycode_interpreterhtml_interpreter
Shell-assisted workflow
shell_interpretercode_interpreterhtml_interpreterif the result must be rendered
Tool selection guide
| Tool | Use it for | Avoid using it for |
|---|---|---|
load_skill | Loading skill instructions and workflow definitions | Running code or shell commands |
code_interpreter | Python analysis, calculations, charts, dataframe work | Shell commands or final HTML rendering |
shell_interpreter | CLI commands and environment inspection | Python analysis or final report rendering |
sql_query | Read-only SQL exploration | Writes, schema changes, destructive SQL |
html_interpreter | Final HTML page / report rendering | Computation or shell execution |