View as Markdown
Google Contacts icon

Google Contacts ACTION

Update Contact

Updates a contact. Provide at least one of the optional fields (name, email, phone, etc.) to update. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Google Contacts account once, then configure and run Update Contact 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: "google_contacts-update-contact",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    google_contacts: { authProvisionId: "apn_xxxxxxx" },
    resourceName: "Resource Name",
    firstName: "First Name",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Update Contact inputs
Property Type Description
resourceName Resource Name string
The resource name that identifies the contact
Required Dynamic
firstName First Name string
Contact's first name
Optional
middleName Middle Name string
Contact's middle name
Optional
lastName Last Name string
Contact's last name
Optional
email Email Address string
Contact's email address
Optional
phoneNumber Phone Number string
Contact's phone number
Optional
streetAddress Street Address string
Contact's street address
Optional
city City string
Contact's city
Optional
state State string
Contact's state/region
Optional
zipCode Zip Code string
Contact's zip code
Optional
country Country string
Contact's country
Optional
biography Biography string
Contact's biography
Optional
birthday Birthday string
Contact's birthday, in YYYY-MM-DD format
Optional
calendarUrl Calendar URL string
Contact's Calendar URL
Optional
gender Gender string
Contact's gender
Optional
urls URLs string[]
The contact's associated URLs.
Optional
additionalFields Additional Fields object
Additional Person resource fields merged into the request body. Each value will be parsed as a JSON object, and keys that have the same name as other props will override them. See the documentation for all available fields and their structure. Example value: { "organizations": [{ "name": "Acme", "title": "Engineer" }] }
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
google_contacts-update-contact
Version
0.1.6
App
Google Contacts
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes