IMPLEMENTATION
Call this tool
Connect a user's Agendor account once, then configure and run Create 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: "agendor-create-person",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
agendor: { authProvisionId: "apn_xxxxxxx" },
name: "Name",
cpf: "Legal Document Number (CPF)",
},
})
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": "agendor-create-person",
"configured_props": {
"agendor": { "authProvisionId": "apn_xxxxxxx" },
"name": "Name",
"cpf": "Legal Document Number (CPF)"
}
}'// 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": "agendor",
},
},
},
)
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: "agendor-create-person",
arguments: {
name: "Name",
cpf: "Legal Document Number (CPF)",
},
})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 | Name of this person. Required |
cpf Legal Document Number (CPF) | string | Legal document number (CPF) Optional |
organizationId Organization ID | string | The ID of the organization to retrieve. Optional Dynamic |
role Role | string | Person's role in their organization Optional |
ranking Ranking | string | Ranking displayed as stars in the page. Optional |
description Description | string | Your description of this person. Optional |
birthday Birthday | string | Person's birthday with or without year ( YYYY-MM-DD or MM-DD). Optional |
ownerUser Owner User | string | User ID or email of the owner of this person. Optional Dynamic |
contact Contact | object | Contact object can have the following properties: email, work, mobile, fax, whatsapp, facbeook, twitter, instagram, linked_in, skype. Please check the documentation in the description for more information. Optional |
address Address | object | Address Object can have the following properties: postal_code, country, district, state, street_name, street_number, additional_info, city. Please check the documentation in the description for more information. Optional |
leadOrigin Lead Origin | string | Lead origin. Optional Dynamic |
category Category | string | Category ID or name. Optional Dynamic |
products Products | string[] | Array of product IDs. Optional Dynamic |
allowedUsers Allowed Users | string | Array of IDs of users that should be able to see this person. Optional Dynamic |
allowToAllUsers Allow to All Users | boolean | Set true if this person should be visible to all users. Optional |
customFields Custom Fields | object | Custom fields information. 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
- agendor-create-person
- Version
- 0.0.2
- App
- Agendor
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗