Skip to main content
Glama

get_comment

Retrieve specific comment details from Outline wiki by providing its unique identifier 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 calls the Outline API's /comments.info endpoint with the commentId to fetch and return the comment details including id, documentId, data (text), timestamps, creator, and parent.
    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 schema definition for get_comment input, validating commentId as a UUID string.
    export const getCommentSchema = z.object({ commentId: z.string().uuid('Invalid comment ID'), });
  • Registers the 'get_comment' tool in the allTools array using createTool, linking to its Zod schema and providing description for MCP tool definition.
    createTool( 'get_comment', 'Get details of a specific comment.', 'get_comment' ),
  • TypeScript type derived from getCommentSchema for use in handler function signatures.
    export type GetCommentInput = z.infer<typeof getCommentSchema>;
  • Maps the 'get_comment' tool name to its schema in the central toolSchemas registry.
    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