Skip to main content
Glama

mcp-google-sheets

find-client.ts1.11 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { simplybookAuth, makeJsonRpcCall, SimplybookAuth } from '../common'; export const findClient = createAction({ auth: simplybookAuth, name: 'find_client', displayName: 'Get Client List', description: 'Returns list of clients associated with company. Search by phone number, email address, or name.', props: { searchString: Property.ShortText({ displayName: 'Search String', description: 'Search by phone number, email address, or name. Leave empty to get all clients.', required: false }), limit: Property.Number({ displayName: 'Limit', description: 'Maximum number of clients to return. Leave empty for no limit.', required: false }) }, async run(context) { const auth = context.auth as SimplybookAuth; const { searchString, limit } = context.propsValue; const params = [ searchString || '', limit !== undefined ? limit : null ]; const clients = await makeJsonRpcCall(auth, 'getClientList', params); return clients; } });

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