Skip to main content
Glama
MAL MCP Server

MAL MCP Server

Get top anime

get_top_anime
Read-only

Retrieve anime ranked by all-time score or popularity, with optional filters for airing, upcoming, popular, or favorite titles. Use it for non-seasonal rankings; choose seasonal tools for specific season lineups.

Instructions

Get anime ranked by all-time score/popularity, not tied to any season. Use filter for special rankings (airing, upcoming, bypopularity, favorite); for a specific season's lineup use get_seasonal_anime or get_upcoming_season instead. If Tenrai is unavailable and MAL_CLIENT_ID is set, transparently retries via the official API, which takes one ranking instead of type + filter: filter wins over type; a type with no official ranking (ona, music, cm, pv, tv_special) or more than one type is dropped, and with nothing usable left the all-time ranking is returned; rating is ignored entirely, themes/demographics/broadcast come back empty, and sfw_strict degrades to the same filtering as sfw (the official API can't separate adult-rated from Ecchi-tagged-but-safely-rated).

Input Schema

NameRequiredDescriptionDefault
sfwNoIf true, exclude adult/explicit-rated entries (R+ Mild Nudity and up). Defaults to false (no filtering). Note: this alone still allows mainstream, safely-rated shows tagged with the Ecchi genre (fanservice) through — use `sfw_strict` to also exclude those.
pageNo1-based page number for pagination (1-20000).
typeNoRestrict to one or more media types.
limitNoMax results per page (1-100).
filterNoSpecial ranking filter.
ratingNoRestrict to one or more specific content ratings. More granular than `sfw`/`sfw_strict` — use this to target a precise rating band instead of a blanket adult-content cutoff.
sfw_strictNoIf true, exclude adult/explicit-rated entries AND anything tagged with the Ecchi genre, even otherwise-mainstream/safely-rated shows. Stricter than `sfw` alone. Defaults to false.

Output Schema

NameRequiredDescriptionDefault
pageYes
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.11.0
    • changedInput schema / properties / limit / description
      Previous value: -"Max results per page (1-50)."New value: +"Max results per page (1-100)."
    • changedInput schema / properties / limit / maximum
      Previous value: -50New value: +100
    • changedInput schema / properties / page / description
      Previous value: -"1-based page number for pagination. No upper bound — this ranking runs to the end of MAL's own catalog."New value: +"1-based page number for pagination (1-20000)."
    • changedInput schema / properties / page / maximum
      Previous value: -9007199254740991New value: +20000
  2. Changed38 schema fields changedv0.9.0
    • changedInput schema / properties / limit / description
      Previous value: -"Max results per page (1-25)."New value: +"Max results per page (1-50)."
    • changedInput schema / properties / limit / maximum
      Previous value: -25New value: +50
    • changedInput schema / properties / page / description
      Previous value: -"1-based page number for pagination."New value: +"1-based page number for pagination. No upper bound — this ranking runs to the end of MAL's own catalog."
    • addedInput schema / properties / rating
      Added value: +{
      +  "description": "Restrict to one or more specific content ratings. More granular than `sfw`/`sfw_strict` — use this to target a precise rating band instead of a blanket adult-content cutoff.",
      +  "items": {
      +    "description": "A MAL content rating: g (All Ages), pg (Children), pg13 (Teens 13+), r17 (17+ violence/profanity), r (R+ Mild Nudity), rx (Rx Hentai).",
      +    "enum": [
      +      "g",
      +      "pg",
      +      "pg13",
      +      "r17",
      +      "r",
      +      "rx"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / sfw
      Added value: +{
      +  "description": "If true, exclude adult/explicit-rated entries (R+ Mild Nudity and up). Defaults to false (no filtering). Note: this alone still allows mainstream, safely-rated shows tagged with the Ecchi genre (fanservice) through — use `sfw_strict` to also exclude those.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / sfw_strict
      Added value: +{
      +  "description": "If true, exclude adult/explicit-rated entries AND anything tagged with the Ecchi genre, even otherwise-mainstream/safely-rated shows. Stricter than `sfw` alone. Defaults to false.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / type / description
      Previous value: -"Restrict to a media type."New value: +"Restrict to one or more media types."
    • removedInput schema / properties / type / enum
      Removed value: -[
      -  "tv",
      -  "movie",
      -  "ova",
      -  "special",
      -  "ona",
      -  "music"
      -]
    • addedInput schema / properties / type / items
      Added value: +{
      +  "description": "A media type.",
      +  "enum": [
      +    "tv",
      +    "movie",
      +    "ova",
      +    "special",
      +    "ona",
      +    "music",
      +    "cm",
      +    "pv",
      +    "tv_special"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / type / minItems
      Added value: +1
    • changedInput schema / properties / type / type
      Previous value: -"string"New value: +"array"
    • addedOutput schema / properties / page / properties / current_page / exclusiveMinimum
      Added value: +0
    • addedOutput schema / properties / page / properties / current_page / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / page / properties / current_page / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / page / properties / last_visible_page / exclusiveMinimum
      Added value: +0
    • addedOutput schema / properties / page / properties / last_visible_page / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / page / properties / last_visible_page / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / page / properties / total / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / page / properties / total / minimum
      Added value: +0
    • changedOutput schema / properties / page / properties / total / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / results / items / properties / episodes / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / results / items / properties / episodes / minimum
      Added value: +0
    • changedOutput schema / properties / results / items / properties / episodes / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / results / items / properties / mal_id / exclusiveMinimum
      Added value: +0
    • addedOutput schema / properties / results / items / properties / mal_id / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / results / items / properties / mal_id / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / results / items / properties / members / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / results / items / properties / members / minimum
      Added value: +0
    • changedOutput schema / properties / results / items / properties / members / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / results / items / properties / popularity / exclusiveMinimum
      Added value: +0
    • addedOutput schema / properties / results / items / properties / popularity / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / results / items / properties / popularity / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / results / items / properties / rank / exclusiveMinimum
      Added value: +0
    • addedOutput schema / properties / results / items / properties / rank / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / results / items / properties / rank / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / results / items / properties / year / maximum
      Added value: +2100
    • addedOutput schema / properties / results / items / properties / year / minimum
      Added value: +1900
    • changedOutput schema / properties / results / items / properties / year / type
      Previous value: -"number"New value: +"integer"
  3. Changed2 schema fields changedv0.8.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedOutput schema / properties / results / items / properties / broadcast
      Added value: +{
      +  "type": "string"
      +}
  4. Changed2 schema fields changedv0.7.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "page": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "current_page": {
      +          "type": "number"
      +        },
      +        "has_next_page": {
      +          "type": "boolean"
      +        },
      +        "last_visible_page": {
      +          "type": "number"
      +        },
      +        "total": {
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "results": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "aired": {
      +            "type": "string"
      +          },
      +          "airing": {
      +            "type": "boolean"
      +          },
      +          "demographics": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "episodes": {
      +            "type": "number"
      +          },
      +          "genres": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "image_url": {
      +            "type": "string"
      +          },
      +          "mal_id": {
      +            "type": "number"
      +          },
      +          "members": {
      +            "type": "number"
      +          },
      +          "popularity": {
      +            "type": "number"
      +          },
      +          "rank": {
      +            "type": "number"
      +          },
      +          "rating": {
      +            "type": "string"
      +          },
      +          "score": {
      +            "type": "number"
      +          },
      +          "season": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "type": "string"
      +          },
      +          "studios": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "synopsis": {
      +            "type": "string"
      +          },
      +          "themes": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "title_english": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "type": "string"
      +          },
      +          "year": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "mal_id"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "results",
      +    "page"
      +  ],
      +  "type": "object"
      +}
  5. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only cover read-only/open-world safety, yet the description discloses a non-obvious fallback path (Tenrai unavailable + MAL_CLIENT_ID set → official API retry) and its degradation rules. It spells out exactly what gets dropped, ignored, or returned empty, which an agent could never infer from annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose and alternative routing are front-loaded in two tight sentences. The fallback paragraph is a single semicolon-chained run-on that is information-dense but harder to parse than a structured list; every clause does carry meaning, so it earns its space, just not ideally formatted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema, annotations, and full schema descriptions already present, the description fills the remaining gap: cross-parameter precedence and fallback degradation. An agent has everything needed to call it correctly in both the primary and fallback modes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real interaction semantics beyond the schema: `filter` wins over `type`, multi-type or unsupported types are dropped, `rating` is ignored in fallback, and `sfw_strict` degrades to `sfw`. Only the primary path's parameters (page/limit) get no extra treatment, which is fine given the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get anime ranked by all-time score/popularity') plus the key scope constraint ('not tied to any season'), which immediately separates it from the seasonal siblings. An agent can identify what this returns without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes: use `filter` for special rankings, and use get_seasonal_anime or get_upcoming_season for a season's lineup. Both when-to-use and named alternatives are present, leaving nothing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.