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 { clockodoCommon, makeClient } from '../../common';
import { clockodoAuth } from '../../auth';
import { createAction } from '@activepieces/pieces-framework';
export default createAction({
auth: clockodoAuth,
name: 'get_project',
classification: 'READ',
displayName: 'Get Project',
description: 'Retrieves a single project from clockodo',
audience: 'both',
aiMetadata: { description: 'Fetch one clockodo project by its numeric project ID. Read-only and repeatable. Use when you already have the project ID and need its current fields (name, customer, budget, active/completed state); to find a project by name or list many, use Get Projects instead.', idempotent: true },
props: {
project_id: clockodoCommon.project_id(true, false, null),
},
async run({ auth, propsValue }) {
const client = makeClient(auth.props);
const res = await client.getProject(propsValue.project_id as number);
return res.project;
},
});