← 返回
未分类 中文

Snowflake

Execute SQL queries, inspect Snowflake databases, schemas, tables, views, warehouses, and data pipeline resources. Use this skill when users want to query da...
执行SQL查询、检查Snowflake数据库、模式、表、视图、仓库及数据管道资源。当用户需要查询数据时使用此技能。
hith3sh hith3sh 来源
未分类 clawhub v1.0.6 1 版本 100000 Key: 无需
★ 0
Stars
📥 122
下载
💾 0
安装
1
版本
#latest

概述

Snowflake

!Snowflake

Execute SQL queries and explore Snowflake data resources — databases, schemas, tables, views, warehouses, and pipelines — directly from chat.

This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure Snowflake API access yourself.

Setup in 3 Steps

Step 1: InstallStep 2: Pair AccountStep 3: Connect Snowflake
:---::---::---:
!Install!PairApp-specific connection GIF coming soon
Run the install command in OpenClawSign in and approve the deviceOpen the dashboard and connect Snowflake

How It Works

┌─────────────────┐     ┌──────────────┐     ┌──────────────────┐
│   OpenClaw      │────▶│   ClawLink   │────▶│   Snowflake      │
│   (User Chat)   │     │   (OAuth)    │     │   REST API       │
└─────────────────┘     └──────────────┘     └──────────────────┘
         │                       │                       │
         │  1. Install Plugin    │                       │
         │  2. Pair Device       │                       │
         │  3. Connect Snowflake │                       │
         │                       │  4. Secure Token      │
         │                       │  5. Proxy Requests    │
         │                       │                       │
         ▼                       ▼                       ▼
   ┌──────────┐           ┌──────────┐           ┌──────────┐
   │  SKILL   │           │ Dashboard│           │ Snowflake│
   │  File    │           │ Auth     │           │ Account  │
   └──────────┘           └──────────┘           └──────────┘

Install

Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.

openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart

Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for Snowflake again."

Quick Start

# List databases
clawlink_call_tool --tool "snowflake_list_databases" --params '{}'

# Execute a SELECT query
clawlink_call_tool --tool "snowflake_execute_query" --params '{"sql": "SELECT * FROM MY_DB.MY_SCHEMA.MY_TABLE LIMIT 10"}'

# List tables in a schema
clawlink_call_tool --tool "snowflake_list_tables" --params '{"database": "MY_DB", "schema": "MY_SCHEMA"}'

Authentication

All Snowflake tool calls are authenticated automatically by ClawLink using the user's connected Snowflake account credentials.

No credentials are required in chat. ClawLink stores the connection credentials securely and injects them into every Snowflake API request on the user's behalf.

Getting Connected

  1. Install the ClawLink plugin (see Install above).
  2. Pair the plugin with clawlink_begin_pairing if it is not configured yet.
  3. Open https://claw-link.dev/dashboard?add=snowflake and connect Snowflake.
  4. Call clawlink_list_integrations to verify the connection is active.

Connection Management

List Connections

clawlink_list_integrations

Response: Returns all connected integrations. Look for snowflake in the list.

Verify Connection

clawlink_list_tools --integration snowflake

Response: Returns the live tool catalog for Snowflake.

Reconnect

If Snowflake tools are missing or the connection shows an error:

  1. Direct the user to https://claw-link.dev/dashboard?add=snowflake
  2. After they confirm, call clawlink_list_integrations to verify
  3. Then call clawlink_list_tools --integration snowflake

Security & Permissions

  • Access is scoped to the Snowflake account and databases authorized during connection setup.
  • All write operations and DDL/DML queries require explicit user confirmation. Never execute ALTER, DROP, DELETE, or TRUNCATE without explicit approval.
  • SELECT queries should use explicit LIMIT clauses to avoid returning extremely large result sets.
  • Confirm the target database, schema, and table before any write or delete operation.
  • Raw SQL execution via snowflake_execute_query carries full risk — always confirm the SQL before running.

Tool Reference

Databases & Schemas

ToolDescriptionMode
-------------------------
snowflake_list_databasesList all databases accessible to the accountRead
snowflake_get_databaseGet metadata for a specific databaseRead
snowflake_list_schemasList all schemas in a databaseRead
snowflake_get_schemaGet metadata for a specific schemaRead

Tables & Views

ToolDescriptionMode
-------------------------
snowflake_list_tablesList all tables in a database and schemaRead
snowflake_get_tableGet metadata for a specific tableRead
snowflake_list_viewsList all views in a database and schemaRead
snowflake_get_viewGet the SQL definition of a viewRead
snowflake_list_columnsList all columns in a table or viewRead
snowflake_describe_tableDescribe the structure of a tableRead

Query Execution

ToolDescriptionMode
-------------------------
snowflake_execute_queryExecute a raw SQL query and return resultsWrite
snowflake_execute_statementExecute a DDL or DML statementWrite

Warehouses

ToolDescriptionMode
-------------------------
snowflake_list_warehousesList all warehousesRead
snowflake_get_warehouseGet warehouse properties and statusRead
snowflake_create_warehouseCreate a new warehouseWrite
snowflake_suspend_warehouseSuspend a warehouseWrite
snowflake_resume_warehouseResume a suspended warehouseWrite

Users & Roles

ToolDescriptionMode
-------------------------
snowflake_list_usersList all users in the accountRead
snowflake_get_userGet user properties and grantsRead
snowflake_list_rolesList all rolesRead
snowflake_get_role_grantsList grants for a roleRead

Stages & Files

ToolDescriptionMode
-------------------------
snowflake_list_stagesList stages in a schemaRead
snowflake_list_files_in_stageList files in a named stageRead
snowflake_put_fileUpload a file to an internal stageWrite

Code Examples

List all tables in a schema

clawlink_call_tool --tool "snowflake_list_tables" \
  --params '{
    "database": "ANALYTICS_DB",
    "schema": "PUBLIC"
  }'

Execute a SELECT query with a LIMIT

clawlink_call_tool --tool "snowflake_execute_query" \
  --params '{
    "sql": "SELECT customer_id, SUM(amount) as total FROM TRANSACTIONS GROUP BY customer_id ORDER BY total DESC LIMIT 20"
  }'

Get table column details

clawlink_call_tool --tool "snowflake_list_columns" \
  --params '{
    "database": "SALES_DB",
    "schema": "ORDERS",
    "table": "CUSTOMERS"
  }'

Check warehouse status

clawlink_call_tool --tool "snowflake_get_warehouse" \
  --params '{
    "warehouse_name": "COMPUTE_WH"
  }'

Suspend a warehouse

clawlink_call_tool --tool "snowflake_suspend_warehouse" \
  --params '{
    "warehouse_name": "COMPUTE_WH"
  }'

Discovery Workflow

  1. Call clawlink_list_integrations to confirm Snowflake is connected.
  2. Call clawlink_list_tools --integration snowflake to see the live catalog.
  3. Treat the returned list as the source of truth. Do not guess or assume what tools exist.
  4. If the user describes a capability but the exact tool is unclear, call clawlink_search_tools with a short query and integration snowflake.
  5. If no Snowflake tools appear, direct the user to https://claw-link.dev/dashboard?add=snowflake.

Execution Workflow

┌─────────────────────────────────────────────────────────────┐
│  READ OPERATIONS (Safe)                                     │
│  list → get → describe → execute SELECT                    │
│                                                             │
│  Example: List schemas → List tables → Describe table     │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────┐
│  WRITE OPERATIONS (Require Confirmation)                    │
│  describe → preview → confirm → execute DDL/DML             │
│                                                             │
│  Example: Preview DDL → User approves → Run CREATE TABLE   │
└─────────────────────────────────────────────────────────────┘
  1. For unfamiliar tools, ambiguous requests, or any write action, call clawlink_describe_tool first.
  2. Use the returned guidance, schema, whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.
  3. Prefer read, list, describe, and SELECT operations before any write or DDL.
  4. For writes or DDL/DML queries, call clawlink_preview_tool first and confirm the exact SQL.
  5. Execute with clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.
  6. If the tool call fails, report the real error. Do not invent results or restate the failure as a missing capability unless the live catalog supports that conclusion.

Notes

  • Always use explicit LIMIT clauses on SELECT queries to avoid returning extremely large datasets.
  • DDL and DML operations (CREATE, DROP, DELETE, UPDATE, TRUNCATE) require explicit user confirmation.
  • Table and column names may be case-sensitive depending on how they were created — use double quotes if needed.
  • Warehouses must be running before queries can execute — they may auto-suspend after periods of inactivity.
  • The account parameter for some operations is the Snowflake account identifier (not the account name).

Error Handling

Status / ErrorMeaning
-------------------------
Tool not foundThe tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration snowflake.
Missing connectionSnowflake is not connected. Direct the user to https://claw-link.dev/dashboard?add=snowflake.
Database not foundThe specified database does not exist or is not accessible.
Schema not foundThe specified schema does not exist in the database.
Table not foundThe specified table does not exist.
Warehouse not foundThe warehouse name is incorrect or not accessible.
Insufficient privilegesThe connected account lacks the required role/privilege for this operation.
Warehouse is suspendedCannot execute queries on a suspended warehouse. Resume it first.
SQL compilation errorSyntax error in the SQL query. Review and fix the SQL.
Write rejectedUser did not confirm a write action or DDL/DML. Always confirm before executing.

Troubleshooting: Tools Not Visible

  1. Check that the ClawLink plugin is installed:

```bash

openclaw plugins list

```

  1. If the plugin is installed but tools are missing, tell the user to send /new as a standalone message to reload the catalog.
  2. If a fresh chat does not help, run:

```bash

openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json

openclaw gateway restart

```

  1. After restart, tell the user to send /new again and retry.

Troubleshooting: Query Returns Empty

  1. Verify the database, schema, and table names are spelled correctly — use snowflake_list_tables to confirm the table exists.
  2. Check that the warehouse is running — suspended warehouses return no data.
  3. Confirm the connected account has SELECT privilege on the target table.

Troubleshooting: DDL/DML Fails

  1. Verify the connected account has the required role/grants for the operation.
  2. Some operations require the ACCOUNTADMIN role or specific object privileges.
  3. Dropping tables or schemas may be blocked by referential integrity constraints.

Resources


Powered by ClawLink — an integration hub for OpenClaw

!ClawLink Logo

版本历史

共 1 个版本

  • v1.0.6 当前
    2026-06-09 19:02

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 275 📥 101,227
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 214 📥 70,949
office-efficiency

Microsoft Excel

hith3sh
通过托管 OAuth 集成 Microsoft Excel API,实现对 OneDrive 中 Excel 工作簿、工作表、区域、表格和图表的读写。使用此技能...
★ 32 📥 2,035