Skip to main content
Glama

get_site_statistics

Retrieve AniList site statistics, including trends and metrics, from the last seven days to analyze user activity and platform usage.

Instructions

Get AniList site statistics over the last seven days

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • tools/misc.ts:116-143 (registration)
    Registers the 'get_site_statistics' MCP tool with an inline handler that fetches and returns AniList site statistics over the last seven days as JSON text, handling errors appropriately.
    server.tool( "get_site_statistics", "Get AniList site statistics over the last seven days", {}, { title: "Get Site Statistics", readOnlyHint: true, openWorldHint: true, }, async () => { try { const statistics = await anilist.siteStatistics(); return { content: [ { type: "text", text: JSON.stringify(statistics, null, 2), }, ], }; } catch (error: any) { return { content: [{ type: "text", text: `Error: ${error.message}` }], isError: true, }; } }, );
  • The handler function for the 'get_site_statistics' tool, which calls anilist.siteStatistics() and formats the response.
    async () => { try { const statistics = await anilist.siteStatistics(); return { content: [ { type: "text", text: JSON.stringify(statistics, 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