Skip to main content
Glama

mcp-google-sheets

subtraction.ts824 B
import { createAction, PieceAuth, Property, } from '@activepieces/pieces-framework'; export const subtraction = createAction({ name: 'subtraction_math', auth: PieceAuth.None(), displayName: 'Subtraction', description: 'Subtract the first number from the second number', errorHandlingOptions: { continueOnFailure: { hide: true, }, retryOnFailure: { hide: true, }, }, props: { first_number: Property.Number({ displayName: 'First Number', description: undefined, required: true, }), second_number: Property.Number({ displayName: 'Second Number', description: undefined, required: true, }), }, async run(context) { return ( context.propsValue['second_number'] - context.propsValue['first_number'] ); }, });

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