Skip to main content
Glama

mcp-google-sheets

comment-a-call.ts1.01 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { aircallAuth } from '../common/auth'; import { makeRequest } from '../common/client'; import { HttpMethod } from '@activepieces/pieces-common'; import { callIdDropdown } from '../common/props'; export const commentACall = createAction({ auth: aircallAuth, name: 'commentACall', displayName: 'Comment a Call', description: 'Adds a comment (note) to a specific call.', props: { callId: callIdDropdown, content: Property.LongText({ displayName: 'Comment Content', required: true, }), }, async run(context) { const { callId, content } = context.propsValue; const auth = context.auth; const response = await makeRequest( auth, HttpMethod.POST, `/calls/${callId}/comments`, { content } ); return { status: 'success', message: `Comment added successfully to call ${callId}.`, comment: content, data: response, }; }, });

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