Skip to main content
Glama

mcp-google-sheets

find-contact.ts753 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { capsuleCrmAuth } from '../common/auth'; import { capsuleCrmClient } from '../common/client'; export const findContactAction = createAction({ auth: capsuleCrmAuth, name: 'find_contact', displayName: 'Find Contact', description: 'Find a Person by search criteria.', props: { term: Property.ShortText({ displayName: 'Search Term', description: 'The value to search for (e.g., a name or email).', required: true, }), }, async run(context) { const { auth, propsValue } = context; const parties = await capsuleCrmClient.findContact(auth, propsValue.term); return parties.filter((party) => party.type === 'person'); }, });

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