Skip to main content
Glama

list_task_comments

Retrieve and filter task comments in Dart by task ID, author, text, dates, or other parameters for efficient project management and analysis.

Instructions

List comments from Dart with optional filtering parameters. You can filter by author, task, text content, dates, and more.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
authorNoFilter by author name or email
authorIdNoFilter by author ID
idsNoFilter by comment IDs
limitNoNumber of results per page
offsetNoInitial index for pagination
parentIdNoFilter by parent comment ID
publishedAtAfterNoFilter by published date after (ISO format)
publishedAtBeforeNoFilter by published date before (ISO format)
taskNoFilter by task title
taskIdYesFilter by task ID
textNoFilter by comment text content

Implementation Reference

  • Handler logic for the 'list_task_comments' tool. Validates the taskId and calls CommentService.listComments with the provided arguments, returning the JSON-stringified comments.
    case LIST_TASK_COMMENTS_TOOL.name: { const taskId = getIdValidated(args.taskId, "taskId"); const comments = await CommentService.listComments({ taskId, ...args }); return { content: [{ type: "text", text: JSON.stringify(comments, null, 2) }], }; }
  • Tool definition including name, description, and detailed inputSchema for 'list_task_comments' with properties for filtering comments by taskId (required), author, dates, etc.
    export const LIST_TASK_COMMENTS_TOOL: Tool = { name: "list_task_comments", description: "List comments from Dart with optional filtering parameters. You can filter by author, task, text content, dates, and more.", inputSchema: { type: "object", properties: { taskId: { type: "string", description: "Filter by task ID", }, author: { type: "string", description: "Filter by author name or email", }, authorId: { type: "string", description: "Filter by author ID", }, ids: { type: "string", description: "Filter by comment IDs", }, limit: { type: "number", description: "Number of results per page", }, offset: { type: "number", description: "Initial index for pagination", }, parentId: { type: "string", description: "Filter by parent comment ID", }, publishedAtAfter: { type: "string", description: "Filter by published date after (ISO format)", }, publishedAtBefore: { type: "string", description: "Filter by published date before (ISO format)", }, task: { type: "string", description: "Filter by task title", }, text: { type: "string", description: "Filter by comment text content", }, }, required: ["taskId"], }, };
  • index.ts:192-214 (registration)
    Registration of all tools including LIST_TASK_COMMENTS_TOOL in the TOOLS array, which is returned by ListToolsRequestSchema handler.
    const TOOLS = [ // Config GET_CONFIG_TOOL, // Tasks CREATE_TASK_TOOL, LIST_TASKS_TOOL, GET_TASK_TOOL, UPDATE_TASK_TOOL, DELETE_TASK_TOOL, // Docs CREATE_DOC_TOOL, LIST_DOCS_TOOL, GET_DOC_TOOL, UPDATE_DOC_TOOL, DELETE_DOC_TOOL, // Comments ADD_TASK_COMMENT_TOOL, LIST_TASK_COMMENTS_TOOL, // Other GET_DARTBOARD_TOOL, GET_FOLDER_TOOL, GET_VIEW_TOOL, ];
  • index.ts:371-373 (registration)
    Server request handler for listing tools, which exposes the registered TOOLS including 'list_task_comments'.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS, }));

Other Tools

Related 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/its-dart/dart-mcp-server'

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