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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| head | Yes | ||
| rows | Yes | ||
| status | Yes | ||
| column_meta | Yes |
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