Skip to main content
Glama

mcp-google-sheets

create-contact-note.ts1.01 kB
import { tarventAuth } from '../..'; import { createAction, Property } from '@activepieces/pieces-framework'; import { makeClient, tarventCommon } from '../common'; import { propsValidation } from '@activepieces/pieces-common'; import { z } from 'zod'; export const createContactNote = createAction({ auth: tarventAuth, name: 'tarvent_create_contact_note', displayName: 'Add Note To Contact', description: 'Adds a note to a contact.', props: { contactId: tarventCommon.contactId, note: Property.LongText({ displayName: 'Note', description: 'Enter the note you would like to add to the contact.', required: true }) }, async run(context) { const { contactId, note } = context.propsValue; await propsValidation.validateZod(context.propsValue, { note: z.string().min(1).max(255, 'Description has to be less than 256 characters.') }); const client = makeClient(context.auth); return await client.createContactNote(contactId, note); }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server