Skip to main content
Glama
huiseo

Outline Wiki MCP Server

by huiseo

get_comment

Retrieve specific comment details from Outline wiki by providing the comment 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 that fetches and formats comment details from the Outline API.
    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 'get_comment' tool, requiring a valid UUID commentId.
    export const getCommentSchema = z.object({
      commentId: z.string().uuid('Invalid comment ID'),
    });
  • Registers 'get_comment' as an MCP tool with description and schema reference.
    createTool(
      'get_comment',
      'Get details of a specific comment.',
      'get_comment'
    ),
  • Aggregates comment handlers, including 'get_comment', into the main handlers object.
    ...createCommentHandlers(ctx),
  • Maps 'get_comment' to its schema in the central toolSchemas object.
    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-smart-mcp'

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