Skip to main content
Glama

test_workflow

Test workflows with sample data to verify functionality and identify issues before deployment.

Instructions

Test a workflow with sample data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesWorkflow ID to test
testDataNoSample data for testing

Implementation Reference

  • Executes the 'test_workflow' tool by calling main.api.testWorkflow with workflowId and testData arguments, returning the JSON stringified result as text content.
    case "test_workflow": return { content: [ { type: "text", text: JSON.stringify(await main.api.testWorkflow(args?.workflowId, args?.testData), null, 2) } ] };
  • Defines the input schema and metadata for the 'test_workflow' tool, including required workflowId and optional testData.
    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"] } }
  • Registers the 'test_workflow' tool in the ListTools response.
    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"] } }
  • API helper function for testWorkflow, delegated to by the tool handler (actual implementation pending).
    testWorkflow: async function(workflowId: any, testData: any = {}) { // ... copy testWorkflow logic from index.ts ... },

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