Skip to main content
Glama

list_document_comments

Retrieve comments on a specific Outline wiki document to review feedback and discussions. Specify document ID with optional pagination controls.

Instructions

Get list of comments on a document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentIdYes
limitNo
offsetNo

Implementation Reference

  • The core handler function that executes the list_document_comments tool. It calls the Outline API to fetch comments for the given document ID with pagination, then formats and returns them.
    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 defining the input parameters for the list_document_comments tool: documentId (required), limit (default 25), offset (default 0).
    export const listDocumentCommentsSchema = z.object({ documentId, limit: limit.default(25), offset, });
  • MCP tool registration using createTool, which converts the Zod schema to JSON schema and defines the tool name and description.
    createTool( 'list_document_comments', 'Get list of comments on a document.', 'list_document_comments' ),
  • TypeScript type definition for the input, inferred from the Zod schema.
    export type ListDocumentCommentsInput = z.infer<typeof listDocumentCommentsSchema>;
  • Mapping of tool name to its schema in the central toolSchemas object, used by tool definitions.
    list_document_comments: listDocumentCommentsSchema,

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