The AWS Redshift connector lets your AI agent work with AWS Redshift. Scalekit handles authentication for every call, so your agent never handles credentials. It comes with 10 tools.
- Tools
- 10
- What they doRead · write · destructive
- 7 · 2 · 17 read2 write1 destructive
- Users sign in with
- Trusted identity provider
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the AWS Redshift connection
In AgentKit > Connections, create an AWS Redshift connection. The name you give it is the
connection_nameyour code passes. See Configure connections.
Tools
Pass the exact name toexecute_toolredshift_describe_statementGet the status, duration, and row count of a previously submitted statement without fetching result rows.Read-onlyDescribe Statement
Get the status, duration, and row count of a previously submitted statement without fetching result rows. This is the only way to poll or confirm success/failure of DDL/DML statements (CREATE/INSERT/UPDATE) that cannot be passed to redshift_get_query_result, which requires a statement that returns a result set. redshift_list_statements lists many statements at once but doesn't substitute for checking one specific statement's full status detail (e.g. its error message on failure).
Inputs
statement_idstringrequired- The ID of the statement to describe. Must be non-empty.
redshift_describe_tableDescribe the schema of a table in Amazon Redshift using the Redshift Data API, including column names, types, and metadata.Read-onlyDescribe Table
Describe the schema of a table in Amazon Redshift using the Redshift Data API, including column names, types, and metadata.
Inputs
tablestringrequired- Name of the table to describe. Must be non-empty.
connected_databasestring- Override the connected account's default database for this request.
max_resultsinteger- Maximum number of columns to return per page.
next_tokenstring- Pagination cursor from a previous redshift_describe_table response.
schemastring- Schema name that contains the table.
redshift_get_query_resultRetrieve the results of a previously executed Redshift SQL statement using the statement ID returned by redshift_execute_sql.Read-onlyGet Query Result
Retrieve the results of a previously executed Redshift SQL statement using the statement ID returned by redshift_execute_sql. Supports pagination via next_token.
Inputs
statement_idstringrequired- The statement ID returned by redshift_execute_sql. Must be non-empty.
next_tokenstring- Pagination token from a prior redshift_get_query_result response when results spanned multiple pages.
redshift_list_databasesList the databases available in the connected Amazon Redshift cluster or serverless workgroup, using the Redshift Data API.Read-onlyList Databases
List the databases available in the connected Amazon Redshift cluster or serverless workgroup, using the Redshift Data API. Mirrors redshift_list_schemas / redshift_list_tables one level up the hierarchy.
Inputs
connected_databasestring- Override the connected account's default database for this request.
max_resultsinteger- Maximum number of databases to return.
next_tokenstring- Pagination cursor from a previous redshift_list_databases response.
redshift_list_schemasList schemas in an Amazon Redshift database using the Redshift Data API.Read-onlyList Schemas
List schemas in an Amazon Redshift database using the Redshift Data API. Supports filtering by schema name pattern with pagination.
Inputs
connected_databasestring- Override the connected account's default database for this request.
max_resultsinteger- Maximum number of schemas to return.
next_tokenstring- Pagination cursor from a previous redshift_list_schemas response.
schema_patternstring- LIKE pattern to filter schemas (e.g., public, my_schema%).
redshift_list_statementsList previously executed SQL statements in Amazon Redshift using the Redshift Data API.Read-onlyList Statements
List previously executed SQL statements in Amazon Redshift using the Redshift Data API. Supports filtering by name, status, and role level with pagination.
Inputs
max_resultsinteger- Maximum number of statements to return.
next_tokenstring- Pagination cursor from a previous redshift_list_statements response.
role_levelboolean- When true, lists all statements run by the IAM role rather than just the current session.
statement_namestring- Filter statements by name label.
statusstring- Filter by execution status (e.g., FINISHED, FAILED, ABORTED, PICKED, STARTED, SUBMITTED).one of
SUBMITTEDPICKEDSTARTEDFINISHEDABORTEDFAILEDALL
redshift_list_tablesList tables in an Amazon Redshift database using the Redshift Data API.Read-onlyList Tables
List tables in an Amazon Redshift database using the Redshift Data API. Supports filtering by schema and table name patterns with pagination.
Inputs
connected_databasestring- Override the connected account's default database for this request.
max_resultsinteger- Maximum number of tables to return.
next_tokenstring- Pagination cursor from a previous redshift_list_tables response.
schema_patternstring- LIKE pattern to filter schemas (e.g., public, my_schema%).
table_patternstring- LIKE pattern to filter tables (e.g., orders, user%).
redshift_batch_execute_sqlRun multiple SQL statements serially in a single call against Amazon Redshift using the Redshift Data API's BatchExecuteStatement action, returning one batch statement ID.WriteBatch Execute SQL
Run multiple SQL statements serially in a single call against Amazon Redshift using the Redshift Data API's BatchExecuteStatement action, returning one batch statement ID. Distinct from redshift_execute_sql, which only accepts a single statement. If any statement in the batch fails, remaining statements are not run.
Inputs
sqlsarrayrequired- The SQL statements to run, in order. Each must be non-empty.
statement_namestring- Optional label for the batch, echoed back by DescribeStatement for tracking purposes.
with_eventboolean- If true, AWS publishes an EventBridge event when the batch completes.default
false
redshift_execute_sqlExecute a SQL statement against Amazon Redshift using the Redshift Data API.WriteExecute SQL
Execute a SQL statement against Amazon Redshift using the Redshift Data API. Returns a statement ID that can be used with redshift_get_query_result to fetch results.
Inputs
sqlstringrequired- SQL statement to execute. Must be non-empty.
statement_namestring- Optional label for the statement, echoed back by DescribeStatement for tracking purposes.
with_eventboolean- If true, AWS publishes an EventBridge event when the statement completes.default
false
redshift_cancel_queryCancel a running Amazon Redshift SQL statement using its statement ID.DestructiveCancel Query
Cancel a running Amazon Redshift SQL statement using its statement ID.
- Idempotent
Inputs
statement_idstringrequired- The ID of the statement to cancel. Must be non-empty.
No tools match.