Skip to main content
Glama

get_task_definition

Retrieve task definitions including configuration and metadata from the Conductor workflow engine to understand task structure and requirements.

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 implementation for the get_task_definition tool. It takes taskName from input arguments, fetches the task definition from the Conductor API endpoint `/metadata/taskdefs/${taskName}`, and returns the response as formatted JSON text.
    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), }, ], }; }
  • src/index.ts:518-531 (registration)
    The tool registration in the tools array, defining the name, description, and input schema (requiring taskName string). This is used for list_tools and validation.
    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