IMPLEMENTATION
Call this tool
Connect a user's Trello account once, then configure and run Create Card 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: "trello-create-card",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
trello: { authProvisionId: "apn_xxxxxxx" },
board: "Board",
name: "Name",
},
})
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": "trello-create-card",
"configured_props": {
"trello": { "authProvisionId": "apn_xxxxxxx" },
"board": "Board",
"name": "Name"
}
}'// 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": "trello",
},
},
},
)
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: "trello-create-card",
arguments: {
board: "Board",
name: "Name",
},
})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 |
|---|---|---|
board Board | string | The Trello board you wish to select Required Dynamic |
name Name | string | The name of the card. Required |
desc Description | string | The description for the card Optional |
pos Position | string | The position of the new card. top, bottom, or a positive float Optional |
due Due Date | string | Card due date in ISO format Optional |
dueComplete Due Complete | boolean | Flag that indicates if dueDate expired Optional |
idList List | string | The ID of the list the card should be created in. Required Dynamic |
idMembers Members | string[] | Array of member IDs to add to the card Optional Dynamic |
idLabels Labels | string[] | Array of labelIDs to add to the card Optional Dynamic |
urlSource URL Attachment | string | A URL to attach as a link on the card. Must start with http:// or https://. Optional |
file File Path or URL | string | Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.pdf). Optional |
mimeType Mime Type | string | Mime type of the attached file. Eg. application/pdf Optional Dynamic |
idCardSource Copy Card | string | Specify an existing card to copy contents from. Keep in mind that if you copy a card, the File Attachment Path, File Attachment URL and File Attachment Type fields will be ignored. Optional Dynamic |
keepFromSource Copy From Source | string[] | Specify which properties to copy from the source card Optional |
address Address | string | For use with/by the Map Power-Up Optional |
locationName Location Name | string | For use with/by the Map Power-Up Optional |
coordinates Coordinates | string | Latitude, longitude coordinates. For use with/by the Map Power-Up. Should take the form lat, long. Optional |
customFieldIds Custom Field Ids | string[] | An array of custom field Ids to create/update Optional Dynamic |
syncDir SyncDir | dir | 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
- trello-create-card
- Version
- 1.0.9
- App
- Trello
- Authentication
- OAuth
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗