Skip to main content
Glama

get_task

Retrieve detailed information about a specific task, including comments and attachments, from a project management board.

Instructions

Get details of a specific task including comments and attachments

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
board_idYesBoard ID
task_idYesTask ID

Implementation Reference

  • The handler function for the 'get_task' tool. It extracts board_id and task_id from args, fetches the task details from the API endpoint `/projects/${board_id}/tasks/${task_id}`, and returns the formatted response.
    async (args) => { const { board_id, task_id } = args; const response = await api.get(`/projects/${board_id}/tasks/${task_id}`); return formatResponse(response.data); }
  • Input schema for the 'get_task' tool using Zod validation: requires board_id and task_id as positive integers.
    { board_id: z.number().int().positive().describe("Board ID"), task_id: z.number().int().positive().describe("Task ID"), },
  • Direct registration of the 'get_task' tool on the MCP server, including name, description, input schema, and handler.
    server.tool( "get_task", "Get details of a specific task including comments and attachments", { board_id: z.number().int().positive().describe("Board ID"), task_id: z.number().int().positive().describe("Task ID"), }, async (args) => { const { board_id, task_id } = args; const response = await api.get(`/projects/${board_id}/tasks/${task_id}`); return formatResponse(response.data); } );
  • src/index.ts:23-23 (registration)
    Invocation of registerTaskTools function which registers the get_task tool (among others) on the main MCP server instance.
    registerTaskTools(server);

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/danieliser/fluent-boards-mcp-server'

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