Skip to main content
Glama

get_task

Retrieve detailed information about a specific ClickUp task using its unique task ID to access task data and manage workflow.

Instructions

Get details of a ClickUp task

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYesClickUp Task ID

Implementation Reference

  • The main handler function for the 'get_task' tool. It makes a GET request to the ClickUp API using the provided task_id and returns the task details as JSON or an error message.
    const getTask = async (args: any) => {
      try {
        const response = await clickupApi.get(`/task/${args.task_id}`);
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(response.data, null, 2),
            },
          ],
        };
      } catch (error) {
        if (axios.isAxiosError(error)) {
          return {
            content: [
              {
                type: "text",
                text: `ClickUp API error: ${error.response?.data?.err ?? error.message}`,
              },
            ],
            isError: true,
          };
        }
        throw error;
      }
    };
  • The schema definition for the 'get_task' tool, including description and inputSchema requiring 'task_id'.
    get_task: {
      description: "Get details of a ClickUp task",
      inputSchema: {
        type: "object",
        properties: {
          task_id: {
            type: "string",
            description: "ClickUp Task ID"
          }
        },
        required: ["task_id"]
      }
    }
  • src/index.ts:289-290 (registration)
    Registration of the 'get_task' tool in the CallToolRequestHandler switch statement, dispatching to the getTask handler.
    case 'get_task':
      return await getTask(args);
Install Server

Other 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/rubenaguir/clickup-mcp-server'

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