Skip to main content
Glama

swit-message-comment-list

Fetch comments associated with a specific message in Swit workspaces using message ID. Supports pagination to manage large datasets efficiently.

Instructions

Retrieve list of comments on message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
message_idYes
offsetNo

Implementation Reference

  • The handler function that implements the core logic for 'swit-message-comment-list': validates args with MessageCommentListArgsSchema and calls switClient.listMessageComments.
    export const handleMessageCommentList = async (switClient: SwitClient, args: any) => { const validatedArgs = MessageCommentListArgsSchema.parse(args); return await switClient.listMessageComments(validatedArgs); };
  • Zod schema for input validation of the tool: requires message_id, optional pagination params.
    export const MessageCommentListArgsSchema = z.object({ message_id: z.string(), offset: z.string().optional(), limit: z.number().min(1).max(100).optional(), });
  • Tool specification object defining name, description, and input JSON schema for MCP protocol.
    { name: 'swit-message-comment-list', description: 'Retrieve list of comments on message', inputSchema: zodToJsonSchema(MessageCommentListArgsSchema), },
  • Registers the tool name to its handler function in the coreHandlers factory.
    'swit-message-comment-list': (args: any) => handleMessageCommentList(switClient, args),
  • src/index.ts:109-109 (registration)
    Merges coreHandlers (containing this tool) into the server's global toolHandlers.
    toolHandlers = { ...oauthHandlers(oauthWebServer), ...coreHandlers(switClient) };

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/TykanN/swit-mcp'

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