Skip to main content
Glama
Abeautifulsnow

TDengine Query MCP Server

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
NameRequiredDescriptionDefault

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Abeautifulsnow/tdengine-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server