Klenty ACTION
Update Prospect
Updates an existing prospect's information in Klenty. See the documentation
- Action
- Writes data
- Destructive
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Klenty account once, then configure and run Update Prospect 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: "klenty-update-prospect",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
klenty: { authProvisionId: "apn_xxxxxxx" },
list: "List",
prospect: "Prospect",
},
})
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": "klenty-update-prospect",
"configured_props": {
"klenty": { "authProvisionId": "apn_xxxxxxx" },
"list": "List",
"prospect": "Prospect"
}
}'// 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": "klenty",
},
},
},
)
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: "klenty-update-prospect",
arguments: {
list: "List",
prospect: "Prospect",
},
})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 |
|---|---|---|
list List | string | The list you want to add the Prospect to. Required Dynamic |
prospect Prospect | string | The prospect to interact. Required Dynamic |
email Email | string | The prospect's email address. Optional |
firstName First Name | string | The prospect's first name. Optional |
company Company | string | The Prospect's company name. Optional |
fullName Full Name | string | The Prospect's full name. Optional |
lastName Last Name | string | The Prospect's last name. Optional |
middleName Middle Name | string | The Prospect's middle name. Optional |
account Account | string | The Prospect's Account field. Optional |
department Department | string | The Prospect's Department field. Optional |
companyDomain Company Domain | string | The Prospect's Company Domain field. Optional |
title Title | string | The Prospect's Title field. Optional |
location Location | string | The Prospect's Location field. Optional |
phone Phone | string | The Prospect's Phone field. Optional |
twitterId Twitter Id | string | The Prospect's Twitter Id field. Optional |
companyPhone Company Phone | string | The Prospect's Company Phone field. Optional |
companyEmail Company Email | string | The Prospect's Company Email field. Optional |
linkedinURL Linkedin URL | string | The Prospect's Linkedin URL field. Optional |
city City | string | The Prospect's City field. Optional |
country Country | string | The Prospect's Country field. Optional |
newList New List | string | The list where the prospect is going. Optional Dynamic |
tags Tags | string[] | A list of tags. 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
- klenty-update-prospect
- Version
- 0.0.2
- App
- Klenty
- Authentication
- API key
- Read-only
- No
- Destructive
- Yes
- Open world
- Yes
- Source
- View on GitHub ↗