Skip to main content
Glama

get_workflow_definition

Retrieve complete workflow definitions including tasks and configuration from the Conductor workflow engine by specifying workflow name and optional version.

Instructions

Get the definition of a workflow by name and version. Returns the complete workflow definition including all tasks and configuration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowNameYesName of the workflow
versionNoVersion of the workflow (optional, defaults to latest)

Implementation Reference

  • Handler implementation for the get_workflow_definition tool. Fetches the workflow definition from the Conductor server using the provided workflow name and optional version, then formats and returns the response as JSON text.
    case "get_workflow_definition": { const { workflowName, version } = args as any; const url = version ? `/metadata/workflow/${workflowName}/${version}` : `/metadata/workflow/${workflowName}`; const response = await conductorClient.get(url); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
  • src/index.ts:231-248 (registration)
    Tool registration in the tools array, including name, description, and input schema for get_workflow_definition.
    name: "get_workflow_definition", description: "Get the definition of a workflow by name and version. Returns the complete workflow definition including all tasks and configuration.", inputSchema: { type: "object", properties: { workflowName: { type: "string", description: "Name of the workflow", }, version: { type: "number", description: "Version of the workflow (optional, defaults to latest)", }, }, required: ["workflowName"], }, },
  • Input schema definition for the get_workflow_definition tool.
    inputSchema: { type: "object", properties: { workflowName: { type: "string", description: "Name of the workflow", }, version: { type: "number", description: "Version of the workflow (optional, defaults to latest)", }, }, required: ["workflowName"], },

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/opensensor/conductor-mcp'

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