Skip to main content
Glama

get_workflow_definition

Retrieve complete workflow definitions including tasks and configuration from the Conductor workflow engine by specifying 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 for get_workflow_definition tool: extracts workflowName and optional version from arguments, constructs the appropriate Conductor API endpoint, fetches the workflow definition, and returns it as formatted JSON.
    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), }, ], }; }
  • Tool metadata and input schema definition for get_workflow_definition, specifying required workflowName and optional version parameters.
    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"], }, },
  • src/index.ts:598-602 (registration)
    Registration of all tools including get_workflow_definition via the list_tools handler that returns the complete tools array.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools, }; });

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