# New Storm — Stormboard

> Creates a new storm. See the docs here

- Key: `stormboard-new-storm`
- Type: Action (Write)
- Version: 0.0.2
- App: Stormboard (`stormboard`) — https://pipedream.com/apps/stormboard.md
- This page (HTML): https://pipedream.com/apps/stormboard/actions/new-storm
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/stormboard/actions/new-storm/new-storm.mjs

## Description

Creates a new storm. [See the docs here](https://api.stormboard.com/docs)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `plan` | `string` | Yes | The type of plan to create this Storm under. |
| `title` | `string` | Yes | The title of the Storm. |
| `description` | `string` | No | The description of the Storm. |
| `votesPerUser` | `integer` | No | The number of votes each user gets. Between 0 and 100. Defaults to 10. |
| `avatars` | `boolean` | No | Show where each user is in realtime on the Storm wall with an avatar and name. |
| `ideaCreator` | `boolean` | No | Show the idea creator's avatar on the corner of the idea |
| `teamId` | `string` | No | The team's unique id. Required if the 'plan' parameter is set to 'team'. You must also be a Storm Administrator on this team to be able to create Storms. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
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 accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_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": "stormboard",
      },
    },
  },
)

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: "stormboard-new-storm",
  arguments: {
    plan: "Plan",
    title: "Title",
  },
})
```

**TypeScript**

```ts
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: "stormboard-new-storm",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    stormboard: { authProvisionId: "apn_xxxxxxx" },
    plan: "Plan",
    title: "Title",
  },
})

console.log(result)
```

**cURL**

```bash
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": "stormboard-new-storm",
    "configured_props": {
      "stormboard": { "authProvisionId": "apn_xxxxxxx" },
      "plan": "Plan",
      "title": "Title"
    }
  }'
```

---

- App: https://pipedream.com/apps/stormboard.md · All apps: https://pipedream.com/apps
