Skip to main content
Glama

mcp-google-sheets

lookup.ts1.25 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { HttpMethod } from '@activepieces/pieces-common'; import { sevenAuth } from '../index'; import { callSevenApi } from '../common'; export const lookup = createAction({ auth: sevenAuth, name: 'lookup', displayName: 'Lookup Phone Numbers', description: 'Get information about CNAM, HLR, MNP, RCS capabilities and Number formats.', props: { type: Property.StaticDropdown<string, true>({ options: { options: [ {label: 'CNAM', value: 'cnam'}, {label: 'HLR', value: 'hlr'}, {label: 'Format', value: 'format'}, {label: 'MNP', value: 'mnp'}, {label: 'RCS capabilities', value: 'rcs'} ] }, displayName: 'Type', required: true }), numbers: Property.Array({ description: 'The phone numbers to look up.', displayName: 'Numbers', required: true }), }, async run(context) { const { numbers, type } = context.propsValue; const response= await callSevenApi({ queryParams: { number: numbers.join(','), }, method: HttpMethod.GET }, `lookup/${type}`, context.auth as string); return response.body; } });

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