Skip to main content
Glama

mcp-google-sheets

get-audience-groups.ts817 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { tarventAuth } from '../..'; import { makeClient, tarventCommon } from '../common'; export const getAudienceGroups = createAction({ auth: tarventAuth, name: 'tarvent_get_audience_groups', displayName: 'Find Audience Group', description: 'Finds an audience group by name.', props: { audienceId: tarventCommon.audienceId(true, ''), name: Property.ShortText({ displayName: 'Audience name', description: 'Find an audience by searching using its name.', required: false, defaultValue: '', }) }, async run(context) { const { audienceId, name } = context.propsValue; const client = makeClient(context.auth); return await client.listAudienceGroupsAdv(audienceId, name); }, });

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