Skip to main content
Glama

get_staff

Retrieve detailed information about AniList staff members using their ID or name, accessed via the AniList MCP server for API data integration.

Instructions

Get information about staff member by their AniList ID or name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe AniList ID or name of the staff member

Implementation Reference

  • The handler function that implements the core logic of the 'get_staff' tool by querying AniList for staff information based on the provided ID or name and returning formatted JSON or error.
    async ({ id }) => { try { const staff = await anilist.people.staff(id); return { content: [ { type: "text", text: JSON.stringify(staff, null, 2), }, ], }; } catch (error: any) { return { content: [{ type: "text", text: `Error: ${error.message}` }], isError: true, }; } },
  • The Zod input schema for the 'get_staff' tool, validating the 'id' parameter as either a number or string.
    { id: z .union([z.number(), z.string()]) .describe("The AniList ID or name of the staff member"), },
  • The direct registration of the 'get_staff' tool using server.tool() within the registerPeopleTools function, including name, description, schema, hints, and handler.
    server.tool( "get_staff", "Get information about staff member by their AniList ID or name", { id: z .union([z.number(), z.string()]) .describe("The AniList ID or name of the staff member"), }, { title: "Get Staff Member Info", readOnlyHint: true, openWorldHint: true, }, async ({ id }) => { try { const staff = await anilist.people.staff(id); return { content: [ { type: "text", text: JSON.stringify(staff, null, 2), }, ], }; } catch (error: any) { return { content: [{ type: "text", text: `Error: ${error.message}` }], isError: true, }; } }, );
  • tools/index.ts:35-35 (registration)
    Call to registerPeopleTools inside registerAllTools, which triggers the registration of 'get_staff'.
    registerPeopleTools(server, anilist, config);
  • index.ts:61-61 (registration)
    Top-level call to registerAllTools in the main index.ts, which ultimately registers the 'get_staff' tool.
    registerAllTools(server, anilist, config);

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