Skip to main content
Glama

get-note

Retrieve detailed article information from note.com using the article ID to access content, metadata, and publication details.

Instructions

記事の詳細情報を取得する

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteIdYes記事ID(例: n4f0c7b884789)

Implementation Reference

  • The core handler function for the 'get-note' MCP tool. It constructs API parameters to fetch note details (including drafts), calls the note.com API, formats the response using formatNote helper, and returns a standardized success response or handles errors via handleApiError.
    async ({ noteId }) => { try { const params = new URLSearchParams({ draft: "true", draft_reedit: "false", ts: Date.now().toString() }); const data = await noteApiRequest( `/v3/notes/${noteId}?${params.toString()}`, "GET", null, true ); const noteData = data.data || {}; const formattedNote = formatNote(noteData); return createSuccessResponse(formattedNote); } catch (error) { return handleApiError(error, "記事取得"); }
  • Zod input schema definition for the 'get-note' tool, specifying the required 'noteId' parameter.
    { noteId: z.string().describe("記事ID(例: n4f0c7b884789)"), },
  • Direct registration of the 'get-note' tool on the MCP server instance within registerNoteTools function. Includes name, Japanese description, input schema, and inline handler.
    server.tool( "get-note", "記事の詳細情報を取得する", { noteId: z.string().describe("記事ID(例: n4f0c7b884789)"), }, async ({ noteId }) => { try { const params = new URLSearchParams({ draft: "true", draft_reedit: "false", ts: Date.now().toString() }); const data = await noteApiRequest( `/v3/notes/${noteId}?${params.toString()}`, "GET", null, true ); const noteData = data.data || {}; const formattedNote = formatNote(noteData); return createSuccessResponse(formattedNote); } catch (error) { return handleApiError(error, "記事取得"); } } );
  • Invocation of registerNoteTools within registerAllTools, which registers the get-note tool among others.
    registerNoteTools(server);

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/shimayuz/note-com-mcp'

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