Skip to main content
Glama

search-magazines

Find magazines on note.com by entering search keywords to discover relevant publications and content collections.

Instructions

マガジンを検索する

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes検索キーワード
sizeNo取得する件数(最大20)
startNo検索結果の開始位置

Implementation Reference

  • Primary registration of the 'search-magazines' MCP tool, including schema definition and handler function that performs the API search on note.com magazines and formats results.
    server.tool( "search-magazines", "マガジンを検索する", { query: z.string().describe("検索キーワード"), size: z.number().default(10).describe("取得する件数(最大20)"), start: z.number().default(0).describe("検索結果の開始位置"), }, async ({ query, size, start }) => { try { const data = await noteApiRequest(`/v3/searches?context=magazine&q=${encodeURIComponent(query)}&size=${size}&start=${start}`); const magazinesArray = safeExtractData(data, commonExtractors.magazines); const totalCount = safeExtractTotal(data, magazinesArray.length); const formattedMagazines = magazinesArray.map((magazine: any) => formatMagazine(magazine)); return createSuccessResponse({ total: totalCount, magazines: formattedMagazines }); } catch (error) { return handleApiError(error, "マガジン検索"); } }
  • Inline handler implementation for HTTP/SSE transport version of search-magazines tool.
    } else if (name === "search-magazines") { // search-magazinesツールの実装 const { query, size = 10 } = args; const data = await noteApiRequest( `/v3/searches?context=magazine&q=${encodeURIComponent(query)}&size=${size}`, "GET", null, true ); result = { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
  • Schema definition for search-magazines tool in the static tools list returned by HTTP server's tools/list endpoint.
    { name: "search-magazines", description: "note.comのマガジンを検索", inputSchema: { type: "object", properties: { query: { type: "string", description: "検索キーワード" }, size: { type: "number", description: "取得件数", default: 10 } }, required: ["query"] } },
  • registerAllTools function that includes registerSearchTools(server), which registers the search-magazines tool among others.
    export function registerAllTools(server: McpServer): void { // 各カテゴリのツールを登録 registerSearchTools(server); registerNoteTools(server); registerUserTools(server); registerMembershipTools(server); registerMagazineTools(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