Explore
Explore a database schema token-efficiently via the DBHub tools; use before writing SQL against a…
by bytebase · MIT
The skill
Explore a database schema token-efficiently via the DBHub tools; use before writing SQL against a schema you haven't seen.
DBHub Schema Exploration
Use search_objects with progressive disclosure — always coarse to fine:
- Orient:
object_type: "table",detail_level: "names"(pattern defaults to%, matching all). Cheap even on large schemas. - Narrow:
detail_level: "summary"for the tables that matter (row/column counts, comments), using a pattern like%order%rather than listing everything. - Drill in:
detail_level: "full"only for the tables you will actually query (complete columns, types, keys) — never as a first, pattern-less call on an unfamiliar schema.
Searching object_type: "column" with a pattern like %email% is the fastest way to find which tables hold a concept.
Querying
- Always add
LIMIT(TOPon SQL Server,FETCH FIRST n ROWS ONLYon Oracle) when sampling data — start withLIMIT 10. Prefer aggregates (COUNT,GROUP BY) over pulling rows to characterize data. - Check a table's
fulldetail before writing JOINs so you use real column names — don't guess and retry. - This plugin is read-only; if a write is rejected, tell the user rather than trying to work around it.
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: bytebase/explore-78030422108.
Details
- Publisher
- bytebase
- Category
- Data & Analytics › Databases & SQL
- License
- MIT
- Updated
- 2026-10-13
References
More from bytebase
- Fix Bug Use when given a GitHub issue URL or number to investigate and implement a fix.
- Testing Run and troubleshoot tests for DBHub, including unit tests, integration tests with Testcontainers…
- Setup Connect DBHub to a database or fix a failing connection; also covers changing the DSN, write acce…
- Dbhub Guide for querying databases through DBHub MCP server.