teradata-mcp-server
v0.2.8Model 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.
rag_Execute_Workflow 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 CONFIGURATIO…
| Parameter | Type | Description |
|---|---|---|
question * | string | |
k |
sql_Analyze_Cluster_Stats 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 Detection**: Identify clusters w…
| Parameter | Type | Description |
|---|---|---|
limit_results | ||
sort_by_metric | string |
sql_Execute_Full_Pipeline 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 (Physical to Logical I/O ra…
| Parameter | Type | Description |
|---|---|---|
max_queries | ||
optimal_k |
sql_Retrieve_Cluster_Queries 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 - **Optimization Ide…
| Parameter | Type | Description |
|---|---|---|
cluster_ids * | array | |
limit_per_cluster | integer | |
metric | string |
graph_analyseDatabase Graph Analysedatabase
Composite graph analysis — runs findRootObjects, connectedComponents, detectCycles, and bfsLevels in a single MCP call with ONE shared edge fetch. This tool eliminates the scalability bottleneck of serial MCP round- trips by combining four graph analyses that would otherwise require four separate tool calls, each independently fetching the same edge set from Teradata. Performance vs individual tools: - 1 SQL round-trip instead of 4 (shared edge fetch) - 1 MCP response instead of 4 (eliminates stdio serialisation overhead) - Same algorithmi…
| Parameter | Type | Description |
|---|---|---|
container_pattern * | string | |
edge_repository | string | |
exclude_objects | string | |
max_depth_down | integer | |
max_depth_up | integer | |
top_n_roots | integer |
graph_bfsLevels Graph Bfslevels
Compute BFS shortest-path hop distances from one or more root nodes. Pure-Python implementation — no stored procedure required. WHEN TO USE THIS TOOL vs graph_traceLineage: ------------------------------------------------------- Use graph_bfsLevels when asked to: - Sequence objects for deployment or migration (ORDER BY downstream_level gives correct topological deployment order for root objects) - Group objects into migration waves (nearest_root identifies which of the input root tables each object belongs to) - Find which migration ro…
| Parameter | Type | Description |
|---|---|---|
root_node_list * | string | |
edge_repository | string | |
exclude_objects | string | |
include_containers | string | |
max_depth_down | integer | |
max_depth_up | integer |
graph_connectedComponents Graph Connectedcomponents
Identify all Weakly Connected Components (WCC) in the dependency graph. Pure-Python implementation — no stored procedure required. Issues a single SQL SELECT to fetch the scoped edge set, then performs Union-Find WCC partitioning entirely in the MCP server process. A connected component is a maximal set of nodes where every node can reach every other node when edge direction is ignored. This partitions the graph into isolated sub-graphs. Use this tool for: - Understanding graph structure and partitioning - Identifying isolated sub-graphs…
| Parameter | Type | Description |
|---|---|---|
container_pattern * | string | |
edge_repository | string | |
exclude_objects | string |
graph_detectCycles Graph Detectcycles
Detect circular dependencies (cycles) in the dependency graph. Pure-Python implementation — no stored procedure required. Issues a single SQL SELECT to fetch the scoped edge set, then performs WCC partitioning followed by iterative DFS cycle detection entirely in the MCP server process. Use this tool for: - Validating graph integrity (DAG property) - Finding objects that form circular references - Identifying stub-then-replace code patterns - Debugging topological sort hangs - Pre-deployment cycle checks Arguments: container_pa…
| Parameter | Type | Description |
|---|---|---|
container_pattern * | string | |
edge_repository | string | |
exclude_objects | string |
graph_edgeContractDDL Graph Edgecontractddl
Generate DDL for a Graph Edge Contract-conforming table or view. This tool does NOT require a database connection — it generates DDL text from templates. No SQL is executed. The conn parameter is accepted for ModuleLoader calling convention compatibility but is not used. Required columns in the generated schema (6): Src_Container_Name, Src_Object_Name, Src_Kind, Tgt_Container_Name, Tgt_Object_Name, Tgt_Kind Optional enrichment columns (2): Edge_Relationship — nature of the edge (ETL_INPUT, ETL_OUTPUT, DIRECT…) Transformation_Type…
| Parameter | Type | Description |
|---|---|---|
target_database * | string | Database in which to create the edge repository. For AI-Native Data Products this is typically {ProductName}_Semantic. Example: 'StGeoMortgage_Semantic' |
object_name | string | Name for the edge table/view. Default: 'EdgeRepository' |
output_type | string | 'TABLE' or 'VIEW'. TABLE: generates CREATE TABLE DDL + separate sample DML. Includes all 6 required + 2 optional columns. VIEW: generates a CREATE… |
graph_findRootObjects Graph Findrootobjects
Find root objects (objects with no upstream dependencies) in specified containers. Root objects are ideal starting points for downstream impact analysis as they represent the foundational data sources that nothing else depends upon. Use this for: - Finding starting points for downstream impact analysis - Identifying source tables and base objects in data pipelines - Discovering independent objects that can be safely analysed in isolation - Understanding data flow origins in a schema or database - Planning migration or refactoring by identifying foundation…
| Parameter | Type | Description |
|---|---|---|
container_pattern * | string | |
edge_repository | string | |
exclude_objects | string | |
object_types | string | |
return_format | string |
graph_traceLineage Graph Tracelineage
Analyse object dependencies in Teradata. Supports wildcards (%) and CSV patterns. Hybrid implementation — no stored procedure required. Python constructs Teradata recursive CTEs that execute entirely server-side. Only the reachable subgraph crosses the network — not the full edge table. Examples: 'DB.Table' (single), '%WBC%.%' (wildcard), 'DB.T1,DB.T2' (CSV) Finds upstream dependencies (what the object depends on) and downstream dependents (what depends on the object). Returns nodes and edges representing the dependency subgraph. When multiple pa…
| Parameter | Type | Description |
|---|---|---|
object_name * | string | |
edge_repository | string | |
exclude_objects | string | |
include_containers | string | |
max_depth_down | integer | |
max_depth_up | integer | |
return_format | string |
base_columnMetadata Base Columnmetadata
Retrieve detailed technical column metadata for Teradata tables and views, including exact Teradata type codes, character sets (LATIN/UNICODE), decimal precision, scale, nullability, and index classification. Use when the user needs precise Teradata-specific column information, not just basic column names and types. For a simple list of columns and types for a single object, use base_columnDescription instead. Supports bulk retrieval across many objects with payload and time budgets. Resolution paths: Tables (T, O, Q) — DBC.ColumnsVX + DBC.IndicesVX. No HELP COLUMN.…
| Parameter | Type | Description |
|---|---|---|
database_name * | string | |
exclude_objects | ||
fields | ||
max_execution_seconds | ||
max_payload_kb | ||
max_workers | ||
object_name | ||
table_kind |
base_readQuery Base Readquery
Execute a user-provided SQL query against Teradata and return the results. Use this tool ONLY when the user supplies an explicit SQL statement or a request that includes filter conditions (WHERE clause, aggregations, JOINs, etc.). Do NOT use for simply browsing or sampling rows from a table — use base_tablePreview for that. The sql parameter is required and must contain the full SQL text. Arguments: sql - SQL text, with optional bind-parameter placeholders persist - Set to True to persist the results as a table and reuse it later. Recommended for large result se…
| Parameter | Type | Description |
|---|---|---|
persist | boolean | |
row_limit | ||
sql |
base_saveDDL Base Saveddl
Extract the DDL for a Teradata table, view, or stored procedure and SAVE it as a .sql file on disk. Use this tool ONLY when the user explicitly wants to export, write, download, or persist DDL to a file. Do NOT use simply to display or view DDL in the conversation — use base_tableDDL to display DDL without saving. Arguments: database_name - Database name (e.g., 'MKTG_USR') table_name - Object name (e.g., 'SP_LOAD_VARIABLES_ARGUMENTARIO_IAG_FICHA_CLIENTE'). Accepts comma-separated values for bulk retrieval. object_type - Type of object: 'PROCEDURE', 'TABLE', 'VIEW'…
| Parameter | Type | Description |
|---|---|---|
database_name * | string | |
table_name * | string | |
object_type | string | |
output_dir | string |
plot_line_chart Plot Line Chart
Generate a line chart that reads directly from a Teradata table — do NOT use base_readQuery to pre-fetch data first. Specify the table in `table_name`, the x-axis column in `labels` (typically a date or time field), and one or more y-axis numeric columns in `columns`. Use for time-series, trend lines, or sequential data. Do NOT use for proportional category breakdowns — use plot_pie_chart or plot_polar_chart. Do NOT use for multi-dimensional spider comparisons — use plot_radar_chart. PARAMETERS: table_name: Required Argument. Specifies the name o…
| Parameter | Type | Description |
|---|---|---|
columns * | Required Argument. Specifies the y-axis numeric column(s) for the line chart. Types: List[str] | |
labels * | string | Required Argument. Specifies the x-axis column (typically date or time). Types: str |
table_name * | string | Required Argument. Specifies the name of the table to generate the line chart. Types: str |
plot_pie_chart Plot Pie Chart
Generate a pie chart that reads directly from a Teradata table — do NOT use base_readQuery to pre-fetch or aggregate data first. Specify the table in `table_name`, the category column in `labels`, and the numeric value column in `column`. Use when the user asks for proportions, shares, or how a total breaks down by category. For polar area charts, use plot_polar_chart. For time-series trends, use plot_line_chart. PARAMETERS: table_name: Required Argument. Specifies the name of the table to generate the pie chart. Types: str label…
| Parameter | Type | Description |
|---|---|---|
column * | string | Required Argument. Specifies the numeric value column for the pie chart. Types: str |
labels * | string | Required Argument. Specifies the category column for labels. Types: str |
table_name * | string | Required Argument. Specifies the name of the table to generate the pie chart. Types: str |
plot_polar_chart Plot Polar Chart
Generate a polar area chart that reads directly from a Teradata table — do NOT use base_readQuery first. Specify the table in `table_name`, the category column in `labels`, and the numeric value column in `column`. Use when the user explicitly asks for a polar chart or polar area chart. For standard pie-style breakdowns, use plot_pie_chart instead. PARAMETERS: table_name: Required Argument. Specifies the name of the table to generate the polar chart. Types: str labels: Required Argument. Specifies the cate…
| Parameter | Type | Description |
|---|---|---|
column * | string | Required Argument. Specifies the numeric value column for the polar chart. Types: str |
labels * | string | Required Argument. Specifies the category column for labels. Types: str |
table_name * | string | Required Argument. Specifies the name of the table to generate the polar chart. Types: str |
plot_radar_chart Plot Radar Chart
Generate a radar chart (spider chart or web chart) that reads directly from a Teradata table — do NOT use base_readQuery to pre-fetch data first. Specify the table in `table_name`, the category column in `labels`, and one or more value columns in `columns`. Use when the user asks for a spider chart, radar chart, web chart, or multi-dimensional comparison across categories. For time-series or trend data, use plot_line_chart instead. PARAMETERS: table_name: Required Argument. Specifies the name of the table to generate the radar chart. Type…
| Parameter | Type | Description |
|---|---|---|
columns * | Required Argument. Specifies the value column(s) for the radar chart. Types: str | List[str] | |
labels * | string | Required Argument. Specifies the category column for labels. Types: str |
table_name * | string | Required Argument. Specifies the name of the table to generate the radar chart. Types: str |
base_databaseList Base Databaselist
List all databases or schemas available in the Teradata system. ONLY call when the user explicitly asks which databases or schemas exist on the system. Do NOT call this tool as a preliminary step toward listing tables — if the user asks about tables without naming a database, ask them which database they mean rather than discovering databases first. Arguments: scope - Filter scope: 'user' returns only user-created databases (excludes system databases), 'all' returns every database. persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
persist | boolean | If True, materializes result as a volatile table and returns table name |
scope | string | Filter scope: 'user' returns only user-created databases (excludes system databases), 'all' returns every database. |
base_tableList Base Tablelist
List all tables and views within a specific Teradata database or schema. Pass a specific database name to list tables in that database only. Omit or leave empty to list tables from all databases. If the user does not name a database and you want to list tables from a single database, ask a clarifying question instead of returning results from all databases. Arguments: database_name - Database name. Leave empty to list tables from all databases. persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
database_name | string | Database name. Leave empty to list tables from all databases. |
persist | boolean | If True, materializes result as a volatile table and returns table name |
base_tableDDL Base Tableddl
Return the CREATE TABLE DDL statement for a Teradata table, showing its full schema definition including column types, constraints, primary indexes, and keys. Use when the user wants the CREATE statement, the table definition, or needs to see how the table was built. If the user has not specified both a table name AND a database name, ask for clarification before calling — do not guess or use an empty database name. To save DDL to a file on disk, use base_saveDDL instead. For just column names and types, use base_columnDescription instead. Arguments: table_name - Table name database_nam…
| Parameter | Type | Description |
|---|---|---|
database_name * | string | Database name |
table_name * | string | Table name |
persist | boolean | If True, materializes result as a volatile table and returns table name |
base_columnDescription Base Columndescription
List the column names, data types, and basic attributes for a single Teradata table or view. Use for straightforward questions like 'what columns does this table have?' or 'what are the fields and their types?'. For precise Teradata-specific type codes, character sets, decimal precision, index details, or bulk metadata across many objects, use base_columnMetadata instead. Arguments: database_name - Database name. Defaults to '%' (all databases). table_name - Table or view name. Defaults to '%' (all tables). persist - If True, materializes result as a volatile table and returns table nam…
| Parameter | Type | Description |
|---|---|---|
database_name | string | Database name. Defaults to '%' (all databases). |
persist | boolean | If True, materializes result as a volatile table and returns table name |
table_name | string | Table or view name. Defaults to '%' (all tables). |
base_tablePreview Base Tablepreview
Return a quick sample of the first few rows from a Teradata table or view so the user can see what data looks like, with no SQL required. Use this tool when the user wants to explore or peek at a table's contents without specifying conditions or writing a query. Do NOT use when the user provides a WHERE clause, filter, or explicit SQL statement — use base_readQuery for that. Arguments: table_name - Table or view name database_name - Database name persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Table or view name |
database_name | string | Database name |
persist | boolean | If True, materializes result as a volatile table and returns table name |
base_tableAffinity Base Tableaffinity
Identify which tables in a database tend to co-occur together in the same SQL queries, revealing natural JOIN relationships and data affinity patterns. Use when the user asks which tables are queried together, what tables are related to a specific table, or what tables are commonly used in the same workflows. For access frequency, query counts, or per-user access statistics, use base_tableUsage instead. Arguments: database_name - Database name table_name - Table or view name persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
database_name * | string | Database name |
table_name * | string | Table or view name |
persist | boolean | If True, materializes result as a volatile table and returns table name |
base_tableUsage Base Tableusage
Report access frequency and per-user query patterns for tables and views in a Teradata database, showing which objects are most actively queried and by whom. Use when the user asks how often tables are accessed, which tables are most popular, or which users are running queries against a database. For discovering which tables appear together in the same queries, use base_tableAffinity instead. Arguments: database_name - Database name. Leave empty for all databases. persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
database_name | string | Database name. Leave empty for all databases. |
persist | boolean | If True, materializes result as a volatile table and returns table name |
sec_userDbPermissions Sec Userdbpermissions
List the database-level access permissions (SELECT, INSERT, UPDATE, DELETE, etc.) granted directly to a specific Teradata user across all databases. Use when the user asks what a named user can DO in each database — their access rights, grants, or privileges on database objects. Do NOT use to see what roles a user has — use sec_userRoles for that. Requires a user name. Arguments: user_name - User name to analyze. persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
user_name * | string | User name to analyze. |
persist | boolean | If True, materializes result as a volatile table and returns table name |
sec_rolePermissions Sec Rolepermissions
List the database-level permissions granted to a named Teradata role. Use when the user asks what access rights a ROLE has, what a role is allowed to do, or what permissions have been granted to a role. Do NOT confuse with user-level queries — use sec_userDbPermissions for a user's direct permissions or sec_userRoles for a user's role membership. Requires a role name. Arguments: role_name - Role name to analyze. persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
role_name * | string | Role name to analyze. |
persist | boolean | If True, materializes result as a volatile table and returns table name |
sec_userRoles Sec Userroles
List the roles currently assigned to a specific Teradata user account. Use when the user asks which roles a named user HAS, belongs to, or has been assigned. Do NOT use to see the permissions of those roles — use sec_rolePermissions for that. Do NOT use to see a user's direct database privileges — use sec_userDbPermissions for that. Requires a user name. Arguments: user_name - User name to analyze. persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
user_name * | string | User name to analyze. |
persist | boolean | If True, materializes result as a volatile table and returns table name |
dba_tableSpace Dba Tablespace
Show table-level disk space usage within a specific Teradata database, ranked by size. Use when the user asks which tables are largest or consuming the most storage within a named database. NEVER call this tool with an empty database_name — if the user's message does not explicitly name a database, ask which database they want before calling. For space allocated to a whole database, use dba_databaseSpace. For total system-wide storage, use dba_systemSpace. Arguments: database_name - Database name. Required — do not pass empty string. table_name - Table name filter. Leave empty for all…
| Parameter | Type | Description |
|---|---|---|
database_name * | string | Database name. Required — do not pass empty string. |
exclude_system | string | Exclude system databases and tables. Set to 'Y' to exclude, 'N' to include all (default: 'N'). |
persist | boolean | If True, materializes result as a volatile table and returns table name |
table_name | string | Table name filter. Leave empty for all tables. |
top_n | integer | Limit results to top N largest tables by space. Set to 0 for no limit (default: 0). |
dba_tableSqlList Dba Tablesqllist
Retrieve SQL statements that have been executed against a specific named table. Use when the user asks what queries have run against a particular table. ONLY call when the user has explicitly named a specific table — if no table name is in the message, ask for clarification. Do NOT use for SQL history by user — use dba_userSqlList when the user asks what queries a specific person has been running. Arguments: table_name - Table name to search for no_days - Number of days to look back persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Table name to search for |
no_days | integer | Number of days to look back |
persist | boolean | If True, materializes result as a volatile table and returns table name |
dba_userSqlList Dba Usersqllist
Retrieve SQL statements executed by a specific named user. Use when the user asks what queries a particular person or account has been running. ONLY call when the user has explicitly named a specific user account — if no user name appears in the message, ask for clarification. NEVER call with an empty user_name. Do NOT use for SQL history by table — use dba_tableSqlList when the user asks about queries against a specific table. Arguments: user_name - User name to filter by. Required — do not pass empty string. no_days - Number of days to look back persist - If True, materializes r…
| Parameter | Type | Description |
|---|---|---|
user_name * | string | User name to filter by. Required — do not pass empty string. |
no_days | integer | Number of days to look back |
persist | boolean | If True, materializes result as a volatile table and returns table name |
dba_databaseSpace Dba Databasespace
Show disk space allocation for a specific named Teradata database. Use when the user asks how much space a particular database is using or how much has been allocated to it. If no database name is provided, ask for clarification — do not call with an empty database name. For table-level breakdowns within a database, use dba_tableSpace. For system-wide totals across all databases, use dba_systemSpace. Arguments: database_name - Database name. Required — do not pass empty string. persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
database_name * | string | Database name. Required — do not pass empty string. |
persist | boolean | If True, materializes result as a volatile table and returns table name |
dba_tableUsageImpact Dba Tableusageimpact
Identify which users and tables are driving the most query and resource activity within a specific Teradata database. Use when the user asks who is hitting a named database hardest, which users are most active, or which tables generate the most load. ONLY call when the user has specified a database name — if no database name appears in the message, ask for clarification. For system-wide CPU, IO, and memory metrics by time period or application, use dba_resusageSummary instead. Arguments: database_name - Database name to analyze. Required — do not pass empty string. user_name - User na…
| Parameter | Type | Description |
|---|---|---|
database_name * | string | Database name to analyze. Required — do not pass empty string. |
persist | boolean | If True, materializes result as a volatile table and returns table name |
user_name | string | User name to analyze. Leave empty for all users. |
dba_resusageSummary Dba Resusagesummary
Report system-wide resource consumption (CPU, IO, memory) broken down by time period, application, workload type, or complexity class. Use when the user asks for system-level resource breakdowns, workload profiles, or consumption trends over a date range — not tied to a specific database. For per-database or per-user impact within a named database, use dba_tableUsageImpact instead. Arguments: user_name - User name to filter by. Leave empty for all users. LogDate - Log date to filter by in YYYY-MM-DD format. Leave empty for all dates. dayOfWeek - Day of week to filter by (1=Sunday, 2=M…
| Parameter | Type | Description |
|---|---|---|
AppID | string | Application ID to filter by. Leave empty for all applications. |
LogDate | string | Log date to filter by in YYYY-MM-DD format. Leave empty for all dates. |
dayOfWeek | string | Day of week to filter by (1=Sunday, 2=Monday, ..., 7=Saturday). Leave empty for all days. |
hourOfDay | string | Hour of day to filter by (0-23). Leave empty for all hours. |
no_days | integer | Number of days to look back from today (e.g., 7, 30, 90). |
persist | boolean | If True, materializes result as a volatile table and returns table name |
user_name | string | User name to filter by. Leave empty for all users. |
workloadComplexity | string | Workload complexity to filter by (e.g., 'Simple', 'Medium', 'Complex'). Leave empty for all complexity levels. |
workloadType | string | Workload type to filter by (e.g., 'Batch', 'Interactive'). Leave empty for all workload types. |
dba_databaseVersion Dba Databaseversion
Return the Teradata database software version and release information. Use when the user asks what version of Teradata is running on the system. Arguments: persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
persist | boolean | If True, materializes result as a volatile table and returns table name |
dba_flowControl Dba Flowcontrol
Report Teradata workload management flow control events showing when and how much the system throttled or delayed queries due to resource constraints. Use when the user asks about system throttling, flow control delays, or how often the workload manager imposed restrictions. For how long individual users personally waited in queues, use dba_userDelay instead. Arguments: start_date - The start date for the query range in YYYY-MM-DD format. end_date - The end date for the query range in YYYY-MM-DD format. persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
end_date * | string | The end date for the query range in YYYY-MM-DD format. |
start_date * | string | The start date for the query range in YYYY-MM-DD format. |
persist | boolean | If True, materializes result as a volatile table and returns table name |
dba_featureUsage Dba Featureusage
Report which Teradata product features were used during a specified date range. Use when the user asks about feature adoption, which Teradata capabilities are being used, or how feature utilization has changed over a period. Arguments: start_date - The start date for the query range in YYYY-MM-DD format. end_date - The end date for the query range in YYYY-MM-DD format. persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
end_date * | string | The end date for the query range in YYYY-MM-DD format. |
start_date * | string | The start date for the query range in YYYY-MM-DD format. |
persist | boolean | If True, materializes result as a volatile table and returns table name |
dba_userDelay Dba Userdelay
Report how long Teradata users waited in the query queue before their queries began executing. Use when the user asks about user wait times, queue delays, or how long users had to wait. For system-level throttling and workload management flow control events, use dba_flowControl instead. Arguments: start_date - The start date for the query range in YYYY-MM-DD format. end_date - The end date for the query range in YYYY-MM-DD format. persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
end_date * | string | The end date for the query range in YYYY-MM-DD format. |
start_date * | string | The start date for the query range in YYYY-MM-DD format. |
persist | boolean | If True, materializes result as a volatile table and returns table name |
dba_sessionInfo Dba Sessioninfo
Report currently active session information for a specific user or all users. Use when the user asks about open connections, active sessions, or currently logged-in users. You may call with the default '*' to show all sessions when no specific user is mentioned — no clarification required for this tool. Arguments: user_name - User name to analyze. Use '*' to get all users. persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
persist | boolean | If True, materializes result as a volatile table and returns table name |
user_name | string | User name to analyze. Use '*' to get all users. |
dba_systemSpace Dba Systemspace
Show total disk space usage across the entire Teradata system, aggregated over all databases. Use when the user asks about warehouse-wide storage, total system capacity, or overall disk consumption across all databases. For a single named database, use dba_databaseSpace. For table-level details within a database, use dba_tableSpace. Arguments: persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
persist | boolean | If True, materializes result as a volatile table and returns table name |
qlty_missingValues Qlty Missingvalues
List the column names that contain NULL or missing values in a table. Returns a column-level summary showing WHICH columns have missing data. Use when the user asks which columns have nulls, which fields have missing data, or how many nulls exist per column. Do NOT use to retrieve the actual data rows — use qlty_rowsWithMissingValues to get the specific records where a column is null. Arguments: database_name - Name of the database (optional) table_name - Table name to analyze persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Table name to analyze |
database_name | string | Name of the database (optional) |
persist | boolean | If True, materializes result as a volatile table and returns table name |
qlty_negativeValues Qlty Negativevalues
Identify which numeric columns in a table contain negative values. Use when the user asks about negative numbers, values below zero, or columns with anomalous negative entries. Returns the list of affected column names. Arguments: database_name - Name of the database (optional) table_name - Table name to analyze persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Table name to analyze |
database_name | string | Name of the database (optional) |
persist | boolean | If True, materializes result as a volatile table and returns table name |
qlty_distinctCategories Qlty Distinctcategories
Get the unique (distinct) values present in a specific column of a table. Use when the user asks what unique values, categories, or entries exist in a named column. Requires both a table name and a column name — if no column name is specified, ask for clarification before calling. Arguments: database_name - Name of the database (optional) table_name - Table name to analyze column_name - Column name to analyze persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
column_name * | string | Column name to analyze |
table_name * | string | Table name to analyze |
database_name | string | Name of the database (optional) |
persist | boolean | If True, materializes result as a volatile table and returns table name |
qlty_standardDeviation Qlty Standarddeviation
Calculate the mean (average) and standard deviation for a single numeric column. Use when the user asks specifically for standard deviation, the spread of values, or just mean and variability. For a fuller statistical profile including min, max, quartiles, and percentiles, use qlty_univariateStatistics instead. Arguments: database_name - Name of the database (optional) table_name - Table name to analyze column_name - Column name to analyze persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
column_name * | string | Column name to analyze |
table_name * | string | Table name to analyze |
database_name | string | Name of the database (optional) |
persist | boolean | If True, materializes result as a volatile table and returns table name |
qlty_columnSummary Qlty Columnsummary
Get summary statistics for ALL columns in a table in a single call. Use when the user asks for an overview, profile, or summary of every field in a table. For detailed statistics on a SINGLE specific column (min, max, percentiles), use qlty_univariateStatistics instead. Arguments: database_name - Name of the database (optional) table_name - Table name to analyze persist - If True, materializes result as a volatile table and returns table name
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Table name to analyze |
database_name | string | Name of the database (optional) |
persist | boolean | If True, materializes result as a volatile table and returns table name |
qlty_univariateStatistics Qlty Univariatestatistics
Calculate full univariate statistics for a single numeric column including min, max, mean, standard deviation, quartiles, and percentiles. Use when the user asks for a complete or comprehensive statistical breakdown of one specific column. For just mean and standard deviation, use qlty_standardDeviation. For statistics across ALL columns in a table at once, use qlty_columnSummary. Arguments: database_name - Name of the database (optional) table_name - Table name to analyze column_name - Column name to analyze persist - If True, materializes result as a volatile table and returns table…
| Parameter | Type | Description |
|---|---|---|
column_name * | string | Column name to analyze |
table_name * | string | Table name to analyze |
database_name | string | Name of the database (optional) |
persist | boolean | If True, materializes result as a volatile table and returns table name |
qlty_rowsWithMissingValues Qlty Rowswithmissingvalues
Retrieve the actual data rows where a specific column is NULL or missing. Returns the records themselves, not a column summary. Use when the user wants to SEE or FETCH the rows with missing values in a named column. Do NOT write a SQL query with base_readQuery for this — always use this tool when the request is about rows with null values. Do NOT use for a column-level summary of which columns have nulls — use qlty_missingValues for that. Arguments: database_name - Name of the database (optional) table_name - Table name to analyze column_name - Column name to analyze for missing val…
| Parameter | Type | Description |
|---|---|---|
column_name * | string | Column name to analyze for missing values |
table_name * | string | Table name to analyze |
database_name | string | Name of the database (optional) |
persist | boolean | If True, materializes result as a volatile table and returns table name |