mseep-teradata-mcp-server

v0.1.4
mseep-teradata-mcp-server Checked 6 hours ago Published 1 year ago

Model Context Protocol (MCP) server for Teradata, Community edition

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

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

ParameterTypeDescription
database_name *

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", "StatementType"] user_name - user name date - Date to analyze, formatted as `YYYY-MM-DD` dayOfWeek - day of the week to analyze hourOfDay - hour of day to analyze

ParameterTypeDescription
date
dayOfWeek
dimensions
hourOfDay
user_name

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

ParameterTypeDescription
database_name *
table_name *

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

ParameterTypeDescription
table_name *string
no_days

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

ParameterTypeDescription
database_name
user_name

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

ParameterTypeDescription
user_name *string
no_days

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

ParameterTypeDescription
database_name *
table_name *string

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

ParameterTypeDescription
column_name *string
database_name *
table_name *string

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

ParameterTypeDescription
database_name *
table_name *string

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

ParameterTypeDescription
database_name *
table_name *string

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

ParameterTypeDescription
column_name *string
database_name *
table_name *string

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

ParameterTypeDescription
column_name *string
database_name *
table_name *string

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

ParameterTypeDescription
column_name *string
database_name *
table_name *string

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

ParameterTypeDescription
database_name *
obj_name *string

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

ParameterTypeDescription
sql

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

ParameterTypeDescription
database_name *string
obj_name *string

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

ParameterTypeDescription
database_name *
table_name *string

base_tableList

Lists all tables in a database. Arguments: database_name - Database name Returns: ResponseType: formatted response with query results + metadata

ParameterTypeDescription
database_name

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

ParameterTypeDescription
table_name *string
database_name

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

ParameterTypeDescription
database_name

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): 1. Configuration setup using configurable values from rag_config.yml 2. Store user query with '/rag ' prefix stripping 3. Generate query embeddings using either BYOM (ONNXEmbeddings) or IVSM functions based on config 4. Perform semantic search against precomputed chunk embeddings 5. Return context chunks for answer generation CONFIGURAT…

ParameterTypeDescription
question *string
k

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:** - **Performance Ranking**: Sort clusters by any performance metric to identify top resource consumers - **Resource Impact Assessment**: Compare clusters by CPU usage, I/O volume, and execution complexity - **Skew Problem Detectio…

ParameterTypeDescription
limit_resultsinteger
sort_by_metricstring

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:** 1. **Query Log Extraction**: Extracts SQL queries from DBC.DBQLSqlTbl with comprehensive performance metrics 2. **Performance Metrics Calculation**: Computes CPU skew, I/O skew, PJI (Physic…

ParameterTypeDescription
max_queriesinteger
optimal_kinteger

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:** - **SQL Pattern Recognition**: Analyze actual query structures, joins, predicates, and functions - **Performance Correlation**: Connect query patterns to specific performance characteristics…

ParameterTypeDescription
cluster_ids *array
limit_per_clusterinteger
metricstring

tmpl_nameOfTool

<description of what the tool is for> Arguments: arguments - arguments to analyze Returns: ResponseType: formatted response with query results + metadata

ParameterTypeDescription
argument *

sec_rolePermissions

Get permissions for a role. Arguments: role_name - role name to analyze Returns: ResponseType: formatted response with query results + metadata

ParameterTypeDescription
role_name *string

sec_userDbPermissions

Get permissions for a user. Arguments: user_name - user name to analyze Returns: ResponseType: formatted response with query results + metadata

ParameterTypeDescription
user_name *string

sec_userRoles

Get roles assigned to a user. Arguments: user_name - user name to analyze Returns: ResponseType: formatted response with query results + metadata

ParameterTypeDescription
user_name *string