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
import { Property, createAction } from '@activepieces/pieces-framework';
import { getDiscount } from '../api';
import { cartloomAuth } from '../auth';
export const getDiscountAction = createAction({
name: 'get_discount',
auth: cartloomAuth,
displayName: 'Get Discount',
description: 'Get discount info from Cartloom',
props: {
discountId: Property.ShortText({
displayName: 'Discount ID',
description: 'Enter the ID of the discount you want to retrieve',
required: true,
}),
},
async run(context) {
return await getDiscount(context.auth.props, context.propsValue.discountId);
},
});