Skip to main content
Glama

start_workflow

Execute automated workflows in Agentled MCP Server by providing workflow ID and optional input data for process initiation.

Instructions

Start a workflow execution. Optionally provide input data that maps to the workflow's input page fields. For example, if the workflow expects "company_url", pass: { input: { company_url: "https://..." } }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesThe workflow ID to start
inputNoInput payload matching the workflow input page fields
metadataNoOptional execution metadata

Implementation Reference

  • The `start_workflow` tool is registered here, which invokes the `client.startWorkflow` method.
        server.tool(
            'start_workflow',
            `Start a workflow execution. Optionally provide input data that maps to the workflow's input page fields.
    For example, if the workflow expects "company_url", pass: { input: { company_url: "https://..." } }`,
            {
                workflowId: z.string().describe('The workflow ID to start'),
                input: z.record(z.string(), z.any()).optional().describe('Input payload matching the workflow input page fields'),
                metadata: z.record(z.string(), z.any()).optional().describe('Optional execution metadata'),
            },
            async ({ workflowId, input, metadata }, extra) => {
                const client = clientFactory(extra);
                const result = await client.startWorkflow(workflowId, input, metadata);
                return {
                    content: [{
                        type: 'text' as const,
                        text: JSON.stringify(result, null, 2),
                    }],
                };
            }
        );

Latest Blog Posts

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/Agentled/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server