Skip to main content
Glama

mcp-google-sheets

send-sms.ts1.09 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { HttpMethod } from '@activepieces/pieces-common'; import { callTwilioApi, twilioCommon } from '../common'; import { twilioAuth } from '../..'; export const twilioSendSms = createAction({ auth: twilioAuth, name: 'send_sms', description: 'Send a new SMS message', displayName: 'Send SMS', props: { from: twilioCommon.phone_number, body: Property.ShortText({ description: 'The body of the message to send', displayName: 'Message Body', required: true, }), to: Property.ShortText({ description: 'The phone number to send the message to', displayName: 'To', required: true, }), }, async run(context) { const { body, to, from } = context.propsValue; const account_sid = context.auth.username; const auth_token = context.auth.password; return await callTwilioApi( HttpMethod.POST, 'Messages.json', { account_sid, auth_token }, { From: from, Body: body, To: to, } ); }, });

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