Skip to main content
Glama

get-user-notes

Retrieve a user's published articles from note.com by specifying their username and optional page number.

Instructions

ユーザーの記事一覧を取得する

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYesユーザー名
pageNoページ番号

Implementation Reference

  • The main handler function for 'get-user-notes' tool. Fetches user's notes from note.com API endpoint `/v2/creators/${username}/contents?kind=note&page=${page}`, formats each note using formatNote, and returns total count, limit, and list of formatted notes.
    async ({ username, page }) => { try { const data = await noteApiRequest(`/v2/creators/${username}/contents?kind=note&page=${page}`); let formattedNotes: any[] = []; if (data.data && data.data.contents) { formattedNotes = data.data.contents.map((note: any) => formatNote(note, username) ); } return createSuccessResponse({ total: data.data?.totalCount || 0, limit: data.data?.limit || 0, notes: formattedNotes }); } catch (error) { return handleApiError(error, "ユーザー記事一覧取得"); } }
  • Input schema defined with Zod: username (required string), page (optional number, defaults to 1).
    { username: z.string().describe("ユーザー名"), page: z.number().default(1).describe("ページ番号"), },
  • Direct registration of the 'get-user-notes' tool using server.tool() method, including name, Japanese description, input schema, and handler function.
    server.tool( "get-user-notes", "ユーザーの記事一覧を取得する", { username: z.string().describe("ユーザー名"), page: z.number().default(1).describe("ページ番号"), }, async ({ username, page }) => { try { const data = await noteApiRequest(`/v2/creators/${username}/contents?kind=note&page=${page}`); let formattedNotes: any[] = []; if (data.data && data.data.contents) { formattedNotes = data.data.contents.map((note: any) => formatNote(note, username) ); } return createSuccessResponse({ total: data.data?.totalCount || 0, limit: data.data?.limit || 0, notes: formattedNotes }); } catch (error) { return handleApiError(error, "ユーザー記事一覧取得"); } } );
  • Higher-level registration call that invokes registerUserTools(server), which includes the 'get-user-notes' tool.
    registerUserTools(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