Execute a SQL query against a Redshift cluster or serverless workgroup.
This tool uses the Redshift Data API to execute SQL queries and return results.
It supports both provisioned clusters and serverless workgroups, and handles
various data types in the result set.
Queries run in read-only mode and must be a single statement; writes and
multi-statement submissions are rejected.
Parameters|Type|Description
-|-|-
cluster_identifier|string|The cluster identifier to execute the query on. Must be a valid cluster identifier from the list_clusters tool.
database_name|string|The database name to execute the query against. Must be a valid database name from the list_databases tool.
sql|string|The SQL statement to execute. Should be a single SQL statement.
List all available Amazon Redshift clusters and serverless workgroups.
This tool discovers and returns information about all Redshift clusters and serverless workgroups
in your AWS account, including their current status, connection details, and configuration.
List all columns in a specified table within a Redshift schema.
This tool queries the SVV_ALL_COLUMNS system view to discover all columns
that the user has access to in the specified table, including detailed information
about data types, constraints, and column properties.
Use ordinal_position to understand column order in the table.
Check is_nullable for required vs optional fields.
Use data_type information for proper data handling in queries.
Consider character_maximum_length for string field validation.
Use numeric_precision and numeric_scale for numeric field handling.
Use column names for SELECT statements and query construction.
Parameters|Type|Description
-|-|-
cluster_identifier|string|The cluster identifier to query for columns. Must be a valid cluster identifier from the list_clusters tool.
column_database_name|string|The database name to list columns for. Must be a valid database name from the list_databases tool.
column_schema_name|string|The schema name to list columns for. Must be a valid schema name from the list_schemas tool.
column_table_name|string|The table name to list columns for. Must be a valid table name from the list_tables tool.
List all databases in a specified Amazon Redshift cluster.
This tool queries the SVV_REDSHIFT_DATABASES system view to discover all databases
that the user has access to in the specified cluster, including local databases
and databases created from datashares.
Focus on 'local' database types for cluster-native databases.
'shared' database types indicate databases from datashares.
Use database names for subsequent schema and table discovery.
Consider database isolation levels for transaction planning.
Parameters|Type|Description
-|-|-
cluster_identifier|string|The cluster identifier to query for databases. Must be a valid cluster identifier from the list_clusters tool.
database_name|stringoptional|The database to connect to for querying system views. Defaults to "dev".
List all schemas in a specified database within a Redshift cluster.
This tool queries the SVV_ALL_SCHEMAS system view to discover all schemas
that the user has access to in the specified database, including local schemas,
external schemas, and shared schemas from datashares.
cluster_identifier: The unique identifier of the Redshift cluster to query.
IMPORTANT: Use a valid cluster identifier from the list_clusters tool.
schema_database_name: The database name to list schemas for. Also used to connect to.
IMPORTANT: Use a valid database name from the list_databases tool.
Focus on 'local' schema types for cluster-native schemas.
'external' schema types indicate connections to external data sources.
'shared' schema types indicate schemas from datashares.
Use schema names for subsequent table and column discovery.
Consider schema permissions (schema_acl) for access planning.
Parameters|Type|Description
-|-|-
cluster_identifier|string|The cluster identifier to query for schemas. Must be a valid cluster identifier from the list_clusters tool.
schema_database_name|string|The database name to list schemas for. Also used to connect to. Must be a valid database name from the list_databases tool.
List all tables in a specified schema within a Redshift database.
This tool queries the SVV_ALL_TABLES system view to discover all tables
that the user has access to in the specified schema, including base tables,
views, external tables, and shared tables.
Focus on 'TABLE' table types for regular database tables.
'VIEW' table types indicate database views.
'EXTERNAL TABLE' types indicate connections to external data sources.
'SHARED TABLE' types indicate tables from datashares.
Use table names for subsequent column discovery and query operations.
Consider table permissions (table_acl) for access planning.
Parameters|Type|Description
-|-|-
cluster_identifier|string|The cluster identifier to query for tables. Must be a valid cluster identifier from the list_clusters tool.
table_database_name|string|The database name to list tables for. Must be a valid database name from the list_databases tool.
table_schema_name|string|The schema name to list tables for. Also used to connect to. Must be a valid schema name from the list_schemas tool.