Skip to main content
Glama
Leanware-io

ClickUp MCP Integration

by Leanware-io

clickup_get_task_by_custom_id

Retrieve ClickUp tasks using custom identifiers to access specific task details and information within your workspace.

Instructions

Get a task by its custom ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
custom_idYes

Implementation Reference

  • Tool handler for 'clickup_get_task_by_custom_id' that extracts custom_id from input and calls TaskService.getTaskByCustomId to fetch the task, returning JSON stringified response.
    const getTaskByCustomIdTool = defineTool((z) => ({
      name: "clickup_get_task_by_custom_id",
      description: "Get a task by its custom ID",
      inputSchema: {
        custom_id: z.string(),
      },
      handler: async (input) => {
        const { custom_id } = input;
        const response = await taskService.getTaskByCustomId(custom_id);
        return {
          content: [{ type: "text", text: JSON.stringify(response) }],
        };
      },
    }));
  • Input schema defining 'custom_id' as a required string.
    inputSchema: {
      custom_id: z.string(),
    },
  • Helper method in TaskService that performs the API GET request to ClickUp to retrieve task by custom ID using custom_task_ids=true parameter.
    async getTaskByCustomId(customId: string): Promise<ClickUpTask> {
      return this.request<ClickUpTask>(
        `/task/${customId}?custom_task_ids=true&team_id=${this.workspaceId}&include_subtasks=true&include_markdown_description=true`
      );
    }

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/Leanware-io/clickup-mcp-server'

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