Skip to main content
Glama

get_task_definition

Retrieve task definitions including configuration and metadata from Netflix Conductor to understand task structure and troubleshoot workflows.

Instructions

Get the definition of a task by name. Returns the task definition including configuration and metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskNameYesName of the task

Implementation Reference

  • The handler for the 'get_task_definition' tool. Extracts taskName from input arguments, fetches the task definition from the Conductor API at `/metadata/taskdefs/${taskName}`, and returns the JSON response formatted as text content.
    case "get_task_definition": { const { taskName } = args as any; const response = await conductorClient.get(`/metadata/taskdefs/${taskName}`); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
  • Input schema for the 'get_task_definition' tool, defining a required 'taskName' string parameter.
    inputSchema: { type: "object", properties: { taskName: { type: "string", description: "Name of the task", }, }, required: ["taskName"], },
  • src/index.ts:356-370 (registration)
    Registration of the 'get_task_definition' tool in the tools array, including name, description, and input schema. This tool is listed via the ListToolsRequestHandler.
    { name: "get_task_definition", description: "Get the definition of a task by name. Returns the task definition including configuration and metadata.", inputSchema: { type: "object", properties: { taskName: { type: "string", description: "Name of the task", }, }, required: ["taskName"], }, },

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