get_todays_birthday_staff
Retrieve a list of AniList staff members celebrating their birthday today by querying the AniList MCP server. Specify the search page to organize results efficiently.
Instructions
Get all staff members whose birthday is today
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | What page in the search to target |
Implementation Reference
- tools/people.ts:186-204 (handler)The handler function that executes the tool's logic: fetches staff members with today's birthday from AniList API using the provided page, stringifies the result as JSON text content, or returns an error.async ({ page }) => { try { const staffMembers = await anilist.people.getBirthdayStaff(page); return { content: [ { type: "text", text: JSON.stringify(staffMembers, null, 2), }, ], }; } catch (error: any) { return { content: [{ type: "text", text: `Error: ${error.message}` }], isError: true, }; } }, );
- tools/people.ts:174-180 (schema)Input schema defining the optional 'page' parameter for pagination in the tool call.{ page: z .number() .optional() .default(1) .describe("What page in the search to target"), },
- tools/people.ts:171-185 (registration)Registers the get_todays_birthday_staff MCP tool with server.tool(), including name, description, input schema, and metadata (title, hints). The handler is provided as the next argument.server.tool( "get_todays_birthday_staff", "Get all staff members whose birthday is today", { page: z .number() .optional() .default(1) .describe("What page in the search to target"), }, { title: "Get Today's Birthday Staff Members", readOnlyHint: true, openWorldHint: true, },