Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
DATABASE_URI | Yes | Teradata database connection URI in the format teradata://<USERNAME>:<PASSWORD>@<HOST_URL>:1025/<USERNAME> |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
tdvs_tools_prompt | Main prompt for Teradata Enterprise Vector Store operations. |
tdvs_rag_prompt | Prompt for Teradata Enterprise Vector Store and RAG (Retrieval Augmented Generation) based operations. |
qlty_databaseQuality | Database data quality assessment. (prompt_type: reporting) |
_testMyServer | Test all the MCP tools, prompts and resources. (prompt_type: reporting) |
base_query | Help users interact with Teradata databases effectively. |
base_tableBusinessDesc | You are a Teradata DBA who is an expert in describing the business use of tables in a database. |
base_databaseBusinessDesc | You are a Teradata DBA who is an expert in describing the business use of databases. |
dba_tableArchive | The following prompt is used to guide the Teradata DBA in finding opportunities for archiving data. (prompt_type: reporting) |
dba_databaseLineage | You are a Teradata DBA who is an expert in finding the lineage of tables in a database. (prompt_type: context) |
dba_tableDropImpact | You are a Teradata DBA who is an expert in finding the impact of dropping a table. (prompt_type: reporting) |
dba_databaseHealthAssessment | You are a Teradata DBA who is an expert in assessing the health of a database. (prompt_type: reporting) |
dba_userActivityAnalysis | Analyze Teradata user activity patterns for the past 7 days (prompt_type: reporting) |
dba_systemVoice | Analyze Teradata user activity patterns for the past 7 days (prompt_type: reporting) |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
base_columnDescription | Shows detailed column information about a database table via SQLAlchemy, bind parameters if provided (prepared SQL), and return the fully rendered SQL (with literals) in metadata. Arguments: database_name - Database name obj_name - table or view name Returns: ResponseType: formatted response with query results + metadata |
base_databaseList | Lists all databases in the Teradata System. Returns: ResponseType: formatted response with query results + metadata |
base_readQuery | Execute a SQL query via SQLAlchemy, bind parameters if provided (prepared SQL), and return the fully rendered SQL (with literals) in metadata. Arguments: sql - SQL text, with optional bind-parameter placeholders Returns: ResponseType: formatted response with query results + metadata |
base_tableAffinity | Get tables commonly used together by database users, this is helpful to infer relationships between tables via SQLAlchemy, bind parameters if provided (prepared SQL), and return the fully rendered SQL (with literals) in metadata. Arguments: database_name - Database name object_name - table or view name Returns: ResponseType: formatted response with query results + metadata |
base_tableDDL | Displays the DDL definition of a table via SQLAlchemy, bind parameters if provided (prepared SQL), and return the fully rendered SQL (with literals) in metadata. Arguments: database_name - Database name table_name - table name Returns: ResponseType: formatted response with query results + metadata |
base_tableList | Lists all tables in a database. Arguments: database_name - Database name Returns: ResponseType: formatted response with query results + metadata |
base_tablePreview | This function returns data sample and inferred structure from a database table or view via SQLAlchemy, bind parameters if provided (prepared SQL), and return the fully rendered SQL (with literals) in metadata. Arguments: table_name - table or view name database_name - Database name Returns: ResponseType: formatted response with query results + metadata |
base_tableUsage | Measure the usage of a table and views by users in a given schema, this is helpful to infer what database objects are most actively used or drive most value via SQLAlchemy, bind parameters if provided (prepared SQL), and return the fully rendered SQL (with literals) in metadata. Arguments: database_name - Database name Returns: ResponseType: formatted response with query results + metadata |
sql_Analyze_Cluster_Stats | ANALYZE SQL QUERY CLUSTER PERFORMANCE STATISTICS This tool analyzes pre-computed cluster statistics to identify optimization opportunities without re-running the clustering pipeline. Perfect for iterative analysis and decision-making on which query clusters to focus optimization efforts. ANALYSIS CAPABILITIES:
AVAILABLE SORTING METRICS:
PERFORMANCE CATEGORIZATION: Automatically categorizes clusters using configurable thresholds (from sql_opt_config.yml):
TYPICAL ANALYSIS WORKFLOW:
OPTIMIZATION DECISION FRAMEWORK:
OUTPUT FORMAT: Returns detailed cluster statistics with performance rankings, categories, and metadata for LLM analysis and optimization recommendations. |
sql_Execute_Full_Pipeline | COMPLETE SQL QUERY CLUSTERING PIPELINE FOR HIGH-USAGE QUERY OPTIMIZATION This tool executes the entire SQL query clustering workflow to identify and analyze high CPU usage queries for optimization opportunities. It's designed for database performance analysts and DBAs who need to systematically identify query optimization candidates. FULL PIPELINE WORKFLOW:
PERFORMANCE METRICS EXPLAINED:
CONFIGURATION (from sql_opt_config.yml):
OPTIMIZATION WORKFLOW: After running this tool, use:
USE CASES:
PREREQUISITES:
|
sql_Retrieve_Cluster_Queries | RETRIEVE ACTUAL SQL QUERIES FROM SPECIFIC CLUSTERS FOR PATTERN ANALYSIS This tool extracts the actual SQL query text and performance metrics from selected clusters, enabling detailed pattern analysis and specific optimization recommendations. Essential for moving from cluster-level analysis to actual query optimization. DETAILED ANALYSIS CAPABILITIES:
QUERY SELECTION STRATEGIES:
AVAILABLE METRICS FOR SORTING:
AUTOMATIC PERFORMANCE CATEGORIZATION: Each query is categorized using configurable thresholds (from sql_opt_config.yml):
Use thresholds set in config file for, CPU - high, very_high, Skew moderate, high, severe TYPICAL OPTIMIZATION WORKFLOW:
QUERY LIMIT STRATEGY:
OUTPUT INCLUDES:
|
qlty_columnSummary | Get the column summary statistics for a table. Arguments: database_name - name of the database table_name - table name to analyze Returns: ResponseType: formatted response with query results + metadata |
qlty_distinctCategories | Get the destinct categories from column in a table. Arguments: database_name - name of the database table_name - table name to analyze column_name - column name to analyze Returns: ResponseType: formatted response with query results + metadata |
qlty_missingValues | Get the column names that having missing values in a table. Arguments: database_name - name of the database table_name - table name to analyze Returns: ResponseType: formatted response with query results + metadata |
qlty_negativeValues | Get the column names that having negative values in a table. Arguments: database_name - name of the database table_name - table name to analyze Returns: ResponseType: formatted response with query results + metadata |
qlty_rowsWithMissingValues | Get the rows with missing values in a table. Arguments: database_name - name of the database table_name - table name to analyze column_name - column name to analyze Returns: ResponseType: formatted response with query results + metadata |
qlty_standardDeviation | Get the standard deviation from column in a table. Arguments: database_name - name of the database table_name - table name to analyze column_name - column name to analyze Returns: ResponseType: formatted response with query results + metadata |
qlty_univariateStatistics | Get the univariate statistics for a table. Arguments: database_name - name of the database table_name - table name to analyze column_name - column name to analyze Returns: ResponseType: formatted response with query results + metadata |
rag_Execute_Workflow | Execute complete RAG workflow to answer user questions based on document context. This tool handles the entire RAG pipeline in a single step when a user query is tagged with /rag. WORKFLOW STEPS (executed automatically):
CONFIGURATION VALUES (from rag_config.yml):
TECHNICAL DETAILS:
CRITICAL ANSWERING RULES:
LANGUAGE RESTRICTIONS:
BEHAVIORAL REQUIREMENTS:
EXECUTION: Run completely silently - user only sees their question and the final context-grounded answer. |
dba_databaseSpace | Get database space if database name is provided, otherwise get all databases space allocations. Arguments: database_name - database name Returns: ResponseType: formatted response with query results + metadata |
dba_resusageSummary | Get the Teradata system usage summary metrics by weekday and hour for each workload type and query complexity bucket. Arguments:
dimensions - list of dimensions to aggregate the resource usage summary. All dimensions are: ["LogDate", "hourOfDay", "dayOfWeek", "workloadType", "workloadComplexity", "UserName", "AppId"]
user_name - user name
date - Date to analyze, formatted as |
dba_tableSpace | Get table space used for a table if table name is provided or get table space for all tables in a database if a database name is provided." Arguments: database_name - database name table_name - table name Returns: ResponseType: formatted response with query results + metadata |
dba_tableSqlList | Get a list of SQL run against a table in the last number of days. Arguments: table_name - table name no_days - number of days Returns: ResponseType: formatted response with query results + metadata |
dba_tableUsageImpact | Measure the usage of a table and views by users, this is helpful to understand what user and tables are driving most resource usage at any point in time. Arguments: database_name - database name to analyze user_name - user name to analyze |
dba_userSqlList | Get a list of SQL run by a user in the last number of days if a user name is provided, otherwise get list of all SQL in the last number of days. Arguments: user_name - user name no_days - number of days Returns: ResponseType: formatted response with query results + metadata |
tmpl_nameOfTool | Arguments: arguments - arguments to analyze Returns: ResponseType: formatted response with query results + metadata |
plot_line_chart | Function to generate a line plot for labels and columns. Columns mentioned in labels are used for x-axis and columns are used for y-axis. PARAMETERS: table_name: Required Argument. Specifies the name of the table to generate the donut plot. Types: str labels:
Required Argument.
Specifies the labels to be used for the line plot.
Types: str
columns:
Required Argument.
Specifies the column to be used for generating the line plot.
Types: List[str] RETURNS: dict |
plot_pie_chart | Function to generate a pie chart plot for labels and columns. Columns mentioned in labels are used as labels and column is used to plot. PARAMETERS: table_name: Required Argument. Specifies the name of the table to generate the donut plot. Types: str labels:
Required Argument.
Specifies the labels to be used for the line plot.
Types: str
column:
Required Argument.
Specifies the column to be used for generating the line plot.
Types: str RETURNS: dict |
plot_polar_chart | Function to generate a polar area plot for labels and columns. Columns mentioned in labels are used as labels and column is used to plot. PARAMETERS: table_name: Required Argument. Specifies the name of the table to generate the donut plot. Types: str labels:
Required Argument.
Specifies the labels to be used for the line plot.
Types: str
column:
Required Argument.
Specifies the column to be used for generating the line plot.
Types: str RETURNS: dict |
plot_radar_chart | Function to generate a radar plot for labels and columns. Columns mentioned in labels are used as labels and column is used to plot. PARAMETERS: table_name: Required Argument. Specifies the name of the table to generate the donut plot. Types: str labels:
Required Argument.
Specifies the labels to be used for the line plot.
Types: str
columns:
Required Argument.
Specifies the column to be used for generating the line plot.
Types: str RETURNS: dict |
sec_rolePermissions | Get permissions for a role. Arguments: role_name - role name to analyze Returns: ResponseType: formatted response with query results + metadata |
sec_userDbPermissions | Get permissions for a user. Arguments: user_name - user name to analyze Returns: ResponseType: formatted response with query results + metadata |
sec_userRoles | Get roles assigned to a user. Arguments: user_name - user name to analyze Returns: ResponseType: formatted response with query results + metadata |
dba_databaseVersion | Get Teradata database version information. |
dba_flowControl | Get the Teradata flow control metrics for a specified date range. |
dba_featureUsage | Get the user feature usage metrics for a specified date range. |
dba_userDelay | Get the Teradata user delay metrics for a specified date range. |
dba_sessionInfo | Get the Teradata session information for user. |
dba_systemSpace | Get the Teradata total system database space usage. |