Skip to main content
Glama
huiseo
by huiseo

get_comment

Retrieve specific comment details from Outline wiki using its unique ID for document management and collaboration.

Instructions

Get details of a specific comment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commentIdYes

Implementation Reference

  • The core handler function for the 'get_comment' tool. It fetches the specific comment details from the Outline API using the provided commentId and returns formatted comment information.
    async get_comment(args: GetCommentInput) {
      const { data } = await apiCall(() =>
        apiClient.post<OutlineComment>('/comments.info', { id: args.commentId })
      );
      return {
        id: data.id,
        documentId: data.documentId,
        data: data.data,
        createdAt: data.createdAt,
        createdBy: data.createdBy?.name,
        parentCommentId: data.parentCommentId,
      };
    },
  • Zod input schema for the get_comment tool, defining the required 'commentId' as a UUID.
    export const getCommentSchema = z.object({
      commentId: z.string().uuid('Invalid comment ID'),
    });
  • Registers the 'get_comment' tool in the allTools array, linking its name, description, and schema.
      'get_comment',
      'Get details of a specific comment.',
      'get_comment'
    ),
    createTool(
  • Includes the comment handlers (including get_comment) in the aggregated ToolHandlers object.
    ...createCommentHandlers(ctx),
  • Maps the get_comment tool name to its schema in the central toolSchemas record.
    get_comment: getCommentSchema,

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/huiseo/outline-wiki-mcp'

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