People Data Labs ACTION
Enrich a person
The Person Enrichment API provides a one-to-one match, retrieving up-to-date information on a unique individual. See the docs here
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's People Data Labs account once, then configure and run Enrich a person 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: "people_data_labs-enrich-person",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
people_data_labs: { authProvisionId: "apn_xxxxxxx" },
name: "Name",
firstName: "First 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": "people_data_labs-enrich-person",
"configured_props": {
"people_data_labs": { "authProvisionId": "apn_xxxxxxx" },
"name": "Name",
"firstName": "First 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": "people_data_labs",
},
},
},
)
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: "people_data_labs-enrich-person",
arguments: {
name: "Name",
firstName: "First 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 |
|---|---|---|
name Name | string | The person's full name, at least first and last. Optional |
firstName First name | string | The person's first name. Optional |
lastName Last name | string | The person's last name. Optional |
middleName Middle name | string | The person's middle name. Optional |
location Location | string | The location in which a person lives. Can be anything from a street address to a country name. Optional |
streetAddress Street address | string | A street address in which the person lives. Optional |
locality Locality | string | A locality in which the person lives. Optional |
region Region | string | A state or region in which the person lives. Optional |
country Country | string | A country in which the person lives. Optional |
postalCode Postal code | string | The postal code in which the person lives, must be used with either a country or a region. Optional |
company Company | string | A name, website, or social url of a company where the person has worked. Optional |
school School | string | A name, website, or social url of a university or college the person has attended. Optional |
phone Phone | string | A phone number the person has used. Optional |
email Email | string | An email the person has used. Optional |
emailHash Email hash | string | A sha256 email hash. Optional |
profile Profile | string | A social profile the person has used. List of available social profiles. Optional |
lid Linkedin ID | integer | A LinkedIn numerical ID. Optional |
birthDate Birth date | string | The person's birth date. Either the year, or a full birth date. Optional |
required Required | string | Parameter specifying the fields and data points a response must have to return a 200. See docs. Optional |
pretty Pretty | boolean | Whether the output should have human-readable indentation. Optional |
minLikelihood Min Likelihood | integer | The minimum likelihood score a response must have to return a 200. 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
- people_data_labs-enrich-person
- Version
- 0.0.6
- App
- People Data Labs
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗