Snowflake ACTION
Insert Multiple Rows
Insert multiple rows into a table
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Snowflake account once, then configure and run Insert Multiple Rows from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "snowflake-insert-multiple-rows",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
snowflake: { authProvisionId: "apn_xxxxxxx" },
database: "Database",
schema: "Schema",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "snowflake-insert-multiple-rows",
"configured_props": {
"snowflake": { "authProvisionId": "apn_xxxxxxx" },
"database": "Database",
"schema": "Schema"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "snowflake",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "snowflake-insert-multiple-rows",
arguments: {
database: "Database",
schema: "Schema",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
database Database | string | The database to use Required Dynamic |
schema Schema | string | The schema to use Required Dynamic |
tableName Table Name | string | The table where you want to add rows Required Dynamic |
columns Columns | string[] | Select the columns you want to insert data into Required Dynamic |
values Row Values | string | Provide an array of arrays. Each nested array should represent a row, with each element of the nested array representing a value (e.g., passing [["Foo",1,2],["Bar",3,4]] will insert two rows of data with three columns each). The most common pattern is to reference an array of arrays exported by a previous step (e.g., {{steps.foo.$return_value}}). You may also enter or construct a string that will JSON.parse() to an array of arrays. Required |
batchSize Batch Size | integer | Number of rows to process per batch. Automatically calculated based on data size if not specified. Recommended: 50-200 for wide tables, 100-500 for narrow tables. Optional |
maxPayloadSizeMB Max Payload Size (MB) | integer | Maximum payload size per batch in MB. Helps prevent 413 Payload Too Large errors. Optional |
enableBatching Enable Batch Processing | boolean | Enable automatic batch processing for large datasets. Disable only for small datasets (< 50 rows) or troubleshooting. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- snowflake-insert-multiple-rows
- Version
- 0.1.7
- App
- Snowflake
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗