Skip to main content
Glama

nworks_board_posts

Retrieve and display posts from LINE WORKS boards. Use this tool to view announcements, discussions, or content lists after obtaining board ID and user authentication.

Instructions

게시판의 글 목록을 조회합니다. '게시판 글 보여줘', '공지사항 확인' 등의 요청에 사용. boardId는 nworks_board_list로 조회 가능. User OAuth 인증 필요 (board.read scope)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boardIdYes게시판 ID (nworks_board_list로 조회 가능)
countNo페이지당 항목 수 (기본: 20, 최대: 40)
cursorNo페이지네이션 커서

Implementation Reference

  • The handler implementation for the nworks_board_posts tool, which calls boardApi.listPosts to retrieve board posts.
    async ({ boardId, count, cursor }) => {
      try {
        const result = await boardApi.listPosts(boardId, count ?? 20, cursor);
        const posts = result.posts.map((p) => ({
          postId: p.postId,
          title: p.title,
          userName: p.userName ?? "",
          readCount: p.readCount ?? 0,
          commentCount: p.commentCount ?? 0,
          createdTime: p.createdTime ?? "",
        }));
        return {
          content: [{ type: "text" as const, text: JSON.stringify({ posts, count: posts.length, hasMore: !!result.responseMetaData?.nextCursor, nextCursor: result.responseMetaData?.nextCursor ?? null }) }],
        };
      } catch (err) {
        return {
          content: [{ type: "text" as const, text: mcpErrorHint(err, "board.posts") }],
          isError: true,
        };
      }
    }
  • Registration of the nworks_board_posts tool including its description and schema definition.
    server.tool(
      "nworks_board_posts",
      "게시판의 글 목록을 조회합니다. '게시판 글 보여줘', '공지사항 확인' 등의 요청에 사용. boardId는 nworks_board_list로 조회 가능. User OAuth 인증 필요 (board.read scope)",
      {
        boardId: z.string().describe("게시판 ID (nworks_board_list로 조회 가능)"),
        count: z.number().optional().describe("페이지당 항목 수 (기본: 20, 최대: 40)"),
        cursor: z.string().optional().describe("페이지네이션 커서"),
      },
      async ({ boardId, count, cursor }) => {
        try {
          const result = await boardApi.listPosts(boardId, count ?? 20, cursor);
          const posts = result.posts.map((p) => ({
            postId: p.postId,
            title: p.title,
            userName: p.userName ?? "",
            readCount: p.readCount ?? 0,
            commentCount: p.commentCount ?? 0,
            createdTime: p.createdTime ?? "",
          }));
          return {
            content: [{ type: "text" as const, text: JSON.stringify({ posts, count: posts.length, hasMore: !!result.responseMetaData?.nextCursor, nextCursor: result.responseMetaData?.nextCursor ?? null }) }],
          };
        } catch (err) {
          return {
            content: [{ type: "text" as const, text: mcpErrorHint(err, "board.posts") }],
            isError: true,
          };
        }
      }
    );

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/yjcho9317/nworks'

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