AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { HttpMethod } from '@activepieces/pieces-common';
import { createAction } from '@activepieces/pieces-framework';
import { mailerLiteAuth } from '../auth';
import { mailerLiteApi } from '../common/client';
import { listTimezonesOutputSchema } from '../output-schemas';
export const listTimezonesAction = createAction({
auth: mailerLiteAuth,
name: 'list_timezones',
classification: 'READ',
displayName: 'List Timezones',
description: 'List the timezones MailerLite supports.',
audience: 'ai',
aiMetadata: {
description:
'List the timezones MailerLite supports, with their IDs, names and UTC offsets. Read-only.',
idempotent: true,
},
outputSchema: listTimezonesOutputSchema,
props: {},
async run(context) {
const body = await mailerLiteApi.request<unknown>({
apiKey: context.auth.secret_text,
method: HttpMethod.GET,
path: '/timezones',
});
return body;
},
});