Skip to main content
Glama

test_workflow

Test workflows using sample data to verify functionality before deployment in the Automatisch automation platform.

Instructions

Test a workflow with sample data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesWorkflow ID to test
testDataNoSample data for testing

Implementation Reference

  • The core handler function for executing the test_workflow tool. It takes a workflowId and optional testData, and is called by the MCP tool dispatcher to perform the workflow test.
    testWorkflow: async function(workflowId: any, testData: any = {}) { // ... copy testWorkflow logic from index.ts ... },
  • Input schema definition for the test_workflow tool, specifying required workflowId and optional testData.
    inputSchema: { type: "object", properties: { workflowId: { type: "string", description: "Workflow ID to test" }, testData: { type: "object", description: "Sample data for testing" } }, required: ["workflowId"] }
  • Tool registration entry in the ListTools response, including name, description, and schema for test_workflow.
    { name: "test_workflow", description: "Test a workflow with sample data", inputSchema: { type: "object", properties: { workflowId: { type: "string", description: "Workflow ID to test" }, testData: { type: "object", description: "Sample data for testing" } }, required: ["workflowId"] } }
  • MCP CallToolRequestHandler switch case that dispatches test_workflow calls to the api.testWorkflow implementation.
    case "test_workflow": return { content: [ { type: "text", text: JSON.stringify(await main.api.testWorkflow(args?.workflowId, args?.testData), null, 2) } ] };
  • Initializes the api object with apiHelpers, providing the testWorkflow method to handlers.
    public api = apiHelpers(this);

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

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