Skip to main content
Glama

search_staff

Find AniList staff members by query term, with options to paginate and limit results for efficient searching and data retrieval.

Instructions

Search for staff members based on a query term

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountNoResults per page (max 25)
pageNoPage number for results
termYesSearch term for finding staff members

Implementation Reference

  • The handler function that performs the staff search by calling anilist.searchEntry.staff and returns formatted JSON results or an error message.
    async ({ term, page, amount }) => { try { const results = await anilist.searchEntry.staff(term, page, amount); return { content: [ { type: "text", text: JSON.stringify(results, null, 2), }, ], }; } catch (error: any) { return { content: [{ type: "text", text: `Error: ${error.message}` }], isError: true, }; } },
  • Zod input schema for the search_staff tool parameters: term (required string), page and amount (optional numbers with defaults).
    { term: z.string().describe("Search term for finding staff members"), page: z .number() .optional() .default(1) .describe("Page number for results"), amount: z .number() .optional() .default(5) .describe("Results per page (max 25)"), },
  • Registration of the search_staff tool on the MCP server within the registerSearchTools function, including name, description, schema, hints, and handler.
    server.tool( "search_staff", "Search for staff members based on a query term", { term: z.string().describe("Search term for finding staff members"), page: z .number() .optional() .default(1) .describe("Page number for results"), amount: z .number() .optional() .default(5) .describe("Results per page (max 25)"), }, { title: "AniList Staff Search", readOnlyHint: true, openWorldHint: true, }, async ({ term, page, amount }) => { try { const results = await anilist.searchEntry.staff(term, page, amount); return { content: [ { type: "text", text: JSON.stringify(results, 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