Skip to main content
Glama

mcp-google-sheets

get-min-max.ts691 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { common } from '../common'; export const getMinMax = createAction({ name: 'getMinMax', displayName: 'Find Min and Max', description: 'Get the smallest and greatest values from a list of numeric values.', props: { note: common.note, values: Property.Array({ displayName: 'Values', required: true }) }, async run({ propsValue }) { const result = common.validateArray(propsValue.values); if (result.hasError) throw new Error(JSON.stringify(result.error)); return { max: Math.max(...result.values), min: Math.min(...result.values) }; } });

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