Enabling Agentforce agents to interact with Snowflake for data querying, manipulation, loading, and unloading.
Tool Name | Description | Example Inputs |
---|---|---|
snowflake_execute_sql_query | Executes a SQL SELECT query and returns the results. | sql_query , warehouse (optional) , database (optional) , schema (optional) , role (optional) , bindings (optional, for parameterized queries) |
snowflake_execute_sql_statement | Executes a single SQL DML (e.g., INSERT, UPDATE, DELETE, MERGE) or DDL (e.g., CREATE, ALTER, DROP) statement. | sql_statement , warehouse (optional) , database (optional) , schema (optional) , role (optional) , bindings (optional) |
snowflake_check_statement_status | Checks the execution status of a previously submitted asynchronous SQL statement. | statement_handle |
snowflake_cancel_statement | Attempts to cancel a running SQL statement. | statement_handle |
snowflake_load_table_from_stage | Loads data into a Snowflake table from a specified stage (internal or external like S3, Azure, GCS). | table_name , stage_name , file_paths (list) , file_format_options (optional) , copy_options (optional) |
snowflake_unload_table_to_stage | Unloads data from a Snowflake table or query result to a specified stage. | source_table_or_query , stage_name , destination_path , file_format_options (optional) , copy_options (optional) |
snowflake_list_databases | Lists accessible databases. Use like_pattern (e.g., %PROD% ) to filter results. | like_pattern (optional) |
snowflake_list_schemas | Lists schemas within a database. Use like_pattern (e.g., SEGMENTS% ) to filter. | database_name (optional) , like_pattern (optional) |
snowflake_list_tables | Lists tables/views in a schema/database. Use like_pattern (e.g., CUSTOMER_% ) to filter. | database_name (optional) , schema_name (optional) , like_pattern (optional) |
snowflake_describe_table | Retrieves the schema of a table, listing its columns, data types, and other properties. | table_name , schema_name (optional) , database_name (optional) |
COPY INTO table
(for loading) and COPY INTO @stage
(for unloading) operations if using those tools.youraccount.snowflakecomputing.com
).rsa_key.pub
(excluding headers/footers) and set it for the user in Snowflake:
rsa_key.p8
). This key will be used by the ACP connector to generate JWTs for authentication.xy12345.us-west-2.aws
).acp_user
).snowflake_execute_sql_query
with a basic query (e.g., SELECT CURRENT_VERSION();
or SELECT COUNT(*) FROM your_table;
) to verify the connection and permissions.Invalid JWT token
, User not found or not authorized
):
SQL compilation error
, Object does not exist
):
USAGE
and relevant DML/DDL permissions on them.Access control error: Insufficient privileges
):
COPY command error
):
USAGE
on the stage and INSERT
on the target table (for loading) or SELECT
on the source table (for unloading).