Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Set the log level (DEBUG, INFO, WARN, ERROR) | INFO |
| TDENGINE_HOST | No | Database host for environment | localhost |
| TDENGINE_PORT | No | Database port | 6041 |
| TDENGINE_TIMEOUT | No | Set the connection timeout in seconds | 30 |
| TDENGINE_DATABASE | No | Database name | log |
| TDENGINE_PASSWORD | No | Database password | taosdata |
| TDENGINE_USERNAME | No | Database username | root |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| test_table_exists | Important: Check if the |
| get_all_dbs | Get all databases. |
| get_all_stables | Get all stables. |
| switch_db | Switch to the specified database. |
| get_field_infos | Get the field information of the specified stable. |
| query_taos_db_data | Important: Run a read-only SQL query on |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| taos_query | A guide to steer llm how to query Taos(涛思) database. |
| describe_query_prompt | Generate a prompt to ask an LLM to explain what a given SQL query does. Args: query: The SQL query string. Returns: A list containing a prompt message to explain the query. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| get_current_taos_database | Get current mysql database. |
| get_current_db_all_taos_schema | Provide all schema in the current database. |