Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/teradata_mcp_server/tools/base/base_objects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ test_baseTools:
Perform the phases in order, and do not skip any phase.

## Phase 0 - Get a list of databases
- Get a list of databases from the user. Use the base_databaseList function to get the list. The tool should return a list of databases in the Teradata system, if no data is returned then fail this test.
- Get a list of databases from the user. Use the base_databaseList tool to get the list. The tool should return a list of databases in the Teradata system, if no data is returned then fail this test.
## Phase 1 - Get the list of tables in each database
- For the DBC database, get the list of tables. Use the base_tableList function to get the list. The tool should return a list of tables in the DBC database, if no data is returned then fail this test.
- For the DBC database, get the list of tables. Use the base_tableList tool to get the list. The tool should return a list of tables in the DBC database, if no data is returned then fail this test.
## Phase 2 - Create a test table in your default database
- what is your default database?
- Create a customer table in your default database called test_customer, use the following code:
Expand All @@ -42,20 +42,20 @@ test_baseTools:
INSERT INTO test_customer VALUES (9, 'George Lee', '[email protected]', DATE '2024-08-15');
INSERT INTO test_customer VALUES (10, 'Helen Taylor', '[email protected]', '555-0110', DATE '2024-08-25');
## Phase 3 - Test the query tool
- test the query tool by running a query on the test_customer table. Use the base_readQuery function to run the query. The query should return the 10 rows you added in the previous phase, if no data is returned then fail this test.
- test the query tool by running a query on the test_customer table with a filter. Use the base_readQuery function to run the query. The query should return only the rows that match the filter, if no data is returned then fail this test. (example of a filter is Cust_id > 5)
- test the query tool by running a query on the test_customer table. Use the base_readQuery tool to run the query. The query should return the 10 rows you added in the previous phase, if no data is returned then fail this test.
- test the query tool by running a query on the test_customer table with a filter. Use the base_readQuery tool to run the query. The query should return only the rows that match the filter, if no data is returned then fail this test. (example of a filter is Cust_id > 5)
## Phase 4 - Test the table DDL tool
- Get the DDL of the test_customer table. Use the base_tableDDL function to get the DDL. The tool should return the DDL of the test_customer table, if no data is returned then fail this test.
- Get the DDL of the test_customer table. Use the base_tableDDL tool to get the DDL. The tool should return the DDL of the test_customer table, if no data is returned then fail this test.
## Phase 5 - Test the column description tool
- Get the column description of the test_customer table. Use the base_columnDescription function to get the columns description. The tool should return the column description of the test_customer table, if no data is returned then fail this test.
- Get the column description of the test_customer table. Use the base_columnDescription tool to get the columns description. The tool should return the column description of the test_customer table, if no data is returned then fail this test.
## Phase 6 - Test the table preview tool
- Get the preview of the test_customer table. Use the base_tablePreview function to get the preview. The tool should return the first 5 rows of the test_customer table and the column information, if no data is returned then fail this test.
- Get the preview of the test_customer table. Use the base_tablePreview tool to get the preview. The tool should return the first 5 rows of the test_customer table and the column information, if no data is returned then fail this test.
## Phase 7 - Test the table affinity tool
- Get the table affinity of the test_customer table. Use the base_tableAffinity function to get the affinity. The tool should return the table affinity of the test_customer table, if no data is returned then fail this test.
- Get the table affinity of the test_customer table. Use the base_tableAffinity tool to get the affinity. The tool should return the table affinity of the test_customer table, if no data is returned then fail this test.
## Phase 8 - Test the table usage tool
- Get the table usage of the test_customer table. Use the base_tableUsage function to get the usage. The tool should return the table usage of the test_customer table, if no data is returned then fail this test.
- Get the table usage of the test_customer table. Use the base_tableUsage tool to get the usage. The tool should return the table usage of the test_customer table, if no data is returned then fail this test.
## Phase 9 - Clean up
- Drop the test_customer table. Use the base_writeQuery function to drop the table. The tool should return a success message.
- Drop the test_customer table. Use the base_readQuery tool to drop the table. The tool should return a success message.
## Communication guidelines:
- Be concise but informative in your explanations
- Clearly indicate which phase the process is currently in
Expand Down Expand Up @@ -204,7 +204,7 @@ base_tableBusinessDesc:
- The database name is {database_name}

## Phase 1 - Get the table DDL
- Get the table DDL from the user. The DDL should be a single string, and it should not contain any new lines or special characters. Use the base_tableDDL function to get the DDL.
- Get the table DDL from the user. The DDL should be a single string, and it should not contain any new lines or special characters. Use the base_tableDDL tool to get the DDL.

## Phase 2 - Describe the table
- Describe the table in a business context. The description should be a single string.
Expand Down Expand Up @@ -254,11 +254,11 @@ base_databaseBusinessDesc:
- the database name is {database_name}

## Phase 1 - get the list of tables
- Get the list of tables in the database. Use the base_tableList function to get the list.
- Get the list of tables in the database. Use the base_tableList tool to get the list.

## Phase 2 - describe the tables
For each table, you will:
- Get the table DDL from the user. Use the base_tableDDL function to get the DDL.
- Get the table DDL from the user. Use the base_tableDDL tool to get the DDL.
- Describe the table in a business context. The description should be a single string.

## Phase 3 - Describe the database
Expand Down
6 changes: 3 additions & 3 deletions src/teradata_mcp_server/tools/dba/dba_objects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ test_dbaTools:

## Phase 1 - Get a list of all the SQL executed by a user
- what is your user name?
- test the query tool by running a query on the test_customer table. Use the base_readQuery function to run the query. The query should return the 10 rows you added in the previous phase, if no data is returned then fail this test.
- test the query tool by running a query on the test_customer table with a filter. Use the base_readQuery function to run the query. The query should return only the rows that match the filter, if no data is returned then fail this test. (example of a filter is Cust_id > 5)
- test the query tool by running a query on the test_customer table. Use the base_readQuery tool to run the query. The query should return the 10 rows you added in the previous phase, if no data is returned then fail this test.
- test the query tool by running a query on the test_customer table with a filter. Use the base_readQuery tool to run the query. The query should return only the rows that match the filter, if no data is returned then fail this test. (example of a filter is Cust_id > 5)
- Get a list of all the SQL executed by your user name (e.g. demo_user) in the last 7 days using the dba_userSqlList tool. A list of all SQL statements should be returned, if no data is returned then fail this test

## Phase 2 - Get a list of all the SQL executed against a table
Expand Down Expand Up @@ -198,7 +198,7 @@ test_dbaTools:
- Get the session information for your user name (e.g. demo_user) using the dba_sessionInfo tool. The session information for the user should be returned, if no data is returned then fail this test.

## Phase 13 - Clean up
- Drop the test_customer table. Use the base_writeQuery function to drop the table. The tool should return a success message.
- Drop the test_customer table. Use the base_readQuery tool to drop the table. The tool should return a success message.
## Communication guidelines:
- Be concise but informative in your explanations
- Clearly indicate which phase the process is currently in
Expand Down
2 changes: 1 addition & 1 deletion src/teradata_mcp_server/tools/qlty/qlty_objects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ test_qltyTools:
- The tool should return the rows that have missing values in any column, if no data is returned then fail this test.

## Phase 8 - Clean up
- Drop the test_customer table. Use the base_writeQuery function to drop the table. The tool should return a success message.
- Drop the test_customer table. Use the base_readQuery tool to drop the table. The tool should return a success message.

## Communication guidelines:
- Be concise but informative in your explanations
Expand Down