Skip to main content
Glama

mcp-google-sheets

delete-lead.ts787 B
import { createAction } from '@activepieces/pieces-framework'; import { HttpMethod } from '@activepieces/pieces-common'; import { hunterApiCall } from '../common'; import { hunterAuth } from '../../index'; import { leadDeleteDropdownProp } from '../common/props'; export const deleteLeadAction = createAction({ auth: hunterAuth, name: 'delete-lead', displayName: 'Delete Lead', description: 'Delete a specific lead record by ID.', props: { lead_id: leadDeleteDropdownProp, }, async run(context) { const { lead_id } = context.propsValue; await hunterApiCall({ apiKey: context.auth, endpoint: `/leads/${lead_id}`, method: HttpMethod.DELETE, }); return { success: true }; }, });

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