Skip to main content
Glama

mcp-google-sheets

get-task-status.ts856 B
import { slidespeakAuth } from '../../index'; import { httpClient, HttpMethod } from '@activepieces/pieces-common'; import { createAction, Property } from '@activepieces/pieces-framework'; import { BASE_URL } from '../common/constants'; export const getTaskStatusAction = createAction({ auth: slidespeakAuth, name: 'get-task-status', displayName: 'Get Task Status', description: 'Gets status of task by id.', props: { taskId: Property.ShortText({ displayName: 'Task ID', required: true, }), }, async run(context) { const { taskId } = context.propsValue; const apiKey = context.auth; const response = await httpClient.sendRequest({ method: HttpMethod.GET, url: BASE_URL + `/task_status/${taskId}`, headers: { 'X-API-key': apiKey, }, }); 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