Skip to main content
Glama

get-magazine

Retrieve detailed information about a specific magazine from note.com using its unique magazine ID.

Instructions

マガジンの詳細情報を取得する

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
magazineIdYesマガジンID(例: m75081e161aeb)

Implementation Reference

  • Handler function that fetches the magazine details from the Note API, formats the data using formatMagazine, and returns a formatted response or handles errors.
    async ({ magazineId }) => { try { const data = await noteApiRequest(`/v1/magazines/${magazineId}`); const magazineData = data.data || {}; const formattedMagazine = formatMagazine(magazineData); return createSuccessResponse(formattedMagazine); } catch (error) { return handleApiError(error, "マガジン取得"); } }
  • Zod input schema defining the magazineId parameter for the get-magazine tool.
    { magazineId: z.string().describe("マガジンID(例: m75081e161aeb)"), },
  • Direct registration of the get-magazine tool on the MCP server instance within registerMagazineTools.
    server.tool( "get-magazine", "マガジンの詳細情報を取得する", { magazineId: z.string().describe("マガジンID(例: m75081e161aeb)"), }, async ({ magazineId }) => { try { const data = await noteApiRequest(`/v1/magazines/${magazineId}`); const magazineData = data.data || {}; const formattedMagazine = formatMagazine(magazineData); return createSuccessResponse(formattedMagazine); } catch (error) { return handleApiError(error, "マガジン取得"); } } );
  • Invocation of registerMagazineTools which registers the get-magazine tool among others.
    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