Skip to main content
Glama

get_todays_birthday_characters

Retrieve a list of characters from AniList whose birthdays are today. Specify the page number to navigate through the results.

Instructions

Get all characters whose birthday is today

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoWhat page in the search to target

Implementation Reference

  • The handler function for the 'get_todays_birthday_characters' tool. It fetches characters with today's birthday using the AniList client, paginated by the input 'page', and returns the JSON stringified data or an error message.
    async ({ page }) => { try { const characters = await anilist.people.getBirthdayCharacters(page); return { content: [ { type: "text", text: JSON.stringify(characters, null, 2), }, ], }; } catch (error: any) { return { content: [{ type: "text", text: `Error: ${error.message}` }], isError: true, }; } },
  • Input schema for the tool, defining an optional 'page' parameter (number, default 1) for pagination.
    { page: z .number() .optional() .default(1) .describe("What page in the search to target"), },
  • Registration of the 'get_todays_birthday_characters' tool using server.tool(), including description, input schema, metadata hints, and inline handler.
    server.tool( "get_todays_birthday_characters", "Get all characters whose birthday is today", { page: z .number() .optional() .default(1) .describe("What page in the search to target"), }, { title: "Get Today's Birthday Characters", readOnlyHint: true, openWorldHint: true, }, async ({ page }) => { try { const characters = await anilist.people.getBirthdayCharacters(page); return { content: [ { type: "text", text: JSON.stringify(characters, null, 2), }, ], }; } catch (error: any) { return { content: [{ type: "text", text: `Error: ${error.message}` }], isError: true, }; } }, );

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/yuna0x0/anilist-mcp'

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