Skip to main content
Glama

mcp-google-sheets

count-subscriber.ts800 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { count } from '../api'; import { buildListDropdown } from '../props'; import { sendyAuth, SendyAuthType } from '../auth'; export const countAction = createAction({ name: 'count_subscribers', auth: sendyAuth, displayName: 'Count Active Subscribers', description: 'Get the active subscriber count for a list', props: { list: Property.Dropdown({ displayName: 'List', description: 'Select the list to get the status from', required: true, refreshers: ['auth'], options: async ({ auth }) => await buildListDropdown(auth as SendyAuthType), }), }, async run(context) { return await count(context.auth, { list_id: context.propsValue.list, }); }, });

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