Skip to main content
Glama

list_document_comments

Retrieve comments on a specific Outline wiki document to review feedback and discussions.

Instructions

Get list of comments on a document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentIdYes
limitNo
offsetNo

Implementation Reference

  • The handler function that executes the list_document_comments tool. It calls the Outline API endpoint '/comments.list' with documentId, limit, and offset parameters, then formats the returned comments using formatComments.
    async list_document_comments(args: ListDocumentCommentsInput) { const { data } = await apiCall(() => apiClient.post<OutlineComment[]>('/comments.list', { documentId: args.documentId, limit: args.limit, offset: args.offset, }) ); return formatComments(data || []); },
  • Zod schema for ListDocumentCommentsInput, defining required documentId, optional limit (default 25, max 100), and offset (default 0).
    export const listDocumentCommentsSchema = z.object({ documentId, limit: limit.default(25), offset, });
  • Tool registration in the allTools array using createTool, which converts the Zod schema to JSON schema and sets the tool name and description for MCP protocol.
    createTool( 'list_document_comments', 'Get list of comments on a document.', 'list_document_comments' ),

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