Skip to main content
Glama

nworks_board_read

Retrieve detailed content from LINE WORKS board posts using board ID and post ID. Requires OAuth authentication with board.read scope.

Instructions

게시판 글의 상세 내용을 조회합니다. postId는 nworks_board_posts로 조회 가능. User OAuth 인증 필요 (board.read scope)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boardIdYes게시판 ID (nworks_board_list로 조회 가능)
postIdYes글 ID (nworks_board_posts로 조회 가능)

Implementation Reference

  • Tool registration and handler implementation for 'nworks_board_read' in src/mcp/tools.ts, which delegates to boardApi.readPost.
    server.tool(
      "nworks_board_read",
      "게시판 글의 상세 내용을 조회합니다. postId는 nworks_board_posts로 조회 가능. User OAuth 인증 필요 (board.read scope)",
      {
        boardId: z.string().describe("게시판 ID (nworks_board_list로 조회 가능)"),
        postId: z.string().describe("글 ID (nworks_board_posts로 조회 가능)"),
      },
      async ({ boardId, postId }) => {
        try {
          const post = await boardApi.readPost(boardId, postId);
          return {
            content: [{ type: "text" as const, text: JSON.stringify({
              postId: post.postId,
              boardId: post.boardId,
              title: post.title,
              body: post.body ?? "",
              userName: post.userName ?? "",
              readCount: post.readCount ?? 0,
              commentCount: post.commentCount ?? 0,
              createdTime: post.createdTime ?? "",
              updatedTime: post.updatedTime ?? "",
            }) }],
          };
  • The underlying API implementation of the readPost function used by the nworks_board_read tool.
    export async function readPost(
      boardId: string,
      postId: string,
      profile = "default"
    ): Promise<Post> {
      const url = `${BASE_URL}/boards/${sanitizePathSegment(boardId)}/posts/${sanitizePathSegment(postId)}`;
    
      if (process.env["NWORKS_VERBOSE"] === "1") {
        console.error(`[nworks] GET ${url}`);
      }
    
      const res = await authedFetch(url, { method: "GET" }, profile);
      if (!res.ok) return handleError(res);
    
      const text = await res.text();
      if (process.env["NWORKS_VERBOSE"] === "1") {
        console.error(`[nworks] Response: ${res.status} (${text.length} bytes)`);
      }
    
      return safeParseJson<Post>(text);
    }

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