get_all_dbs
Retrieve all databases available in the current TDengine configuration. Use this tool to explore database structures for query planning and data investigation.
Instructions
Get all databases.
Returns:
TaosSqlResponse: All databases in the current Taos configuration.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The get_all_dbs tool handler retrieves all databases from the TDengine client by executing the 'SHOW DATABASES;' SQL query.
@mcp.tool(name="get_all_dbs") def get_all_dbs(ctx: Context) -> TaosSqlResponse: """Get all databases. Returns: TaosSqlResponse: All databases in the current Taos configuration. """ taos = ctx.request_context.lifespan_context.client result = taos.execute_sql("SHOW DATABASES;") return result