get_studio
Retrieve detailed information about a studio using its AniList ID or name, enabling quick access to essential data via the AniList MCP server.
Instructions
Get information about a studio by its AniList ID or name
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| studio | Yes | The studio ID or name |
Implementation Reference
- tools/misc.ts:147-177 (registration)Full registration of the 'get_studio' MCP tool, including name, description, Zod input schema for 'studio' parameter (ID or name), tool hints, and inline handler function that uses anilist.studio() to fetch data and returns formatted JSON or error."get_studio", "Get information about a studio by its AniList ID or name", { studio: z .union([z.string(), z.number()]) .describe("The studio ID or name"), }, { title: "Get Studio Information", readOnlyHint: true, openWorldHint: true, }, async ({ studio }) => { try { const studioInfo = await anilist.studio(studio); return { content: [ { type: "text", text: JSON.stringify(studioInfo, null, 2), }, ], }; } catch (error: any) { return { content: [{ type: "text", text: `Error: ${error.message}` }], isError: true, }; } }, );
- tools/misc.ts:159-176 (handler)The handler function for 'get_studio' tool. It takes the studio input, calls anilist.studio(studio), stringifies the result as JSON text content, or returns an error response.async ({ studio }) => { try { const studioInfo = await anilist.studio(studio); return { content: [ { type: "text", text: JSON.stringify(studioInfo, null, 2), }, ], }; } catch (error: any) { return { content: [{ type: "text", text: `Error: ${error.message}` }], isError: true, }; } },
- tools/misc.ts:150-152 (schema)Zod input schema for the 'studio' parameter, accepting either string (name) or number (ID).studio: z .union([z.string(), z.number()]) .describe("The studio ID or name"),