Skip to main content
Snowflake The Snowflake app exposes the Snowflake SQL API and selected Snowflake REST APIs to Agent Factory agents through MCP and to Builder workflows through DSUL instructions. It runs in the installing workspace’s tenant context and covers SQL execution, asynchronous results, databases, schemas and virtual warehouses. Authentication supports platform-managed or tenant-owned Snowflake OAuth with PKCE, key-pair JWT, programmatic access tokens and pre-minted access tokens.

SQL and results

Execute one SQL statement, monitor or cancel asynchronous work, and retrieve paginated results

Database catalog

List, inspect, create, alter, drop and undrop Snowflake databases and schemas

Virtual warehouses

Inspect and manage warehouses, including explicit resume and suspend operations

Who is this for?

This connector is used by three different roles. Jump to the section that matches yours — each one is self-contained.

Agent builder

You build agents in Agent Factory and want them to query or administer Snowflake. → Agent builder tab.

Platform admin

You configure a shared Snowflake OAuth client and publish the capability. → Platform admin setup accordion below.

Workspace builder

You write Builder automations that call Snowflake operations directly. → Workspace builder tab.

Prerequisites (Snowflake side)

  • A Snowflake account and its public HTTPS account URL, for example https://myorg-myaccount.snowflakecomputing.com.
  • A Snowflake user or OAuth integration whose role has the privileges required by the operations you intend to expose. Use a dedicated least-privilege role rather than an account-admin role.
  • One supported credential:
  • A virtual warehouse for SQL that needs compute. Database and schema metadata operations may not require an active warehouse.
Goal: configure a shared OAuth client for one Snowflake account, then expose the connector as a reusable capability in AI Governance.

1. Configure the connector

1

Create a dedicated Snowflake role

Create a role containing only the database, schema, warehouse and SQL privileges that agents need. Grant it to the users who will authorize the connector. Snowflake OAuth does not allow the connector to exceed the selected role’s privileges.
2

Create a Snowflake OAuth security integration

In the target Snowflake account, create a confidential custom-client integration. Use the core workspace callback as its redirect URI:
On production, <api-url> is https://api.studio.prisme.ai/v2.
3

Retrieve the OAuth client credentials

Run the following command with a role allowed to inspect the integration. Keep the returned secret in a secrets manager.
The result contains oauth_client_id and two rotatable client secrets.
4

Enter the credentials through the configuration app

Open the central snowflake workspace and launch its Configuration app at <studio>/apps/snowflake (for example https://studio.prisme.ai/apps/snowflake). Enter the Snowflake account URL, client ID, client secret, default role and optional warehouse. The app writes the central secret; do not edit Studio Secrets manually.
5

Tell workspaces to use the central client

Each consuming workspace selects oauthCentral in its connector configuration. The central client is tied to the Snowflake account configured above; another account must use tenant-owned OAuth or a non-OAuth credential.

2. Declare the capability in AI Governance

1

Create the Snowflake capability

Open AI Governance > Capabilities and create a capability named Snowflake.
2

Point it at the MCP endpoint

Set the MCP server URL to the connector’s MCP Endpoint and set Scope to:
agent_id lets the connector identify and authorize the calling agent. user_id keeps delegated OAuth sessions user-specific.
3

Make it available to agent builders

Publish the capability in the catalog. Catalog visibility follows the organization’s existing RBAC; tenant-context capabilities do not require a separate per-capability role grant.
4

Smoke-test

Enable the capability on an agent, authorize that agent in the connector configuration app, connect a Snowflake user and run a read-only query such as SELECT CURRENT_USER(), CURRENT_ROLE().
Declaring the capability makes Snowflake available; it does not authorize an agent. Each installed connector instance still applies its Authorized agents allowlist. There is no OAuth auth-config JSON to attach in Governance.

Agent builder

Goal: let an Agent Factory agent query and manage Snowflake through five MCP tools.
A Workspace builder must first install and configure the Snowflake app. Platform-managed OAuth additionally requires the one-time setup in the Platform admin accordion.
The MCP endpoint runs in the installed app instance. It resolves credentials server-side, identifies the caller from the capability scope and checks the workspace’s agent allowlist.

Option A — Enable the shared capability from the catalog

1

Open your agent

Open the agent in Agent Factory and go to its capabilities.
2

Enable Snowflake

Select Snowflake from the capability catalog. The endpoint and context_id,agent_id,user_id scope are already configured.
3

Connect to Snowflake

With OAuth, connect on the first tool call or from the connector configuration app. Key-pair, programmatic-token and access-token modes do not need an interactive sign-in.
The shared capability uses credentials and an allowlist managed by the platform workspace. Use a workspace-owned instance when the agent needs an isolated Snowflake account, role or credential boundary.
Prefer a workspace-owned instance for production. Its credentials, OAuth tokens and authorized-agent list are isolated to your workspace, and its Snowflake role can be restricted to the agent’s exact duties.
1

Install and configure Snowflake

Follow the Workspace builder tab. Select an authentication mode and test the credential.
2

Allowlist the agent

In the configuration app, open Authorized agents, select the agent and save. The Install capability action can perform this wiring.
3

Add the MCP capability

Point the capability at this app instance’s MCP Endpoint and set Scope to:
4

Connect the user when using OAuth

Click Connect in the configuration app or follow the connection prompt surfaced by Agent Factory.

Brief the agent in its system prompt

Legacy AI Knowledge agents without the native capability picker can add an MCP tool under Advanced > Tools > MCP and paste the MCP Endpoint. The agent must still be allowlisted and its identity propagated to the connector.
Restricting to read-only (least privilege). Snowflake permissions are role-based. For OAuth, set ALLOWED_ROLES_LIST on the security integration and configure the connector to request a dedicated read-only role. For a programmatic access token, use ROLE_RESTRICTION; for key-pair or access-token modes, restrict the backing user’s grants. The connector remains usable for reads while Snowflake rejects writes with 403 or a SQL privilege error. This provider-side role boundary cannot be widened from the Prisme.ai workspace.

Available Tools

Each tool takes an action argument that selects the concrete operation.

Output Formats

Snowflake tool calls return one bounded JSON payload in MCP text content. The connector:
  • limits SQL execution to one statement;
  • asks Snowflake for at most 100 rows and caps the final MCP response at 80 KB;
  • omits binary cell values;
  • adds _mcpLimits and, when truncation occurs, _truncation metadata with a refinement suggestion.
The schema accepts outputFormat (verbose, structured or both) for compatibility. The current Snowflake implementation returns the same bounded JSON text envelope for all three values.

Tool Details

sql

results

databases

schemas

warehouses

Resuming a warehouse starts compute billing. Suspending it can interrupt workloads. Call either action only after explicit user confirmation.

Error Handling

Common Issues

“This agent is not authorized to use this connector” — Open the configuration app, add the agent under Authorized agents (or enable Allow all agents) and save. “The calling agent could not be identified” — The capability scope is missing agent_id. Set it to context_id,agent_id,user_id, then authorize the agent. “Snowflake OAuth is not connected for this user” — Open the configuration app and click Connect, or follow the connection URL surfaced by Agent Factory. “Snowflake token refresh failed … must reconnect” — The refresh token expired or was revoked. Reconnect the user. Snowflake OAuth refresh-token validity is controlled by the security integration. “Snowflake platform OAuth is not configured for an account” — Ask the platform maintainer to configure the central client, or select tenant OAuth, key-pair, programmatic-token or access-token mode. SQL output is truncated — MCP responses are intentionally limited to 100 rows and 80 KB. Narrow the query with selected columns, WHERE, aggregation and deterministic keyset pagination. A provider partition cannot recover rows omitted locally by the connector.

External Resources

Snowflake REST APIs

Official Snowflake REST API reference for databases, schemas, warehouses and asynchronous results.

Tool Agents

Learn how Agent Factory agents consume MCP tools in Prisme.ai.