Skip to main content
Glama

create_task_definition

Create or update task definitions in Netflix Conductor Workflow Engine to manage workflow executions and troubleshooting.

Instructions

Create or update a task definition. If the task already exists, it will be updated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
definitionYesComplete task definition as a JSON object

Implementation Reference

  • Handler that executes the create_task_definition tool by posting the provided task definition to the Conductor API endpoint '/metadata/taskdefs' and returns a success message.
    case "create_task_definition": { const { definition } = args as any; await conductorClient.post("/metadata/taskdefs", [definition]); return { content: [ { type: "text", text: `Task definition created/updated successfully.`, }, ], }; }
  • Tool schema definition for 'create_task_definition', including the input schema requiring a 'definition' object.
    { name: "create_task_definition", description: "Create or update a task definition. If the task already exists, it will be updated.", inputSchema: { type: "object", properties: { definition: { type: "object", description: "Complete task definition as a JSON object", }, }, required: ["definition"], }, },
  • src/index.ts:598-602 (registration)
    Registration of the tools list handler, which includes the 'create_task_definition' tool in the returned 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