Skip to main content
Glama
MAL MCP Server

MAL MCP Server

Get a random anime

get_random_anime
Read-only

Discover a random anime for suggestions, with optional safe-for-work filtering and a MAL ID for fetching full details such as relations, streaming, themes, and external data.

Instructions

Return one random anime (core details: no relations/streaming/opening_themes/ending_themes/external — call get_anime with the returned mal_id for those). Good for discovery / suggestions. No official-API fallback exists for this tool — it always needs Tenrai itself to be reachable.

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.
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
urlNo
rankNo
typeNo
yearNo
airedNo
scoreNo
titleNo
airingNo
genresNo
mal_idYes
ratingNo
seasonNo
sourceNo
statusNo
themesNo
membersNo
studiosNo
trailerNo
durationNo
episodesNo
externalNo
moreinfoNo
synopsisNo
broadcastNo
favoritesNo
image_urlNo
licensorsNo
producersNo
relationsNo
scored_byNo
streamingNo
backgroundNo
popularityNo
demographicsNo
ending_themesNo
title_englishNo
opening_themesNo
title_japaneseNo
title_synonymsNo
explicit_genresNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.10.0
    • addedOutput schema / properties / relations / items / properties / entries / items / additionalProperties
      Added value: +false
    • addedOutput schema / properties / relations / items / properties / entries / items / properties
      Added value: +{
      +  "mal_id": {
      +    "exclusiveMinimum": 0,
      +    "maximum": 9007199254740991,
      +    "type": "integer"
      +  },
      +  "media_type": {
      +    "type": "string"
      +  },
      +  "name": {
      +    "type": "string"
      +  },
      +  "type": {
      +    "type": "string"
      +  },
      +  "url": {
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / relations / items / properties / entries / items / required
      Added value: +[
      +  "mal_id"
      +]
    • changedOutput schema / properties / relations / items / properties / entries / items / type
      Previous value: -"string"New value: +"object"
  2. Changed30 schema fields changedv0.9.0
    • 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"
      +}
    • addedOutput schema / properties / episodes / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / episodes / minimum
      Added value: +0
    • changedOutput schema / properties / episodes / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / explicit_genres
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / external
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / favorites / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / favorites / minimum
      Added value: +0
    • changedOutput schema / properties / favorites / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / mal_id / exclusiveMinimum
      Added value: +0
    • addedOutput schema / properties / mal_id / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / mal_id / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / members / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / members / minimum
      Added value: +0
    • changedOutput schema / properties / members / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / moreinfo
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / popularity / exclusiveMinimum
      Added value: +0
    • addedOutput schema / properties / popularity / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / popularity / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / rank / exclusiveMinimum
      Added value: +0
    • addedOutput schema / properties / rank / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / rank / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / scored_by / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / scored_by / minimum
      Added value: +0
    • changedOutput schema / properties / scored_by / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / title_synonyms
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / year / maximum
      Added value: +2100
    • addedOutput schema / properties / year / minimum
      Added value: +1900
    • changedOutput schema / properties / year / type
      Previous value: -"number"New value: +"integer"
  3. Changed1 schema field changedv0.8.0
    • addedInput schema / additionalProperties
      Added value: +false
  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": {
      +    "aired": {
      +      "type": "string"
      +    },
      +    "airing": {
      +      "type": "boolean"
      +    },
      +    "background": {
      +      "type": "string"
      +    },
      +    "broadcast": {
      +      "type": "string"
      +    },
      +    "demographics": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "duration": {
      +      "type": "string"
      +    },
      +    "ending_themes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "episodes": {
      +      "type": "number"
      +    },
      +    "favorites": {
      +      "type": "number"
      +    },
      +    "genres": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "image_url": {
      +      "type": "string"
      +    },
      +    "licensors": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "mal_id": {
      +      "type": "number"
      +    },
      +    "members": {
      +      "type": "number"
      +    },
      +    "opening_themes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "popularity": {
      +      "type": "number"
      +    },
      +    "producers": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "rank": {
      +      "type": "number"
      +    },
      +    "rating": {
      +      "type": "string"
      +    },
      +    "relations": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "entries": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "relation": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "score": {
      +      "type": "number"
      +    },
      +    "scored_by": {
      +      "type": "number"
      +    },
      +    "season": {
      +      "type": "string"
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "streaming": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "name": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "studios": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "synopsis": {
      +      "type": "string"
      +    },
      +    "themes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "title": {
      +      "type": "string"
      +    },
      +    "title_english": {
      +      "type": "string"
      +    },
      +    "title_japanese": {
      +      "type": "string"
      +    },
      +    "trailer": {
      +      "type": "string"
      +    },
      +    "type": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "type": "string"
      +    },
      +    "year": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "mal_id"
      +  ],
      +  "type": "object"
      +}
  5. Addedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only and open-world hints, but the description adds genuinely new behavioral context: the reduced field set and, importantly, that no official-API fallback exists so Tenrai reachability is required. This dependency/failure-mode disclosure is exactly the kind of value annotations cannot convey.

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 output scope is front-loaded, then the follow-up pointer, then the reliability caveat — each clause carries distinct information. The exclusion list is dense but earns its place; only minor trimming would improve it.

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?

An output schema exists so return shape needn't be explained, and the description covers the two things an agent could not infer: the partial-field caveat with a routing action, and the lack of a fallback. Nothing needed to invoke it correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100% and the two params (sfw, sfw_strict) are thoroughly documented in the schema, including their distinction. The description adds nothing further about parameters, so the baseline 3 applies.

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?

The description opens with a specific verb+resource ('Return one random anime') and immediately scopes the output by listing excluded fields (relations/streaming/opening_themes/ending_themes/external). It differentiates itself from the get_anime sibling by routing callers there for those fields, so an agent can distinguish the two without opening schemas.

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

Usage Guidelines4/5

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

'Good for discovery / suggestions' names the intended scenario, and the parenthetical explicitly says to call get_anime with the returned mal_id for missing fields, giving a concrete follow-up path. It stops short of stating when NOT to use it (e.g., when a specific title is already known), so it doesn't reach a full 5.

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